NAME
Twilio::Rest::Pricing::V1::Voice::Number - The Number resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $number = $client->pricing->v1->voice->numbers($number)->fetch;
DESCRIPTION
Voice pricing for a specific phone number
This file holds NumberList, NumberContext and NumberInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
NumberList
Returned by $client->pricing->v1->voice->numbers. See also Twilio::ListResource.
get_context
my $context = $client->pricing->v1->voice->numbers->get_context($number);
Returns a NumberContext, and makes no request.
NumberContext
Returned by $client->pricing->v1->voice->numbers($number). It makes no request until one of these methods is called.
fetch
my $number = $client->pricing->v1->voice->numbers($number)->fetch;
Returns a NumberInstance.
NumberInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- country
-
The name of the country.
- inbound_call_price
-
The InboundCallPrice record. If
null, the Phone Number is not a Twilio number owned by this account. - iso_country
-
The ISO country code.
- number
-
The phone number.
- outbound_call_price
-
The OutboundCallPrice record, which includes a list of
origination_prefixesand thebase_priceandcurrent_pricefor those prefixes. - price_unit
-
The currency in which prices are measured, specified in ISO 4127 format (e.g.
usd,eur,jpy). - url
-
The absolute URL of the resource.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.