NAME

Twilio::Rest::Numbers::V2::BulkHostedNumberOrder - The BulkHostedNumberOrder resource

SYNOPSIS

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

my $bulk_hosted_number_order = $client->numbers->v2->bulk_hosted_number_orders->create(\%body);
my $bulk_hosted_number_order = $client->numbers->v2->bulk_hosted_number_orders($bulk_hosting_sid)->fetch;

DESCRIPTION

This file holds BulkHostedNumberOrderList, BulkHostedNumberOrderContext and BulkHostedNumberOrderInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

BulkHostedNumberOrderList

Returned by $client->numbers->v2->bulk_hosted_number_orders. See also Twilio::ListResource.

create

my $bulk_hosted_number_order = $client->numbers->v2->bulk_hosted_number_orders->create(\%body);

Host multiple phone numbers on Twilio's platform. Returns a BulkHostedNumberOrderInstance.

%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.

get_context

my $context = $client->numbers->v2->bulk_hosted_number_orders->get_context($bulk_hosting_sid);

Returns a BulkHostedNumberOrderContext, and makes no request.

BulkHostedNumberOrderContext

Returned by $client->numbers->v2->bulk_hosted_number_orders($bulk_hosting_sid). It makes no request until one of these methods is called.

fetch

my $bulk_hosted_number_order = $client->numbers->v2->bulk_hosted_number_orders($bulk_hosting_sid)->fetch(\%options);

Fetch a specific BulkHostedNumberOrder. Returns a BulkHostedNumberOrderInstance.

The options are:

order_status

Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.

BulkHostedNumberOrderInstance

See also Twilio::InstanceResource.

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

Its fields are:

bulk_hosting_sid

A 34 character string that uniquely identifies this BulkHostedNumberOrder.

date_completed

The date that this resource was completed, given as GMT RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_created

The date this resource was created, given as GMT RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

A 128 character string that is a human-readable text that describes this resource.

notification_email

Email address used for send notifications about this Bulk hosted number request.

request_status

One of QUEUED, IN_PROGRESS or PROCESSED.

results

Contains a list of all the individual hosting orders and their information, for this Bulk request. Each result object is grouped by its order status. To see a complete list of order status, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.

total_count

The total count of phone numbers in this Bulk hosting request.

url

The URL of this BulkHostedNumberOrder 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.