Get all SIM card orders
GET/sim_card_orders
Get all SIM card orders according to filters.
Request
Query Parameters
Filter by ISO 8601 formatted date-time string matching resource creation date-time.
Filter by ISO 8601 formatted date-time string matching resource last update date-time.
Filter orders by how many SIM cards were ordered.
The total monetary amount of the order.
Filter by ISO 4217 currency string.
Uniquely identifies the address for the order.
Returns entries with matching name of the street where the address is located.
Returns entries with matching name of the supplemental field for address information.
Filter by the name of the city where the address is located.
Filter by state or province where the address is located.
Filter by the mobile operator two-character (ISO 3166-1 alpha-2) origin country code.
Filter by postal code for the address.
Possible values: >= 1
Default value: 1
The page number to load.
Possible values: >= 1
and <= 250
Default value: 20
The size of the page.
Responses
200: Successful Response
- application/json
401: Unauthorized
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/sim_card_orders' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card_order",
"quantity": 21,
"cost": {
"amount": "2.52",
"currency": "USD"
},
"order_address": {
"id": "1293384261075731499",
"street_address": "311 W Superior St",
"extended_address": "Suite 504",
"locality": "Chicago",
"administrative_area": "IL",
"country_code": "US",
"postal_code": "60654"
},
"tracking_url": "http://www.example.com/",
"status": "pending",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}