import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const numberOrderPhoneNumber = await client.numberOrderPhoneNumbers.retrieve('number_order_phone_number_id');
console.log(numberOrderPhoneNumber.data);{
"data": {
"id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd494",
"record_type": "number_order_phone_number",
"phone_number": "+19705555098",
"order_request_id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd495",
"sub_number_order_id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd496",
"country_code": "US",
"phone_number_type": "local",
"regulatory_requirements": [
{
"record_type": "phone_number_regulatory_requirement",
"requirement_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"field_type": "address",
"field_value": "45f45a04-b4be-4592-95b1-9306b9db2b21"
}
],
"requirements_met": true,
"status": "pending",
"bundle_id": null,
"locality": "San Francisco",
"deadline": "024-05-31T11:14:00+00:00",
"requirements_status": "pending",
"is_block_number": false
}
}Get an existing phone number in number order.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const numberOrderPhoneNumber = await client.numberOrderPhoneNumbers.retrieve('number_order_phone_number_id');
console.log(numberOrderPhoneNumber.data);{
"data": {
"id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd494",
"record_type": "number_order_phone_number",
"phone_number": "+19705555098",
"order_request_id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd495",
"sub_number_order_id": "dc8e4d67-33a0-4cbb-af74-7b58f05bd496",
"country_code": "US",
"phone_number_type": "local",
"regulatory_requirements": [
{
"record_type": "phone_number_regulatory_requirement",
"requirement_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"field_type": "address",
"field_value": "45f45a04-b4be-4592-95b1-9306b9db2b21"
}
],
"requirements_met": true,
"status": "pending",
"bundle_id": null,
"locality": "San Francisco",
"deadline": "024-05-31T11:14:00+00:00",
"requirements_status": "pending",
"is_block_number": false
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The number order phone number ID.
Successful response with details about a number order phone number.
Show child attributes
"dc8e4d67-33a0-4cbb-af74-7b58f05bd494"
"number_order_phone_number"
"+19705555098"
"dc8e4d67-33a0-4cbb-af74-7b58f05bd495"
"dc8e4d67-33a0-4cbb-af74-7b58f05bd496"
"US"
local, toll_free, mobile, national, shared_cost, landline "local"
Show child attributes
"phone_number_regulatory_requirement"
Unique id for a requirement.
"8ffb3622-7c6b-4ccc-b65f-7a3dc0099576"
textual, datetime, address, document "address"
The value of the requirement, this could be an id to a resource or a string value.
"45f45a04-b4be-4592-95b1-9306b9db2b21"
True if all requirements are met for a phone number, false otherwise.
true
The status of the phone number in the order.
pending, success, failure null
"San Francisco"
"024-05-31T11:14:00+00:00"
Status of requirements (if applicable)
pending, approved, cancelled, deleted, requirement-info-exception, requirement-info-pending, requirement-info-under-review false
Was this page helpful?