Create Advanced Order
POST/advanced_orders
Create Advanced Order
Request
- application/json
Body
required
country_code Country Code (string)
Possible values: >= 2 characters
and <= 2 characters
Default value: US
comments Comments (string)
Possible values: <= 255 characters
quantity Quantity (integer)
Possible values: >= 1
and <= 10000
Default value: 1
area_code Area Code (string)
Possible values: <= 3 characters
phone_number_type undefined[]
Possible values: [local
, mobile
, toll_free
, shared_cost
, national
, landline
]
features undefined[]
Possible values: [sms
, mms
, voice
, fax
, emergency
]
customer_reference Customer Reference (string)
Responses
200: Successful Response
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/advanced_orders' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"country_code": "US",
"comments": "string",
"quantity": 1,
"area_code": "string",
"phone_number_type": [
null
],
"features": [
null
],
"customer_reference": "string"
}'