Public developer API
POST /v1/virtual-numbers/price
Checks the current stock and price for a service, country and optional operator. This does not move wallet funds.
Access
A project-specific API key (Authorization: Bearer dapi_live_...) and its Business ID (X-Business-Id). Rate limited per business (120 calls a minute by default).
Body
| Field | Type | Required | Description |
|---|---|---|---|
product | string | yes | Virtual-number service slug. |
country | string | yes | Country slug. |
operator | string | no | Select a specific available operator. |
Example request
curl --request POST \
--url 'https://production.dutchapi.co/v1/virtual-numbers/price' \
--header 'X-Business-Id: YOUR_BUSINESS_ID' \
--header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
--header 'Content-Type: application/json' \
--data '{"product":"whatsapp","country":"united_states"}'
Response 200
{
"data": {
"product": "whatsapp",
"country": "united_states",
"operator": "Carrier A",
"providerPrice": 1.2,
"serviceFee": 0.8,
"totalUsd": 2,
"currency": "USD"
}
}
Errors
| Status | error | Meaning |
|---|---|---|
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 400 | virtual_number_selection_required | Choose a valid service and country. |
| 404 | virtual_number_unavailable | No numbers are available for this service and country. |