import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.bundlePricing.userBundles.deactivate('ca1d2263-d1f1-43ac-ba53-248e7a4bb26a');
console.log(response.data);{
"data": {
"id": "ca1d2263-d1f1-43ac-ba53-248e7a4bb26a",
"active": true,
"user_id": "16856d8c-cd59-4b08-9ac2-1ebb01d419e1",
"created_at": "2025-01-20",
"billing_bundle": {
"id": "7ecd040e-6bac-4139-9160-3c0427d98fea",
"name": "Australia Basic",
"cost_code": "BUNDLE-PRICING-BASIC-MRC",
"is_public": true,
"created_at": "2023-12-25",
"slug": "basic-au-e4f8",
"mrc_price": 2,
"currency": "USD",
"specs": [
"1 AU Number",
"Emergency Calling",
"All inbound and outbound calling billed pay-as-you-go"
]
},
"resources": [],
"updated_at": "2025-01-20"
}
}Deactivates a user bundle by its ID.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.bundlePricing.userBundles.deactivate('ca1d2263-d1f1-43ac-ba53-248e7a4bb26a');
console.log(response.data);{
"data": {
"id": "ca1d2263-d1f1-43ac-ba53-248e7a4bb26a",
"active": true,
"user_id": "16856d8c-cd59-4b08-9ac2-1ebb01d419e1",
"created_at": "2025-01-20",
"billing_bundle": {
"id": "7ecd040e-6bac-4139-9160-3c0427d98fea",
"name": "Australia Basic",
"cost_code": "BUNDLE-PRICING-BASIC-MRC",
"is_public": true,
"created_at": "2023-12-25",
"slug": "basic-au-e4f8",
"mrc_price": 2,
"currency": "USD",
"specs": [
"1 AU Number",
"Emergency Calling",
"All inbound and outbound calling billed pay-as-you-go"
]
},
"resources": [],
"updated_at": "2025-01-20"
}
}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
User bundle's ID, this is used to identify the user bundle in the API.
"ca1d2263-d1f1-43ac-ba53-248e7a4bb26a"
Successful Response
Show child attributes
User bundle's ID, this is used to identify the user bundle in the API.
"ca1d2263-d1f1-43ac-ba53-248e7a4bb26a"
Status of the user bundle.
true
The customer's ID that owns this user bundle.
"16856d8c-cd59-4b08-9ac2-1ebb01d419e1"
Date the user bundle was created.
"2025-01-20"
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"
Available to all customers or only to specific customers.
Date the bundle was created.
Slugified version of the bundle's name.
"basic-au-e4f8"
Monthly recurring charge price.
2
Bundle's currency code.
"USD"
[
"1 AU Number",
"Emergency Calling",
"All inbound and outbound calling billed pay-as-you-go"
]Show child attributes
Resource's ID.
"ca1d2263-d1f1-43ac-ba53-248e7a4bb26a"
The resource itself (usually a phone number).
"+15617819942"
The type of the resource (usually 'number').
"number"
Date the resource was created.
"2025-01-20"
Date the resource was last updated.
"2025-01-20"
[]Date the user bundle was last updated.
"2025-01-20"
Was this page helpful?