import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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"
}
}Get a single bundle by ID.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Format: Bearer <TOKEN> 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
Bundle's ID, this is used to identify the bundle in the API.
"7ecd040e-6bac-4139-9160-3c0427d98fea"
Bundle's name, this is used to identify the bundle in the UI.
"Australia Basic"
Bundle's cost code, this is used to identify the bundle in the billing system.
"BUNDLE-PRICING-BASIC-MRC"
If that bundle is active or not.
Available to all customers or only to specific customers.
Date the bundle was created.
Show child attributes
"e6a32ea9-953b-4622-bbba-9f7bcf7e6717"
"E911"
"number"
1
"5"
"AU"
61
Use country_iso instead
An enumeration.
inbound, outbound "emergency"
Slugified version of the bundle's name.
"basic-au-e4f8"
Was this page helpful?