Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.simCardOrderPreview.preview({
address_id: '1293384261075731499',
quantity: 21,
});
console.log(response.data);{
"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
}
}Preview SIM card order purchases.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.simCardOrderPreview.preview({
address_id: '1293384261075731499',
quantity: 21,
});
console.log(response.data);{
"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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Was this page helpful?