Orders and cards
An order buys a card for a cardholder. Once issued, the card has its own uuid and lifecycle.
Order lifecycle
create order ─┬► pending_activation ──► pending_user_profile ─┐
├► pending_user_profile ────────────────────────┤
└► processing ──────────────────────────────────┤
▼
processing
│
┌──────────────────────┬───────────────────────┼─────────────┐
▼ ▼ ▼ ▼
pending_profile_data pending_identity_document pending_approval failed
│ │ (send document) │
└──────────────────────┴──► pending_approval ──┴──► processing ──► completed
At any pending step the order can also end failed or, if you cancel it,
cancelled.
POST /v1/ordersdebits the amount plus fees from your balance.- A new cardholder must provide their details:
- without
api_only: they get an email, activate their account and fill in their profile in the cardholder portal (pending_activation, thenpending_user_profile); - with
api_only: true: no email is sent. The order waits inpending_user_profileuntil you callPOST /v1/profiles. This is decided per order: a cardholder first created by anapi_onlyorder gets the activation email when a later order for them is notapi_only. Products whoseapi_onlyis true inGET /v1/productsare always API-only for your company.
- without
- Some products also need the cardholder's identity document (see
Identity documents). Their orders wait in
pending_identity_documentuntil you send it. - A returning cardholder (same email, already verified) skips straight
to
processing. For products that need device fields, send them with the order (see Identity documents). - The card is issued and funded, then the order is
completedand itscardfield holds the card uuid.
Order statuses
| Status | Meaning | What to do |
|---|---|---|
pending_activation |
The cardholder hasn't activated their account from the email yet | Wait, or ask them to check their inbox |
pending_user_profile |
Waiting for the cardholder's profile | Submit it with POST /v1/profiles (for api_only orders), or wait for the cardholder |
pending_profile_data |
The cardholder's account is being set up for this product | Wait |
pending_identity_document |
Waiting for the cardholder's identity document (products whose requirements include identity_document) |
Send it with POST /v1/profiles/identity-document |
pending_approval |
The cardholder's identity is being reviewed | Wait |
processing |
The card is being issued and funded | Wait |
completed |
The card is ready; card holds its uuid |
Use the card |
failed |
Issuance failed; error says why |
Contact support. Failed orders are not refunded automatically unless support has enabled automatic cancellation for your company |
cancelled |
Cancelled and refunded | None |
disabled |
The card was frozen or closed after issuance | Check the card's status |
Some statuses from older card programs (such as waiting_card_activation)
can appear on older orders; treat any status not listed here as
processing.
next_action
Every order also carries next_action, so you don't have to work out the
next step from the status:
next_action |
What to do |
|---|---|
submit_profile |
Send the cardholder's profile with POST /v1/profiles |
submit_identity_document |
Send the identity document with POST /v1/profiles/identity-document |
wait |
Nothing: the cardholder or we are acting |
null |
The order is final (completed, failed or cancelled) |
For orders without api_only, steps the cardholder takes in the portal
show as wait.
What a product needs and supports
GET /v1/products tells you, per product:
requirements: what you must send beyond the usual order and profile —end_user_ipandend_user_country(the cardholder's device) andidentity_document. An empty list means nothing extra.api_only: orders for this product are API-only for your company.capabilities:reveal(card details throughPOST /v1/cards/{uuid}/secure-data-link),unload,pinandreload. Don't offer an action whose capability isfalse.
Identity documents
Products whose requirements include identity_document (they also have
identity_document_required: true) need the cardholder's identity document
before a card can be issued. For these products:
Send the cardholder's device details with the profile. Add
end_user_ip(their own public IP address, taken from their device — never your server's) andend_user_country(the 2-letter country it is in) toPOST /v1/profiles. Without them the profile is refused with a422on those fields. Any product whoserequirementsincludeend_user_ipneeds them, with or without a document; other products ignore them. A returning cardholder has no profile step: send the two fields withPOST /v1/ordersinstead. They update the profile on file; if none are on file and you send none, the order is refused (422, nothing charged).The profile is also checked against the card program's rules when you submit it, with a
422keyed by field: names in Latin letters (up to 40 characters), an email of at most 40 characters, a mobile number of at most 11 digits without the calling code, a full address, and a recognisable country of residence and nationality.Then send the identity document with
POST /v1/profiles/identity-document, in one of two ways:- Upload it (
multipart/form-data):document_type(passport,id_cardorresident_permit),document_number,issuing_country(2 letters), afrontphoto, and abackphoto for ID cards and residence permits. PNG or JPG, up to 6 MB each. The answer is201.503(identity_verification_unavailable) means verification is briefly unavailable: send it again after theRetry-Afterseconds. - Point to your identity verification account, if we have connected
it: send
kyc_applicant_id(the applicant's ID there) orkyc_external_user_id(your own user ID for them) instead. The answer is202; we retrieve the verified document ourselves. If the applicant isn't verified yet we keep checking for up to 24 hours.
- Upload it (
The order then continues on its own. Track it with
GET /v1/orders/{id}or the webhooks.
Accepted documents are passports, national ID cards and residence permits. Driver's licences are not accepted.
Which orders accept a document. An order of such a product that has a
profile and isn't finished — normally pending_identity_document, or
pending_approval after a resubmission_required webhook. next_action
is submit_identity_document exactly when one is expected. A failed,
cancelled or completed order refuses it (422): a failed order can't
be revived, so place a new order for the cardholder.
Minimum first load for these products: the order amount must be more
than $20.00. A smaller amount is refused when you place the order (422 on
amount).
Not yet available for these products: PIN management. Transaction fees
are not charged yet, so fee_charged is 0 on their transactions.
We don't keep the document. It is passed straight to the card program for
verification and discarded — not the number, not the photos. Only your
optional partner_reference (for example your own ID for the check) is
recorded. Because nothing is kept, an upload that fails with 503 has to be
sent again.
Follow verification with the identity.status_updated
webhook: required → in_review → approved. If the review asks for a new
document you get resubmission_required — send one for the same order. A
rejected document fails the order; place a new order to try again.
Cancelling an order
POST /v1/orders/{id}/cancel refunds the full total to your balance, as
long as the order is still pending and no card has been created yet.
After that point the call returns 409 order_not_cancellable; close the
card instead.
Card statuses
| Status | Meaning |
|---|---|
active |
The card can be used |
disabled |
Frozen by you (POST /v1/cards/{uuid}/disable) or by us. Purchases are declined; the balance stays on the card |
closed |
Permanently closed. The remaining balance has been returned to your company balance |
Some older card programs report "1" (active) and "2" (disabled) from
GET /v1/cards/{uuid}.
Funding
- Load (
POST /v1/cards/{uuid}/load, reloadable products only): your balance is debited for the amount plus any load fee when the request is accepted. The load completes in the background; if it fails, the debit is refunded. - Unload (
POST /v1/cards/{uuid}/unload): moves funds from the card back to your balance, in the background. - Follow either with
GET /v1/cards/{uuid}/reloads/{reload_id}untilstatusissuccessorfailed. A successful load can bepartial, meaning less than the requested amount was loaded.
Closing a card
POST /v1/cards/{uuid}/close starts the closure and returns 202. When it
finishes, the remaining balance is credited to your company balance and you
receive a card.status_updated webhook with status: closed and
balance_returned.
Showing card details
Only for products whose capabilities.reveal is true (see
GET /v1/products).
POST /v1/cards/{uuid}/secure-data-link returns links to pages that show
the full card number, expiry and CVV. Open them in the cardholder's browser
or embed them in an iframe. Each link works once and expires after five
minutes; create new links each time the cardholder wants to see the details.
Never fetch or store the card details on your servers.