Update a card
Beta: This endpoint is in beta and may change before general availability.
Updates mutable attributes of a card. This is a partial update: only the fields present in the request body are changed; omitted fields are left unchanged. Card status is system-managed and changes through the status-transition endpoints, not this endpoint.
Idempotency
The Idempotency-Key header is required. Reusing a key with a different request body will return a 422 error.
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/cards/{id}
- AuthHTTP bearer
Path parameters
The server-generated ID of the Card object.
The server-generated Card ID (card_*). Unlike retrieve, this endpoint accepts only the server-generated ID, not a client_card_id.
Headers
Unique key to ensure idempotent requests
Request body
Response
Card updated 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.