Sign inGet Started

List WhatsApp sending rates

GET
/v1/billing/rates/whatsapp-outbound
for await (const rate of bird.billingRates.whatsappOutbound({ country_code: "US" })) {
  console.log(rate);
}
Response200
{
  "data": [
    {
      "country_code": "US",
      "category": "service",
      "unit": "message",
      "rate": {
        "amount": "0.0097",
        "currency_code": "USD",
        "transaction_amount": "0.0062",
        "passthrough_amount": "0.0035"
      }
    }
  ],
  "next_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE0OjAzOjEwWlwiIiwiaSI6IjAxOTJmM2IxLTRjN2UtN2EyYi05ZDYxLThmM2E1YzJlN2I0MCJ9",
  "prev_cursor": null,
  "refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE2OjQyOjAxWlwiIiwiaSI6IjAxOTJmM2IxLTllMDQtN2NkMy1iODE3LTJhNmY0ZDFjOGUwOSJ9"
}

Returns what your organization pays to send a WhatsApp message, per destination country and message category. Each rate has our fee, Meta's fee where one applies, and their sum. Rates are net of tax, in your organization's billing currency, with your agreed prices applied. Only destinations and categories that have a rate are listed. Returns 412 when your organization has no billing currency yet, a retryable 503 when the rates cannot be read, and a 500 with RatesNotRepresentable when a price cannot be shown on this card, which retrying does not fix; 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.

Query Parameters

sortstring

Field to sort by. Rates are ordered by destination country, then category.

Possible values: country_code

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.

country_codestring

Return only rates for this destination country.

categorystring

Return only rates for this message category.

Possible values: service, authentication, authentication_international, utility, marketing

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
required
Show child attributes
data.country_code
string
required

The destination country.

data.category
string
required

The category a WhatsApp message is charged under:

  • service: A message that is not a template, and any message a Meta Business Agent sends.
  • authentication: A template message that delivers a one-time passcode.
  • authentication_international: An authentication message to a recipient in another country, as Meta bills it.
  • utility: A template message about something the recipient did or asked for.
  • marketing: A promotional template message.

Possible values: service, authentication, authentication_international, utility, marketing

data.unit
string
required

What a message rate is charged per:

  • message: One message, whatever its length.

Possible values: message

data.rate
object
required

What one message costs. transaction_amount is our fee and is always present on this card. It is charged when the message is processed for sending, after the send request returned 202, so a message rejected in processing does not pay it. It is charged under the category of its template, or under service for a free-form message and for any message a Meta Business Agent sends. We never charge under authentication_international, so on that row it is our authentication fee for the same country, which is what such a message pays. passthrough_amount is Meta's fee. It is left out when Meta prices none for this category and country. It is charged when Meta reports the message delivered or read as a regular-priced message, under the category and country Meta reports, so a free conversation or an undelivered message does not pay it, and a marketing message sent with a maximum price pays the cost Meta reports for that delivery instead. amount is what a one-to-one message costs when Meta bills it in this row's category and country; when Meta bills another category the message pays the transaction_amount of one row and the passthrough_amount of another. In a group, our fee is charged once per message at the rate of the sending number's country, and Meta's fee once per participant reached, in that participant's country. This card lists only the countries you can send to one-to-one, so a participant's country with no row here can still pay Meta's fee: a missing row does not mean that fee is zero.

Show child attributes
next_cursor
nullable string
required

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

prev_cursor
nullable string
required

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

refresh_cursor
nullable string
required

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.

Continue with the documentation, guides and examples for this topic.