Public developer API

POST /v1/cards/:id/withdraw

Withdraws available funds from an active card to the business USD wallet, where supported.

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. Card operations accept USD only and obey business limits. A 202 response means the outcome is being reconciled.

Body

FieldTypeRequiredDescription
amountnumberyesPositive USD amount, up to 1,000,000.
currencystringnoUSD only; defaults to USD.

Example request

curl --request POST \
  --url 'https://production.dutchapi.co/v1/cards/ID/withdraw' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
  --header 'Idempotency-Key: cards-0001' \
  --header 'Content-Type: application/json' \
  --data '{"amount":10,"currency":"USD"}'

Response 201

{
  "data": {
    "reference": "cfund_5ab4f0c12e11",
    "status": "completed"
  }
}

Errors

StatuserrorMeaning
400idempotency_key_requiredSend an Idempotency-Key header.
403insufficient_scopeThis project key is not allowed to do that.
402insufficient_fundsThe wallet balance is too low.
400invalid_card_requestEnter a positive amount in USD.
404card_not_foundNo card with that ID belongs to this business.
409card_not_activeOnly an active card can be funded or withdrawn from.
503service_not_configuredThe card service is not connected for this business.

Related references

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