Skip to main content

List sub number orders

GET 
/sub_number_orders

Get a paginated list of sub number orders.

Request

Query Parameters

    filter[status] string

    Filter sub number orders by status.

    filter[order_request_id] uuid

    ID of the number order the sub number order belongs to

    filter[country_code] string

    ISO alpha-2 country code.

    filter[phone_number_type] string

    Phone Number Type

    filter[phone_numbers_count] integer

    Amount of numbers in the sub number order

Responses

200: Successful response with a list of sub number orders.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/sub_number_orders' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"order_request_id": "12ade33a-21c0-473b-b055-b3c836e1c293",
"country_code": "US",
"phone_number_type": "local",
"user_id": "d70873cd-7c98-401a-81b6-b1ae08246995",
"regulatory_requirements": [
{
"record_type": "phone_number_regulatory_requirement",
"requirement_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"field_type": "address"
}
],
"record_type": "sub_number_order",
"phone_numbers_count": 1,
"created_at": "2018-01-01T00:00:00.000000Z",
"updated_at": "2018-01-01T00:00:00.000000Z",
"requirements_met": true,
"status": "pending",
"customer_reference": "MY REF 001",
"is_block_sub_number_order": false
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}