Saltar al contenido principal

Esta página solo está disponible en inglés.Abrir en inglés

Users and cards

Reading​

RouteWhat it returns
GET /v2/productsThe card programs of your company and their card products, as in the panel: the cards you offer, the currency, the limits, the actions each card has and the fees
GET /v2/vaultThe vault of your program: network, token, tokenAddress, decimals, address, and deposited, the total your company deposited
GET /v2/users, GET /v2/users/{id}The users of your program
GET /v2/cards, GET /v2/cards/{id}The cards
GET /v2/transactionsDeposits, withdrawals, top-ups, purchases, refunds and fees
GET /v2/transactions/dailyA summary per day: days from 1 to 366, default 30
GET /v2/events, GET /v2/events/{id}The events of the last 30 days. See Webhooks
GET /v2/invites, GET /v2/invites/{id}The invites. See Invites

The API calls the program contract the vault. Its balances are read from the contract, on the network: GET /v2/vault gives you its address. See Read the balance of a wallet.

{
"success": true,
"vault": { "network": "polygon", "token": "USDC", "tokenAddress": "0xTOKEN", "decimals": 6, "address": "0xVAULT" },
"deposited": 100
}

Products​

{
"success": true,
"default": "prd_12",
"programs": [
{
"programId": 1,
"open": true,
"paused": false,
"products": [
{
"productId": "prd_12",
"name": "Visa Purchasing",
"network": "visa",
"currency": "USD",
"physical": false,
"holder": "user",
"wallets": { "apple": true, "google": true },
"actions": { "load": true, "freeze": true, "cancel": true, "reveal": true },
"limits": { "currency": "USD", "firstLoad": { "min": 20, "max": null }, "load": { "min": 10, "max": 5000 } },
"offered": true,
"available": true
}
]
}
]
}

The example shows part of the fields, with example values. To request a card, use the productId of a product with offered and available true. limits.firstLoad is the range of the first load and limits.load the range of each top-up, in dollars. holder says whether the card is for a user or for the company.

Users​

Filters: q (name, email or phone), kyc (an identity status, like approved), externalRef, sort (recent, name, -name), limit and before.

{
"success": true,
"users": [
{
"id": "user_4M8T2KX9PQ7AB",
"name": "Liam Carter",
"email": "[email protected]",
"phone": "+14155550167",
"createdAt": "2026-11-15T09:20:00Z",
"kyc": "approved",
"cards": 1,
"cardBalance": 20,
"wallets": ["0xde30…4d01"],
"cardsUsed": 1,
"cardsMax": 5,
"country": "US",
"externalRef": "crm-1042",
"inviteId": "inv_8QX4M2T7KA9PB",
"mode": "private"
}
],
"next": null,
"summary": { "users": 5, "verified": 4, "withCard": 2, "cardBalance": 40 }
}

mode says how the account was born: open, private or embedded. externalRef and inviteId come from the invite, or are null.

GroupFields of a user
Whoid, name, email, phone, createdAt, owner
Identitykyc, nameVerified
Cardscards (active cards), cardBalance, cardsUsed, cardsMax, cardsCreated, cardsCreatedMax, companyCards
Walletswallets, deposited
Creditcredit: what a closed request, a canceled card or a withdrawal from a card left in the account, in dollars. To use it or get it back, talk to support
UseappOpened, country (the country of the last sign-in, or null)
Card issuercardholders: one item for each card issuer where the person was registered, with label (the neutral name of the card issuer, like "Issuer 1", the same as in your programs), issuerNumber (its number, or null), status (in_review, active, needs_resubmission, blocked, rejected), since, reason, issuerText, cardsUsed and cardsMax
InviteexternalRef, inviteId, mode

Cards​

Filters: userId, status, q, canceled (true includes canceled cards), sort, limit and before.

