v1
latestOpenAPI 3.0.12026-07-26106359429.8 KBCompliance
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
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"
}
}