Virtual cards
The card
| Field | Meaning |
|---|---|
cardId |
The card's id. |
payerId |
The customer it was issued for. |
label |
A name you gave it, for display only. null when there is none. At most 100 characters. |
metadata |
Up to 20 text values of your own, such as your id for the customer. Returned on every read. |
state |
Where the card is in its life; see below. |
failureReason |
declined or unknown when state is failed, otherwise null. |
currency |
EUR. |
limits.total |
The most the card may spend over its life, in euros. |
limits.perTransaction |
The most one purchase may be. Absent when you set none. |
last4 |
The last four digits, once the card has been issued. null before. |
actions |
What you can do with the card right now; see below. |
createdAt, updatedAt |
ISO 8601 timestamps. |
The number and security code are not part of a card and are in no read. They leave only through reveal.
state |
Meaning |
|---|---|
provisioning |
The provider is issuing the card. Only its label and metadata can change. |
active |
Ready to use. It can be changed, frozen, read and closed. |
frozen |
Every purchase is refused. Unfreeze it to use it again, or close it. |
closing |
A close is under way. It is final. |
closed |
Closed for good. The card stays in your list. |
failed |
The provider did not issue it. failureReason says why. |
actions tells you what would be accepted now, so you do not have to work it out from the state:
| Action | True when | What it is |
|---|---|---|
update |
active, frozen |
Change limits. Label and metadata can change in any state. |
freeze |
active |
Stop every purchase. |
unfreeze |
frozen |
Allow purchases again. |
close |
active, frozen |
Close the card. |
reveal |
active |
Read the number and security code. A frozen card's details are not handed out. |