Check out our upcoming events and meetups! View events →
Preview SIM card order purchases.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
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
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
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
}
}