Check out our upcoming events and meetups! View events →
Get a single bundle by ID.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const billingBundle = await client.bundlePricing.billingBundles.retrieve(
'8661948c-a386-4385-837f-af00f40f111a',
);
console.log(billingBundle.data);{
"data": {
"id": "7ecd040e-6bac-4139-9160-3c0427d98fea",
"name": "Australia Basic",
"cost_code": "BUNDLE-PRICING-BASIC-MRC",
"active": true,
"is_public": true,
"created_at": "2023-12-25",
"bundle_limits": [
{
"id": "e6a32ea9-953b-4622-bbba-9f7bcf7e6717",
"service": "E911",
"metric": "number",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"limit": 1,
"rate": "5",
"country_iso": "AU",
"country_code": 61,
"country": "<string>",
"direction": "inbound",
"types": [
"local"
],
"billing_service": "emergency"
}
],
"slug": "basic-au-e4f8"
}
}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.
Format: Bearer Authenticates the request with your Telnyx API V2 KEY
Billing bundle's ID, this is used to identify the billing bundle in the API.
"8661948c-a386-4385-837f-af00f40f111a"
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 billingBundle = await client.bundlePricing.billingBundles.retrieve(
'8661948c-a386-4385-837f-af00f40f111a',
);
console.log(billingBundle.data);{
"data": {
"id": "7ecd040e-6bac-4139-9160-3c0427d98fea",
"name": "Australia Basic",
"cost_code": "BUNDLE-PRICING-BASIC-MRC",
"active": true,
"is_public": true,
"created_at": "2023-12-25",
"bundle_limits": [
{
"id": "e6a32ea9-953b-4622-bbba-9f7bcf7e6717",
"service": "E911",
"metric": "number",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"limit": 1,
"rate": "5",
"country_iso": "AU",
"country_code": 61,
"country": "<string>",
"direction": "inbound",
"types": [
"local"
],
"billing_service": "emergency"
}
],
"slug": "basic-au-e4f8"
}
}