Skip to main content
A card is a virtual prepaid Visa or Mastercard with its own balance. It is issued on one of the BINs on your account, to a cardholder who has been verified. The BIN decides the network, the country of issue, the card’s capabilities (Apple Pay, Google Pay, 3D Secure) and its settings, such as its spending limits. See BINs.

Before you issue

Every refusal happens before anything is held or charged.

Issuing a card

Send the cardholder and the BIN ID shown on the BIN’s page in your dashboard:
  • amount is the card’s first load, in dollars. It is required.
  • productId is still accepted for integrations written before BINs. If both are sent, binId is used.
  • Send an Idempotency-Key (or a reference in the body): a retry then returns the same card instead of issuing a second one.
Issuance is asynchronous. The response may carry status: CREATING, with no card number yet. The card is ready when the CARD_ISSUED webhook arrives, or when GET /cards/{id} returns ACTIVE. Build for the webhook: provisioning can take from a few seconds to about an hour.

Card statuses

The issuer decides, and we wait for it

Freeze, unfreeze and terminate are confirmed with the card issuer before the API answers, so the status you get back is one the network will honour:
  • If the issuer refuses, the card is left exactly as it was: CARD_STATE_CHANGE_REFUSED for a freeze or unfreeze, CARD_TERMINATION_REFUSED for a termination. A 503 means try again shortly.
  • These calls take noticeably longer than a read. Allow for it in your client timeout.
  • If a card’s status ever turns out to differ from the issuer’s, it is corrected and you receive CARD_STATUS_CORRECTED.

Funding and unloading

  • Both are asynchronous. The response says status: PENDING: the request was accepted and the issuer has not confirmed it yet. The outcome arrives as the webhook in the table above; until then, treat the money as in flight.
  • A frozen card cannot be funded (422 CARD_FROZEN_CANNOT_FUND); it can be unloaded.
  • You cannot unload more than the card holds (422 INSUFFICIENT_CARD_BALANCE).
  • A fund or unload reference is single-use: one that already failed answers 409 REFERENCE_ALREADY_FAILED, so send a new one to try again.

Freezing

A frozen card is declined at the network. Freeze first when a cardholder reports a lost card; unfreeze if it turns up, terminate if not.

Terminating

Termination is permanent. The body must confirm it:
  • A card cannot be terminated in its first hour (422 CARD_TOO_NEW_TO_TERMINATE).
  • Pending authorisations must clear first (409 CARD_HAS_PENDING_TRANSACTIONS); that usually takes 24 to 72 hours.
  • A 200 means the issuer has closed the card. A refusal means it is still live: nothing is retried in the background, so resolve the reason and call again.
  • The remaining balance comes back to your balance when the issuer releases it, which you receive as CARD_TERMINATION_REFUND.

Card details

GET /cards/{id} returns the card with its masked number (445123******4123), last4, expiry, balance and status. The full card number and CVV come only from GET /cards/{id}/secure-details, encrypted with the API key that asked for them, so nothing in between can read them.

Limits and statements

  • POST /cards/{id}/limits sets daily, monthly and per-transaction spending limits, where the BIN supports them.
  • POST /cards/{id}/statement produces a PDF statement of the card’s transactions, under your own brand, and returns a download link valid for 3 days.

Webhook events

Transactions on a card arrive as TRANSACTION_PROCESSED.

Endpoints