statusOn the screensMeaning
requestedRequestedThe request arrived from the network
provisioningCreatingThe card issuer is creating the card. It can take longer than usual: see delayed
activeActiveReady to use
frozenFrozenFrozen
canceledCanceledCanceled
failedNot createdSupport closed the request. Everything it paid came back as credit
GroupFields of a card
Whoid, userId, userName, name, last4, art, status, created
Moneybalance
Request on the networkcardRef, tx, loadId, firstLoad, pendingOp, delayed
Program and productprogramId, kindId, holder (user or company), productId, productName, currency, label and issuerNumber (the card issuer, by its neutral name)
Addressbilling: the billing address of the card, which online stores ask for

pendingOp is the operation on its way for the card, or null: create_card, load_card, unload_card, freeze_card, unfreeze_card, cancel_card, set_limit, sync_card, reveal_card or, in the sandbox, simulate_purchase. While one is on its way, another write on the same card can answer 409 operation_pending.

delayed is true while a request of the card takes longer than usual, and is absent otherwise. On a card in provisioning, it is the card itself. On an active or frozen card, it is a top-up on its way, which does not show in pendingOp and does not block the card.

Transactions​

Filters: type (one or more, separated by commas: deposit, withdraw, topup, purchase, refund, fee, credit_in, credit_out), userId, cardId, limit and before.

{
"id": "tx_9B2KQ7M4XT8AP",
"at": "2026-11-16T14:25:00Z",
"type": "purchase",
"amount": 15.99,
"cardId": "card_7KQ2M9XF3TB1A",
"userId": "user_4M8T2KX9PQ7AB",
"status": "confirmed",
"currency": "USD",
"merchant": { "name": "Amazon", "mcc": "5942", "country": "US" }
}

Every transaction has id, at, type, amount, currency, cardId, card (name, last4, art), userId, userName, title, sub, status and reason. Purchases, refunds and fees also have merchant (name, brand, logo, country, mcc, currency, amount), relatedId, relatedStatus, declineReason, fee and held.

A purchase has status sent, confirmed, declined or cancelled (with two l, unlike the canceled of a card). Here merchant is an object; in the events it is only the name of the store. See how the status of a purchase matches the events in Webhooks.

Changing cards​

All with POST and an Idempotency-Key.

RouteBodyWhat it does
/v2/cards/{id}{"name": "Team tools"}Renames the card, 1 to 40 characters
/v2/cards/{id}/freezenoneFreezes the card
/v2/cards/{id}/unfreezenoneUnfreezes the card
/v2/cards/{id}/cancelnoneCancels the card, with the rules of the panel

The four work for any card of your program, embedded or not, and answer with the card: {"success": true, "card": {...}}.

Freezing, unfreezing and canceling are confirmed by the card issuer a moment later, by the event (card.frozen, card.unfrozen, card.canceled). Until then the card can still show the previous state, with pendingOp. Any balance left on a canceled card goes to credit. The platform also cancels a card by itself under the card rules, and the event says why.

On the screens, only the user of a card freezes and unfreezes it, in the app. Through the API your company can too. Unfreezing through the API needs only the key. In the app it asks for the code from the authenticator app. The secret key is already the authorization of your company, as in Stripe Issuing.

Test purchases​

Only in the sandbox. The same purchase simulator of the panel.

POST /v2/cards/{id}/simulate:

FieldMeaning
actionpurchase, refund, reversal or settle
amountIn dollars. Required in purchase. In the others, the amount of the purchase if left out
merchantOptional: {"name", "mcc", "country", "currency"}. currency is the currency of the store, like EUR
declineOptional: a decline code, to test a declined purchase
otpOptional: true asks for a purchase code
relatedIdThe tx_ of the purchase. Required in refund, reversal and settle
{ "success": true, "accepted": true, "simulationId": "sim_0123456789abcdef0123" }

The result comes like a real purchase: in the transactions, in the balance of the card and in the events, with "test": true. GET /v2/simulations and GET /v2/simulations/{id} show each step.