v1
latestOpenAPI 3.0.12026-07-26106359429.8 KBCompliance
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.
patch/v0/cards/{id}
Path parameters
idstring required
The server-generated ID of the Card object.
Example:card_xyz123
The server-generated Card ID (card_*). Unlike retrieve, this endpoint accepts only the server-generated ID, not a client_card_id.
Headers
Idempotency-Keystring required
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"
}
}