Virtual cards
Create a card
POST/api/cards
Issue a card for a payer. The answer is 202 and the card is provisioning; read it until it is active.
Header
Idempotency-Key is required: any unique string of 1 to 255 printable characters, no spaces. Send the same key and the same body again and you get the same card back, marked Idempotent-Replay: true. The same key with a different body is 422. A key remembers its answer, a refusal included, so use a new key once you have fixed a refused request. A 5xx is not remembered: retry it with the same key.
Request
| Field | ||
|---|---|---|
payerId |
required | The customer the card is for. The payer must be active. |
limits.total |
required | The most the card may spend over its life, in euros: more than 0, at most 100000, at most two decimals. |
limits.perTransaction |
optional | The most one purchase may be. Not more than limits.total. |
label |
optional | A name for the card, for display. At most 100 characters. |
metadata |
optional | Up to 20 keys. A key is 1 to 40 letters, digits, dots, dashes, colons or underscores. A value is text of at most 500 characters. |
A field the endpoint does not take is refused, so a typo is an error rather than a setting that silently does nothing.
Response 202
The card, as in the quickstart.