Get the dialled prefixes of voice breakout codes as CSV
/v1/billing/rates/voice-outbound/prefixescurl -X GET "https://us1.platform.bird.com/v1/billing/rates/voice-outbound/prefixes" \
-H "Authorization: Bearer $TOKEN"Downloads, as one CSV file, which dialled numbers each breakout code covers, with the columns prefix, breakout_code, country_code, line_type and breakout_codes_version. A prefix is the leading digits of a number in international format without the +. To find the published rate for a number, take the longest prefix the dialled number starts with, read its breakout code, and look that code up in the outbound call rates for the call's zone. It is the rate published for that code's country label and zone, which can differ from what a call is charged where the number belongs to another country than the label. The file holds every breakout code, also the ones that have no rate for you, so the longest match is always the code the breakout codes give the number; a code that is not in the outbound call rates has no rate published there. country_code and line_type are empty for a code that has none. The file is the same for every organization and holds no prices. Compare breakout_codes_version with the one on the rates: when they differ, read both again. Matching versions join the published rates and prefixes; a call placed just after new breakout codes are published can still be rated under the previous ones. Returns a retryable 503 when the breakout codes cannot be read. Requires the rates permission in the workspace, or the organization's org:billing permission, with which the workspace can be left out.
Gerelateerde bronnen
Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.