VIRTUAL NUMBERS
Purchase a virtual number
Purchases a currently available number from the organization USD wallet.
🔒Send the project API key as a Bearer token and your Business ID with this call.
Send an Idempotency-Key header and reuse it only when retrying the same purchase.
Quote the service first and pass its totalUsd as quotedTotalUsd. Purchases are unavailable unless enabled for the deployment.
Body Params
productstringrequiredVirtual-number service slug.
countrystringrequiredCountry slug.
operatorstringoptionalOperator returned by the quote endpoint.
quotedTotalUsdnumberrequiredCurrent USD total returned by the quote endpoint.
Responses
{
"data": {
"transactionId": "vnm_8f2c1a",
"status": "active",
"service": "whatsapp",
"country": "United States",
"operator": "Carrier A",
"phoneNumber": "+12025550123",
"providerOrderReady": true,
"providerStatus": "RECEIVED",
"expiresAt": null,
"totalUsd": 2,
"currency": "USD",
"smsCode": null
}
}
{
"error": "insufficient_scope",
"message": "This project key is not allowed to do that."
}
Errors
| Status | error | Meaning |
|---|---|---|
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 402 | insufficient_funds | The wallet balance is too low. |
| 409 | virtual_number_price_changed | The current number price changed; request a new quote. |
| 422 | virtual_number_order_rejected | The provider rejected the order and the USD wallet was refunded. |
| 503 | virtual_number_purchases_disabled | Virtual number purchases are not enabled for this business. |
Updated 2026
Did this page help you?