NAME

Twilio::Rest::Numbers::V1::PortingPortInPhoneNumber - The PortingPortInPhoneNumber resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $porting_port_in_phone_number = $client->numbers->v1->porting_port_in_phone_number($port_in_request_sid, $phone_number_sid)->fetch;
$client->numbers->v1->porting_port_in_phone_number($port_in_request_sid, $phone_number_sid)->delete;

DESCRIPTION

This file holds PortingPortInPhoneNumberList, PortingPortInPhoneNumberContext and PortingPortInPhoneNumberInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

PortingPortInPhoneNumberList

Returned by $client->numbers->v1->porting_port_in_phone_number($port_in_request_sid). See also Twilio::ListResource.

get_context

my $context = $client->numbers->v1->porting_port_in_phone_number($port_in_request_sid)->get_context($phone_number_sid);

Returns a PortingPortInPhoneNumberContext, and makes no request.

PortingPortInPhoneNumberContext

Returned by $client->numbers->v1->porting_port_in_phone_number($port_in_request_sid, $phone_number_sid). It makes no request until one of these methods is called.

fetch

my $porting_port_in_phone_number = $client->numbers->v1->porting_port_in_phone_number($port_in_request_sid, $phone_number_sid)->fetch;

Fetch a phone number by port in request SID and phone number SID. Returns a PortingPortInPhoneNumberInstance.

delete

$client->numbers->v1->porting_port_in_phone_number($port_in_request_sid, $phone_number_sid)->delete;

Allows to cancel a port in request phone number by SID. Returns true.

PortingPortInPhoneNumberInstance

See also Twilio::InstanceResource.

It has fetch and delete, which work as they do on the context.

Its fields are:

account_sid

Account Sid or subaccount where the phone number(s) will be Ported.

country

The ISO country code that this number is associated with. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.

date_created

The timestamp for when this port in phone number was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

last_updated

Timestamp indicating when the Port In Phone Number resource was last modified. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

missing_required_fields

Indicates if the phone number is missing required fields such as a PIN or account number. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.

not_portability_reason

The not portability reason code description. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.

not_portability_reason_code

The not portability reason code. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.

phone_number

Phone number to be ported. This will be in the E164 Format.

phone_number_sid

The unique identifier for this phone number associated with this port in request.

phone_number_type

The number type of the phone number. This can be: toll-free, local, mobile or unknown. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.

port_date

The timestamp the phone number will be ported. This will only be set once a port date has been confirmed. Not all carriers can guarantee a specific time on the port date. Twilio will try its best to get the port completed by this time on the port date. Please subscribe to webhooks for confirmation on when a port has actually been completed. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

port_in_phone_number_status

The status of the port in phone number.

port_in_request_sid

The unique identifier for the port in request that this phone number is associated with.

port_out_pin

The pin required by the losing carrier to do the port out.

portable

If the number is portable by Twilio or not. This field may be null if the number portability has not yet been evaluated. If a number is not portable reference the not_portability_reason_code and not_portability_reason fields for more details

rejection_reason

The description of the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.

rejection_reason_code

The code for the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.

url

URL reference for this 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.