NAME
Twilio::Rest::Numbers::V1::PortingPortIn - The PortingPortIn resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $porting_port_in = $client->numbers->v1->porting_port_ins->create(\%body);
my $porting_port_in = $client->numbers->v1->porting_port_ins($port_in_request_sid)->fetch;
$client->numbers->v1->porting_port_ins($port_in_request_sid)->delete;
DESCRIPTION
This file holds PortingPortInList, PortingPortInContext and PortingPortInInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
PortingPortInList
Returned by $client->numbers->v1->porting_port_ins. See also Twilio::ListResource.
create
my $porting_port_in = $client->numbers->v1->porting_port_ins->create(\%body);
Allows to create a new port in request. Returns a PortingPortInInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
account_sid-
Required. Account Sid or subaccount where the phone number(s) will be Ported
auto_cancel_approval_numbers-
Japan specific field, indicates the number of phone numbers to automatically approve for cancellation.
bundle_sid-
The bundle sid is an optional identifier to reference a group of regulatory documents for a port request.
documents-
Required. List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.
losing_carrier_information-
Required. Details regarding the customer's information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier's data as closely as possible to ensure the port is accepted.
notification_emails-
Additional emails to send a copy of the signed LOA to.
phone_numbers-
List of phone numbers to be ported. Maximum of 1,000 phone numbers per request.
portability_advance_carrier-
A field only required for Japan port in requests. It is a unique identifier for the donor carrier service the line is being ported from.
target_port_in_date-
Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. We can't guarantee the exact date and time, as this depends on the losing carrier
target_port_in_time_range_end-
The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier
target_port_in_time_range_start-
The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier
get_context
my $context = $client->numbers->v1->porting_port_ins->get_context($port_in_request_sid);
Returns a PortingPortInContext, and makes no request.
PortingPortInContext
Returned by $client->numbers->v1->porting_port_ins($port_in_request_sid). It makes no request until one of these methods is called.
fetch
my $porting_port_in = $client->numbers->v1->porting_port_ins($port_in_request_sid)->fetch;
Fetch a port in request by SID. Returns a PortingPortInInstance.
delete
$client->numbers->v1->porting_port_ins($port_in_request_sid)->delete;
Allows to cancel a port in request by SID. Returns true.
PortingPortInInstance
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
- auto_cancel_approval_numbers
-
Japan specific field, indicates the number of phone numbers to automatically approve for cancellation.
- bundle_sid
-
The bundle sid is an optional identifier to reference a group of regulatory documents for a port request.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- documents
-
List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.
- losing_carrier_information
-
Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted.
- notification_emails
-
Additional emails to send a copy of the signed LOA to.
- order_cancellation_reason
-
If the order is cancelled this field will provide further context on the cause of the cancellation.
- phone_numbers
-
No description in the specification.
- port_in_request_sid
-
The SID of the Port In request. This is a unique identifier of the port in request.
- port_in_request_status
-
The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
- portability_advance_carrier
-
A field only required for Japan port in requests. It is a unique identifier for the donor carrier service the line is being ported from.
- signature_request_url
-
No description in the specification.
- support_ticket_id
-
Unique ID of the request's support ticket
- target_port_in_date
-
Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. If a start and end range is provided, the date will be converted to its UTC equivalent with the ranges as reference and stored in UTC. We can't guarantee the exact date and time, as this depends on the losing carrier. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- target_port_in_time_range_end
-
The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier. The time will be stored and returned as UTC standard timezone.
- target_port_in_time_range_start
-
The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier. The time will be stored and returned as UTC standard timezone.
- url
-
The URL of this Port In request
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.