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"
}
]
}Was this page helpful?