Compliance
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
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/cards/{id}/close
- AuthHTTP bearer
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"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.