Obsidian API Download OpenAPI spec (v1)

Staging documentation. Requests go to https://staging.obsidian.cards. Use test data only.

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.

  1. POST /v1/orders debits the amount plus fees from your balance.
  2. 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, then pending_user_profile);
    • with api_only: true: no email is sent. The order waits in pending_user_profile until you call POST /v1/profiles. This is decided per order: a cardholder first created by an api_only order gets the activation email when a later order for them is not api_only. Products whose api_only is true in GET /v1/products are always API-only for your company.
  3. Some products also need the cardholder's identity document (see Identity documents). Their orders wait in pending_identity_document until you send it.
  4. 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).
  5. The card is issued and funded, then the order is completed and its card field 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:

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:

  1. 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) and end_user_country (the 2-letter country it is in) to POST /v1/profiles. Without them the profile is refused with a 422 on those fields. Any product whose requirements include end_user_ip needs them, with or without a document; other products ignore them. A returning cardholder has no profile step: send the two fields with POST /v1/orders instead. 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 422 keyed 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.

  2. 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_card or resident_permit), document_number, issuing_country (2 letters), a front photo, and a back photo for ID cards and residence permits. PNG or JPG, up to 6 MB each. The answer is 201. 503 (identity_verification_unavailable) means verification is briefly unavailable: send it again after the Retry-After seconds.
    • Point to your identity verification account, if we have connected it: send kyc_applicant_id (the applicant's ID there) or kyc_external_user_id (your own user ID for them) instead. The answer is 202; we retrieve the verified document ourselves. If the applicant isn't verified yet we keep checking for up to 24 hours.
  3. 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

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.