Skip to main content

Get all SIM card orders

GET 
/sim_card_orders

Get all SIM card orders according to filters.

Request

Query Parameters

    filter[created_at] datetime

    Filter by ISO 8601 formatted date-time string matching resource creation date-time.

    filter[updated_at] datetime

    Filter by ISO 8601 formatted date-time string matching resource last update date-time.

    filter[quantity] integer

    Filter orders by how many SIM cards were ordered.

    filter[cost.amount] string

    The total monetary amount of the order.

    filter[cost.currency] string

    Filter by ISO 4217 currency string.

    filter[address.id] int64

    Uniquely identifies the address for the order.

    filter[address.street_address] string

    Returns entries with matching name of the street where the address is located.

    filter[address.extended_address] string

    Returns entries with matching name of the supplemental field for address information.

    filter[address.locality] string

    Filter by the name of the city where the address is located.

    filter[address.administrative_area] string

    Filter by state or province where the address is located.

    filter[address.country_code] string

    Filter by the mobile operator two-character (ISO 3166-1 alpha-2) origin country code.

    filter[address.postal_code] string

    Filter by postal code for the address.

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load.

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page.

Responses

200: Successful Response

401: Unauthorized

default: Unexpected error

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
}
}