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-inventory

Request Body

FieldTypeRequiredDescription
e164stringYesA number from Search, in E.164 format (e.g., +918045671234)
plan_codestringNoPAY_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_CALLING replaces the rental with a fixed monthly plan price where the plan is available for the number. If it is not, the request returns 409 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-purchase

Same body as the quote. Each number is bought independently; the response lists purchased numbers and failed ones with a reason.

Errors

StatusCodeDescription
400VALIDATION_FAILEDe164 missing, or plan_code is not a supported value
402INSUFFICIENT_BALANCEWallet balance does not cover the first charge
403KYC_REQUIREDThe account's KYC is not approved
404NOT_FOUNDThe number is not in the available inventory
409ALREADY_EXISTSThe number is already owned by an account
409UNLIMITED_PLAN_UNAVAILABLEUNLIMITED_CALLING requested for a number where it isn't offered

Next Steps

On this page