Public developer API

POST /v1/virtual-numbers/orders/:reference/finish

Asks the provider to finish an active number order after an SMS code arrives.

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).

Requires an Idempotency-Key header.

Send an Idempotency-Key header. The order is only marked finished after the provider confirms.

Example request

curl --request POST \
  --url 'https://production.dutchapi.co/v1/virtual-numbers/orders/:reference/finish' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
  --header 'Idempotency-Key: virtual-numbers-0001' \
  --header 'Content-Type: application/json' \
  --data '{}'

Response 200

{
  "data": {
    "transactionId": "vnm_8f2c1a",
    "status": "finished"
  }
}

Errors

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
400idempotency_key_requiredSend an Idempotency-Key header.
409virtual_number_order_not_readyWait for an SMS code before finishing this order.
502virtual_number_finish_unconfirmedThe provider did not confirm completion.

Related references

Browse the complete endpoint directory, the developer portal and the security and controls guide.