Numbers
Purchase a Number
Buy a phone number from the catalog.
Buy an available number from the TryVox catalog. The purchase is charged to your wallet and the number is active immediately.
Prerequisites
- KYC approval. Without it the request returns
403 KYC_REQUIRED. - Wallet balance covering the setup fee and the first month's rental. Otherwise the request returns
402 INSUFFICIENT_BALANCE.
Use purchase-quote to see the exact amount before buying.
Endpoint
POST /v1/account/{auth_id}/numbers/purchase-from-inventoryRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| e164 | string | Yes | A number from Search, in E.164 format (e.g., +918045671234) |
| plan_code | string | No | PAY_AS_YOU_GO (default) or UNLIMITED_CALLING. Omit for pay-as-you-go. |
Request Example
curl --request POST \
--url https://api.tryvox.io/v1/account/$TRYVOX_AUTH_ID/numbers/purchase-from-inventory \
-u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
--header 'Content-Type: application/json' \
--data '{
"e164": "+918045671234"
}'Response
201 Created with the number object (abridged):
{
"data": {
"id": "6f1c2b9e-3a4d-4c1e-9b7a-2d5e8f0a1b2c",
"account_id": "TJab12cd34",
"e164": "+918045671234",
"country": "IN",
"circle": "Karnataka",
"city": "Bengaluru",
"type": "fixed_line",
"status": "active",
"plan_code": "PAY_AS_YOU_GO",
"currency": "INR",
"purchased_at": "2026-10-30T10:30:00Z",
"next_billing_date": "2026-11-29T10:30:00Z",
"created_at": "2026-10-01T08:00:00Z",
"updated_at": "2026-10-30T10:30:00Z"
}
}Billing
- On pay-as-you-go, the setup fee and the first month's rental are debited from your wallet at purchase. Rental renews every 30 days.
- Calls on a pay-as-you-go number are billed per minute, separately from the rental.
UNLIMITED_CALLINGreplaces the rental with a fixed monthly plan price where the plan is available for the number. If it is not, the request returns409 UNLIMITED_PLAN_UNAVAILABLE.
Get a Quote First
POST /v1/account/{auth_id}/numbers/purchase-quote{
"e164s": ["+918045671234"],
"plan_code": "PAY_AS_YOU_GO"
}The response gives per-number lines (setup_fee, monthly_price, total), the grand_total, your wallet_balance, any shortage, and sufficient_funds. A quote does not reserve the number and does not require KYC.
Buy Several Numbers
POST /v1/account/{auth_id}/numbers/bulk-purchaseSame body as the quote. Each number is bought independently; the response lists purchased numbers and failed ones with a reason.
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_FAILED | e164 missing, or plan_code is not a supported value |
| 402 | INSUFFICIENT_BALANCE | Wallet balance does not cover the first charge |
| 403 | KYC_REQUIRED | The account's KYC is not approved |
| 404 | NOT_FOUND | The number is not in the available inventory |
| 409 | ALREADY_EXISTS | The number is already owned by an account |
| 409 | UNLIMITED_PLAN_UNAVAILABLE | UNLIMITED_CALLING requested for a number where it isn't offered |
Next Steps
- List Your Numbers to view all owned numbers
- Configure a Number to assign it to an application or trunk