SIM Card Orders
Preview SIM card orders
Changed onPreviews a SIM card order purchase, returning estimated costs and details before you place the order. The preview is processed asynchronously.
post/sim_card_order_preview
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/sim_card_order_preview
- Auth: HTTP bearer
Request body
Example request
{
"quantity": 21,
"address_id": "1293384261075731499"
}Response
Successful Response
Example response
{
"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
}
}Changes
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status
- breaking
- breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status
- breaking