v1
latestOpenAPI 3.0.12026-07-26106359429.8 KBCompliance
Close a card
Beta: This endpoint is in beta and may change before general availability.
Transitions a card from active or inactive to closed status. A closed card can later be referenced as a replacement_for target or reactivated via the activate endpoint (unless it has been replaced).
Idempotency
The Idempotency-Key header is required.
post/v0/cards/{id}/close
Path parameters
idstring required
The server-generated ID of the Card object.
Example:card_xyz123
The server-generated Card ID.
Headers
Idempotency-Keystring required
Unique key to ensure idempotent requests
Request body
Response
Card closed successfully.
Example response
{
"id": "card_xyz123",
"account_id": "account_xyz123",
"entity_id": "entity_xyz123",
"details": {
"last_four": "1234",
"replacement_for": "card_xyz123"
}
}