Fetch pricing information for a specific destination and
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
-
OriginationNumber string(phone-number)
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 \
-X GET https://pricing.twilio.com/v2/Trunking/Numbers/{DestinationNumber} \
--user "username:password"
Response examples (200)
{
"country": "string",
"destination_number": "string",
"iso_country": "string",
"originating_call_price": {
"base_price": 42.0,
"current_price": 42.0,
"number_type": "string"
},
"origination_number": "string",
"price_unit": "string",
"terminating_prefix_prices": [
{
"base_price": 42.0,
"current_price": 42.0,
"destination_prefixes": [
"string"
],
"friendly_name": "string",
"origination_prefixes": [
"string"
]
}
],
"url": "https://example.com"
}
Response examples (200)
{
"country": "string",
"destination_number": "string",
"iso_country": "string",
"originating_call_price": {
"base_price": 42.0,
"current_price": 42.0,
"number_type": "string"
},
"origination_number": "string",
"price_unit": "string",
"terminating_prefix_prices": [
{
"base_price": 42.0,
"current_price": 42.0,
"destination_prefixes": [
"string"
],
"friendly_name": "string",
"origination_prefixes": [
"string"
]
}
],
"url": "https://example.com"
}