Virtual cards
Errors
A refusal carries a code you can branch on, and an error written to be read.
| Status | code |
When |
|---|---|---|
400 |
idempotency_key_required |
A create had no usable Idempotency-Key. |
400 |
invalid_json, unknown_field, invalid_payer, invalid_limits, invalid_label, invalid_metadata, invalid_public_key, invalid_request |
The body or the query is not right. The message says which field. |
401 |
No key, or one that is not valid. | |
403 |
A key that may not issue cards. | |
404 |
card_not_found |
No such card for your key, whatever its id. |
404 |
payer_not_found |
No such payer. |
405 |
method_not_allowed |
The path exists but not for that method. |
409 |
payer_not_active |
The payer has not been activated, or has been suspended. |
409 |
invalid_state |
The card is not in a state that allows this. The message names the state. |
409 |
card_limit_reached |
The payer or the key has as many cards as it is allowed. |
422 |
The Idempotency-Key was already used with a different request. |
|
503 |
cards_unavailable |
This deployment issues no cards. |
503 |
rail_unavailable |
The card provider did not answer. Nothing was changed; retry. |