Sign inGet Started

List inbound call rates

GET
/v1/billing/rates/voice-inbound
for await (const rate of bird.billingRates.voiceInbound({ country_code: "US" })) {
  console.log(rate);
}
Response200
{
  "data": [
    {
      "country_code": "US",
      "number_type": "mobile",
      "caller_line_type": "fixed",
      "unit": "minute",
      "increment": "60/6",
      "rate": {
        "amount": "0.004",
        "currency_code": "USD"
      }
    }
  ],
  "next_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE0OjAzOjEwWlwiIiwiaSI6IjAxOTJmM2IxLTRjN2UtN2EyYi05ZDYxLThmM2E1YzJlN2I0MCJ9",
  "prev_cursor": null,
  "refresh_cursor": "eyJ2IjoxLCJzIjoiXCIyMDI2LTA1LTI1VDE2OjQyOjAxWlwiIiwiaSI6IjAxOTJmM2IxLTllMDQtN2NkMy1iODE3LTJhNmY0ZDFjOGUwOSJ9"
}

Returns what your organization pays per minute for a call arriving on one of its numbers, per country and type of the number and, where it is priced separately, the caller's line. Rates are net of tax, in your organization's billing currency, with your agreed prices applied. Only countries that have a rate are listed, and a number type or caller line gets a row of its own only where its rate differs from the fallback row. This is the rate for the call arriving on the number only: the call handling fee on the voice features card is charged on top of it, as is any other feature the call uses. 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 country, then number type and caller line.

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 numbers in this country.

number_typestring

Return the rates that apply to numbers of this type: the rates specific to it, and the rates with a null number type, which apply wherever the type has no rate of its own. Only mobile, local, national, toll_free and uifn are accepted: a short code cannot receive calls. A uifn call is rated at the number's own country, XX, with no caller line.

Possible values (may grow over time): mobile, local, national, toll_free, uifn

caller_line_typestring

Return the rates specific to this kind of caller line, and the rates with a null caller line. A line-specific rate is charged only when the caller is in the receiving number's own country; every other call, and a line with no rate of its own, pays the null row.

Possible values: fixed, mobile, payphone

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 country of the number that receives the call.

data.number_type
nullable string
required

The type of the receiving number this rate is specific to. null on a rate that applies to every number type without a row of its own.

Possible values (may grow over time): mobile, local, national, short_code, short_code_fteu, toll_free, uifn

data.caller_line_type
nullable string
required

The caller's line this rate is specific to. A line-specific rate applies only when the caller is in the number's own country; every other call pays the row with a null line. null on a rate that applies to every caller without a row of their own.

Possible values: fixed, mobile, payphone

data.unit
string
required

The time a rate is quoted for:

  • minute: The rate is the price of one minute.

Possible values: minute

data.increment
nullable string
required

How the call's duration is rounded before it is priced, as {first}/{subsequent} whole seconds. For example, 1/1 charges by the second and 60/60 charges whole minutes. To price a call, round its duration up by the increment, multiply the seconds by rate and divide by 60. null when the price carries no increment.

data.rate
object
required

The price of one unit, net of tax, in your organization's billing currency, after your agreed prices are applied.

Show child attributes
data.rate.amount
string
required

The price of one unit. Where the rate has two fees, it is the sum of the fees present.

data.rate.currency_code
string
required

Your organization's billing currency. Every amount is in it.

data.rate.transaction_amount
string

Our own fee for one unit, on a rate made of two fees. It is the rate behind cost.transaction_amount on a message. Left out on a rate with a single fee, and where this fee is not priced.

data.rate.passthrough_amount
string

The third-party fee passed on for one unit. It is the rate behind cost.passthrough_amount on a message. Left out on a rate with a single fee, and where no such fee applies.

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.