List call feature rates
/v1/billing/rates/voice-featuresfor await (const rate of bird.billingRates.voiceFeatures()) {
console.log(rate);
}for rate in client.billing_rates.voice_features():
print(rate)for rate, err := range client.BillingRates.VoiceFeatures(context.Background(), bird.BillingRatesVoiceFeaturesParams{}) {
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", *rate)
}foreach ($bird->billingRates->voiceFeatures() as $rate) {
print_r($rate);
}bird billing rates voice-featurescurl -X GET "https://us1.platform.bird.com/v1/billing/rates/voice-features" \
-H "Authorization: Bearer $TOKEN" \
--url-query "sort=item" \
--url-query "order=asc" \
--url-query "limit=25"{
"data": [
{
"item": "call_handling",
"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 the call features that are charged separately from the call itself: call handling, recording, transcription and text to speech. Rates are net of tax, in your organization's billing currency, with your agreed prices applied. A feature with no price is left out. 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, in the order call handling, recording, transcription, text to speech.
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 rate of this item.
Possible values: call_handling, recording, transcription, text_to_speech
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.itemA call feature that is charged separately from the call rate:
call_handling: Bird's per-minute fee for carrying a call. A call pays it once, however many legs it has.recording: Recording a call's audio.transcription: Turning a recording into text.text_to_speech: Speech prepared for a call. The full length of the prepared audio is charged, including audio reused from an earlier prompt and audio the caller hangs up on before it has played.
Possible values: call_handling, recording, transcription, text_to_speech
data.unitThe time a rate is quoted for:
minute: The rate is the price of one minute.
Possible values: minute
data.incrementHow the feature'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 duration, round it up by the increment, multiply the seconds by rate and divide by 60. null when the price carries no increment.
data.rateThe price of one unit, net of tax, in your organization's billing currency, after your agreed prices are applied.
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.