Docs

Virtual cards

Manage a card

GET/api/cards/{id}

Read one card. A card another key issued is 404, the same as a card that does not exist.

PATCH/api/cards/{id}

Change what you send and nothing else.

Field Effect
label A text sets it. null or an empty text clears it. Left out, it stays.
metadata An object replaces all of it. null clears it. Left out, it stays.
limits total and perTransaction change if sent and stay if not. perTransaction: null removes the cap. The result must still satisfy perTransaction ≤ total.

The label and metadata can change in any state. Limits change only while the card is active or frozen; before that, and after a close, the answer is 409. A request that is refused changes nothing.

Request

JSON
{
  "label": "Support agent 1 (EU)",
  "limits": { "total": 400, "perTransaction": null }
}

Response 200

The card, with "label": "Support agent 1 (EU)" and "limits": { "total": 400 }.

DELETE/api/cards/{id}

Close the card for good. It answers 200 with the card in closing, and the state becomes closed a moment later. Asking again is safe and changes nothing.

A card that is still provisioning cannot be closed yet and answers 409; close it once it is active. A failed card is returned as it is.

POST/api/cards/{id}/freeze

Stop every purchase on an active card. The answer is the card in frozen. Freezing a frozen card is safe and returns it unchanged; any other state is 409.

POST/api/cards/{id}/unfreeze

Allow purchases on a frozen card again. The answer is the card in active. Unfreezing an active card is safe and returns it unchanged; any other state is 409.