Phone Numbers
Purchase from Inventory
Purchase a Vobiz phone number from inventory and assign it to your account - instantly deducts setup and monthly fees and activates the number for voice.
POST
Purchase from Inventory
Purchases a number from inventory and assigns it to your account. The operation debits your account balance for the setup fee and monthly fee.
HTTP Request
Authentication required:
X-Auth-ID- Your Auth ID (e.g.,{auth_id})X-Auth-Token- Your account Auth TokenContent-Type: application/json
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
e164 | string | Yes | Phone number to purchase in E.164 format (e.g., +919876543210). Keep the literal + — this field is in the JSON body, so no URL-encoding is needed. |
currency | string | No | Currency for the transaction. Defaults to the number’s currency, or USD if neither is set. |
The number must currently be in inventory (
status='active' and auth_id=NULL). Browse it first with List Inventory Numbers.Response
Returns a success message and the updated PhoneNumber object withauth_id assigned to your account.
Response - 200 OK
After purchase the number is owned by your account (
account_id set, source: "inventory") but not yet routed. Assign it to a trunk, attach it to an application, or hand it to a sub-account to start receiving calls.Examples
cURL - Purchase Number from Inventory
cURL Request
Error Response (404 Not Found): the number does not exist in inventory (already owned, released, or never stocked):
Error Response - 404 Not Found
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
Example:
"MA_XXXXXX"
Body
application/json
Response
Number purchased