Sign inGet Started

List US 10DLC registration rates

GET
/v1/billing/rates/sms-10dlc
for await (const rate of bird.billingRates.sms10dlc()) {
  console.log(rate);
}
Reactie200
{
  "data": [
    {
      "item": "brand_registration",
      "entity_type": "private_profit",
      "use_case": null,
      "unit": "registration",
      "pricing": {
        "setup_price": {
          "amount": "0.00995",
          "currency_code": "USD"
        },
        "recurring_price": null,
        "recurring_period": null,
        "intervals_per_charge": null
      }
    }
  ],
  "next_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE0OjAzOjEwWlwiIiwiaSI6IjAxOTJmM2IxLTRjN2UtN2EyYi05ZDYxLThmM2E1YzJlN2I0MCJ9",
  "prev_cursor": null,
  "refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE2OjQyOjAxWlwiIiwiaSI6IjAxOTJmM2IxLTllMDQtN2NkMy1iODE3LTJhNmY0ZDFjOGUwOSJ9"
}

Returns what registering for US 10DLC costs your organization: the brand registration fee per entity type, the recurring campaign fee per use case, and the campaign vetting fee. Rates are net of tax, in your organization's billing currency, with your agreed prices applied. A fee with no price for your organization is left out. A brand registration and a campaign vetting are charged once for each submission; a campaign is charged per recurring_period from its registration. Carrier fees on messages are on the SMS and MMS rates, and the fees of other sender registrations on the SMS sender rates. Returns 412 when your organization has no billing currency yet, and a retryable 503 when the rates cannot be read; a page is never returned with rates missing. Requires the rates permission in the workspace, or the organization's org:billing permission, with which the workspace can be left out. Without a credential the response is Bird's default rates, in currency; a credential that does not authenticate returns 401, never default rates.

Queryparameters

sortstring

Field to sort by. Rates are ordered by item, the brand registration first and the campaign vetting last, then by entity type or use case.

Possible values: item

orderstring

Sort direction. Defaults to asc, which sorts alphabetically or from oldest to newest, depending on the selected sort field.

Possible values: asc, desc

limitinteger

Maximum number of items to return per page.

starting_afterstring

Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.

ending_beforestring

Cursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.

itemstring

Return only the rates of this item.

Possible values: brand_registration, campaign, campaign_vetting

entity_typestring

Return only the brand registration rate of this entity type.

Possible values: sole_proprietor, private_profit, public_profit, non_profit, government

use_casestring

Return only the campaign rate of this use case.

Possible values: two_factor_authentication, account_notification, agents_franchises, charity, customer_care, delivery_notification, fraud_alert, higher_education, k12_education, low_volume, m2m, marketing, mixed, political, polling_voting, proxy, public_service_announcement, security_alert, sweepstake

currencystring

The currency of the rates when the request carries no credential, USD when left out. With a credential the rates are in the organization's billing currency, and a different currency returns 422.

Response Payload

data
array of object
verplicht
Onderliggende attributen tonen
data.item
string
verplicht

What a US 10DLC registration rate is for:

  • brand_registration: Registering a brand, charged once for each registration submitted. Priced by the brand's entity_type.
  • campaign: Keeping a campaign registered, charged per recurring_period from the campaign's registration. Priced by the campaign's use_case.
  • campaign_vetting: The review of a campaign, charged once for each submission of the campaign.

Possible values: brand_registration, campaign, campaign_vetting

data.entity_type
nullable string
verplicht

The brand entity type a brand_registration rate applies to. null on other items. A sole proprietor is not listed, because a sole proprietor brand cannot be registered yet.

Possible values: sole_proprietor, private_profit, public_profit, non_profit, government

data.use_case
nullable string
verplicht

The campaign use case a campaign rate applies to. null on other items.

Possible values: two_factor_authentication, account_notification, agents_franchises, charity, customer_care, delivery_notification, fraud_alert, higher_education, k12_education, low_volume, m2m, marketing, mixed, political, polling_voting, proxy, public_service_announcement, security_alert, sweepstake

data.unit
string
verplicht

What one fee pays for.

Possible values: registration, campaign, submission

data.pricing
object
verplicht

The fee of one unit, net of tax, in your organization's billing currency, after your agreed prices are applied, in the shape the SMS sender rates use. A brand_registration or campaign_vetting fee is the setup_price and a campaign fee the recurring_price; the other price is null.

Onderliggende attributen tonen
data.pricing.setup_price
nullable object
verplicht

The fee charged once for each unit: a brand registration, or a campaign's submission for vetting. null on a campaign rate.

Onderliggende attributen tonen
data.pricing.recurring_price
nullable object
verplicht

The price per recurring_period a new campaign is subscribed at. A renewal is charged the rate that applies when it renews. null on a fee charged once.

Onderliggende attributen tonen
data.pricing.recurring_period
nullable object
verplicht

The period recurring_price covers. null on a fee charged once.

Onderliggende attributen tonen
data.pricing.recurring_period.unit
string
verplicht

The calendar unit the period is counted in.

Possible values: day, month, year

data.pricing.recurring_period.count
integer
verplicht

Number of units in the period.

data.pricing.intervals_per_charge
nullable integer
verplicht

How many recurring_periods one charge bills at once, so a charge is recurring_price multiplied by this. It is your signed contract's billing frequency where one applies, and the product's own count otherwise. null on a fee charged once.

next_cursor
nullable string
verplicht

Cursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.

prev_cursor
nullable string
verplicht

Cursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.

refresh_cursor
nullable string
verplicht

Refresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.

Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.