import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const advancedOrders = await client.advancedOrders.list();
console.log(advancedOrders.data);{
"data": [
{
"country_code": "US",
"comments": "",
"quantity": 1,
"area_code": "",
"phone_number_type": "",
"features": [
"sms"
],
"customer_reference": "",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": [
"pending"
],
"orders": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"requirement_group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const advancedOrders = await client.advancedOrders.list();
console.log(advancedOrders.data);{
"data": [
{
"country_code": "US",
"comments": "",
"quantity": 1,
"area_code": "",
"phone_number_type": "",
"features": [
"sms"
],
"customer_reference": "",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": [
"pending"
],
"orders": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"requirement_group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
An array of Advanced Order Responses
Show child attributes
22551 <= x <= 100003local, mobile, toll_free, shared_cost, national, landline sms, mms, voice, fax, emergency pending, processing, ordered The ID of the requirement group associated with this advanced order
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Was this page helpful?