List US 10DLC registration rates
/v1/billing/rates/sms-10dlcfor await (const rate of bird.billingRates.sms10dlc()) {
console.log(rate);
}for rate in client.billing_rates.sms_10dlc():
print(rate)for rate, err := range client.BillingRates.Sms10dlc(context.Background(), bird.BillingRatesSms10dlcParams{}) {
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", *rate)
}foreach ($bird->billingRates->sms10dlc() as $rate) {
print_r($rate);
}bird billing rates sms-10dlccurl -X GET "https://us1.platform.bird.com/v1/billing/rates/sms-10dlc" \
-H "Authorization: Bearer $TOKEN" \
--url-query "sort=item" \
--url-query "order=asc" \
--url-query "limit=25"{
"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
sortstringField 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
orderstringSort direction. Defaults to asc, which sorts alphabetically or from oldest to newest, depending on the selected sort field.
Possible values: asc, desc
limitintegerMaximum number of items to return per page.
starting_afterstringCursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
ending_beforestringCursor 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.
itemstringReturn only the rates of this item.
Possible values: brand_registration, campaign, campaign_vetting
entity_typestringReturn only the brand registration rate of this entity type.
Possible values: sole_proprietor, private_profit, public_profit, non_profit, government
use_casestringReturn 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
currencystringThe 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
dataOnderliggende attributen tonen
data.itemWhat a US 10DLC registration rate is for:
brand_registration: Registering a brand, charged once for each registration submitted. Priced by the brand'sentity_type.campaign: Keeping a campaign registered, charged perrecurring_periodfrom the campaign's registration. Priced by the campaign'suse_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_typeThe 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_caseThe 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.unitWhat one fee pays for.
Possible values: registration, campaign, submission
data.pricingThe 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_priceThe fee charged once for each unit: a brand registration, or a campaign's submission for vetting. null on a campaign rate.
data.pricing.recurring_priceThe 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.
data.pricing.recurring_periodThe period recurring_price covers. null on a fee charged once.
data.pricing.intervals_per_chargeHow 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_cursorCursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.
prev_cursorCursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.
refresh_cursorRefresh 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.
Gerelateerde bronnen
Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.