Download a sub number orders report
GET/sub_number_orders_report/:report_id/download
Download the CSV file for a completed sub number orders report. The report status must be 'success' before the file can be downloaded.
Request
Path Parameters
report_id uuidrequired
The unique identifier of the sub number orders report
Example: 12ade33a-21c0-473b-b055-b3c836e1c293
Responses
200: CSV file download
- text/csv
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/sub_number_orders_report/:report_id/download' \
-H 'Accept: text/csv' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
id,order_request_id,is_block_sub_number_order,status,phone_number_type,requirements_met,phone_numbers_count,country_code,user_id,customer_reference,created_at,updated_at
1758d6ed-61a0-4d7a-bf57-b5dced413d33,f486fc2c-4fdf-4849-930d-b3045373e839,False,success,local,True,1,US,0d7ef697-df19-413a-b724-56b0539f5397,STRING,2025-05-23 14:33:12.376686,2025-05-23 14:33:15.624916
{
"errors": [
{
"code": "10007",
"title": "Unexpected error",
"detail": "An unexpected error occured.",
"source": {
"pointer": "/base",
"parameter": "string"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10015"
}
}
]
}