NAME
Twilio::Rest::Numbers::V1::BulkEligibility - The BulkEligibility resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $bulk_eligibility = $client->numbers->v1->bulk_eligibilities->create(\%body);
my $bulk_eligibility = $client->numbers->v1->bulk_eligibilities($request_id)->fetch;
DESCRIPTION
This file holds BulkEligibilityList, BulkEligibilityContext and BulkEligibilityInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
BulkEligibilityList
Returned by $client->numbers->v1->bulk_eligibilities. See also Twilio::ListResource.
create
my $bulk_eligibility = $client->numbers->v1->bulk_eligibilities->create(\%body);
Create a bulk eligibility check for a set of numbers that you want to host in Twilio. Returns a BulkEligibilityInstance.
%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->v1->bulk_eligibilities->get_context($request_id);
Returns a BulkEligibilityContext, and makes no request.
BulkEligibilityContext
Returned by $client->numbers->v1->bulk_eligibilities($request_id). It makes no request until one of these methods is called.
fetch
my $bulk_eligibility = $client->numbers->v1->bulk_eligibilities($request_id)->fetch;
Fetch an eligibility bulk check that you requested to host in Twilio. Returns a BulkEligibilityInstance.
BulkEligibilityInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- date_completed
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
This is the string that you assigned as a friendly name for describing the eligibility check request.
- request_id
-
The SID of the bulk eligibility check that you want to know about.
- results
-
The result set that contains the eligibility check response for each requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
- status
-
This is the status of the bulk eligibility check request. (Example: COMPLETE, IN_PROGRESS)
- url
-
This is the url of the request that you're trying to reach out to locate 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.