API Referencev1.0
HomeLog inSign up
VIRTUAL NUMBERS

Purchase a virtual number

POSThttps://production.dutchapi.co/v1/virtual-numbers/purchase

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

productstringrequired

Virtual-number service slug.

countrystringrequired

Country slug.

operatorstringoptional

Operator returned by the quote endpoint.

quotedTotalUsdnumberrequired

Current 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

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
400idempotency_key_requiredSend an Idempotency-Key header.
402insufficient_fundsThe wallet balance is too low.
409virtual_number_price_changedThe current number price changed; request a new quote.
422virtual_number_order_rejectedThe provider rejected the order and the USD wallet was refunded.
503virtual_number_purchases_disabledVirtual number purchases are not enabled for this business.
Updated 2026
Did this page help you?