Skip to main content

Preview SIM card orders

POST 
/sim_card_order_preview

Preview SIM card order purchases.

Request

Body

    quantity integerrequired

    Possible values: >= 1

    The amount of SIM cards that the user would like to purchase in the SIM card order.

    address_id int64required

    Uniquely identifies the address for the order.

Responses

202: Successful Response

422: Unprocessable entity. Check the 'detail' field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/sim_card_order_preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"quantity": 21,
"address_id": "1293384261075731499"
}'

Response samples


{
"data": {
"total_cost": {
"amount": "2.32",
"currency": "USD"
},
"shipping_cost": {
"amount": "2.32",
"currency": "USD"
},
"sim_cards_cost": {
"amount": "2.32",
"currency": "USD"
},
"record_type": "sim_card_order_preview",
"quantity": 21
}
}