Public developer API
POST /v1/cards/:id/freeze
Freeze a card belonging to the authenticated business.
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.
Example request
curl --request POST \
--url 'https://production.dutchapi.co/v1/cards/ID/freeze' \
--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 '{}'
Response 200
{
"data": {
"id": "card_7f1c2a",
"status": "frozen"
}
}
Errors
| Status | error | Meaning |
|---|---|---|
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 404 | card_not_found | No card with that ID belongs to this business. |
| 409 | card_not_active | A terminated card cannot be changed. |
| 503 | card_operation_failed | Dutch API could not update this card. |