Compliance
Deactivate a card
Beta: This endpoint is in beta and may change before general availability.
Transitions a card from active or closed to inactive status.
Idempotency
The Idempotency-Key header is required.
post/v0/cards/{id}/deactivate
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/cards/{id}/deactivate
- 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 deactivated 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.