v1

latestOpenAPI 3.1.02026-07-26490367.2 KB

Update Card

Update details for a specific card.

put/cards/{id}

Path parameters

idstring required

The _id of the card to update.

Request body

fundingSourceIdstring

The funding source _id. Required if you wish to map card to an existing funding source.

status'active' | 'inactive' | 'canceled' required

The card status.

metadatastring json

The metadata object to attach to the card. Stored in key-value pair

cancellationReason'lost' | 'stolen'

Required if status is set to canceled

creditAccountIdstring

The credit account _id. Required for canceled status only.

Response

Card updated successfully.

statusCodeinteger

Status code of the response. 200 indicates a successful request.

messagestring

Human-readable description of the result.