Fetch pricing information for a specific destination and, optionally, origination phone number.
Trunking pricing for a specific phone number
Fetch pricing information for a specific destination and, optionally, origination phone number.
Path parameters
-
The destination phone number, in E.164 format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
Query parameters
-
The origination phone number, in E.164 format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
GET
/v2/Trunking/Numbers/{DestinationNumber}
curl \
--request GET 'https://pricing.twilio.com/v2/Trunking/Numbers/{DestinationNumber}' \
--user "username:password"
Response examples (200)
Fetch
{
"url": "https://pricing.twilio.com/v2/Trunking/Numbers/+18001234567",
"country": "United States",
"price_unit": "USD",
"iso_country": "US",
"destination_number": "+18001234567",
"origination_number": null,
"originating_call_price": {
"base_price": null,
"number_type": null,
"current_price": null
},
"terminating_prefix_prices": [
{
"base_price": null,
"current_price": "0.013",
"friendly_name": "Trunking Outbound Minute - United States Zone 1b",
"destination_prefixes": [
"1800"
],
"origination_prefixes": [
"ALL"
]
}
]
}
{
"url": "https://pricing.twilio.com/v2/Trunking/Numbers/+18001234567",
"country": "United States",
"price_unit": "USD",
"iso_country": "US",
"destination_number": "+18001234567",
"origination_number": "+15105556789",
"originating_call_price": {
"base_price": null,
"number_type": "tollfree",
"current_price": "0.013"
},
"terminating_prefix_prices": [
{
"base_price": null,
"current_price": "0.001",
"friendly_name": "Trunking Outbound Minute - United States - Toll Free",
"destination_prefixes": [
"1800"
],
"origination_prefixes": [
"ALL"
]
}
]
}