API Documentation
Integrate card issuing directly into your own product. Verify your business, fund a pooled wallet, onboard customers, issue and manage cards, and receive real-time webhooks — all server-to-server.
Getting Started
Apply for access from the landing page. Once onboarded, your team gets a merchant dashboard login. From there:
- Submit KYB (Know-Your-Business) from the dashboard and wait for approval.
- Create an API key under Account → API keys. The secret is shown exactly once.
- Set your webhook URL under Webhooks, and reveal the signing secret to verify deliveries.
- Fund your wallet by sending USDT to one of its deposit addresses.
Base URL
Every endpoint is shown relative to $API_BASE_URL. All partner API routes are prefixed with /api/v1. Requests and responses are plain JSON.
Your $API_BASE_URL is your business's own API URL, of the form https://<api host>/m/<your link>. Find it in your dashboard under API URL (an authenticator code is required to reveal it). Calls go to $API_BASE_URL/api/v1/…, including /api/v1/auth/token.
- Your keys work only on your own API URL. The plain base URL without a link is refused.
- Another business's keys never work on your URL, and yours never work on theirs.
- Your business has one API URL, issued when Eisy Global approves your business. Keep it in your server configuration, like your keys. If it leaks, contact support: we replace it, and the old one stops working immediately.
- Every API key needs an IP whitelist. Add your servers' IP addresses to the key in your dashboard (Account → API keys); a key without one is refused, even with the right secret.
Response envelope
Every JSON response, success or failure, has the same shape:
{
"status": true,
"message": "Successful",
"data": { },
"request_id": "req_01a10673-a078-7641-a76f-94b9ab90cbf0",
"correlation_id": "req_01a10673-a078-7641-a76f-94b9ab90cbf0",
"timestamp": "2026-10-04T10:26:43.453Z"
}| Field | Type | Description |
|---|---|---|
status | boolean | true on success, false on failure. Always check this, not just the HTTP code. |
message | string | Human-readable. Safe to show to your users on failure. |
data | any | The payload. On failure, usually { "status": false } or null. |
code | string | Failures only. A stable, machine-readable reason (see Errors). Branch on this, not on the message text. |
extensions.field_violations | { field, description }[] | Validation failures that concern specific fields. |
request_id | string | Unique id of this one request. Also sent as the X-Request-Id response header. |
correlation_id | string | Id of the whole operation this request starts, carried onto the webhooks it causes. On an API response it equals request_id. Also sent as the X-Correlation-Id response header. |
timestamp | ISO date | When the response was produced. |
Request ids
- Log it. Store
request_idwith your own logs, and quote it when you contact support: we can find every log line for that request with it. - Both ids are ours. Read them from the response; don't generate them. That keeps them unique and trustworthy: nobody can choose or reuse one. An
X-Request-IdorX-Correlation-Idyou send isn't used as ours; it's only recorded in our logs as your own reference. - Match webhooks to calls. Keep the
correlation_idfrom a call's response: the webhooks that call causes arrive with the same value. For example, freeze a card and store the response'scorrelation_id; thecard.frozenwebhook carries it.
Data conventions
- IDs are UUID strings.
- Money is US dollars. Values read from storage (wallet balance, ledger rows, withdrawals) are decimal strings like
"970.00"; computed values (cards, card transactions) are numbers. Parse withNumber(value). - Timestamps are ISO-8601 UTC strings.
- Pagination:
?page=(1-based) and?limit=(default 20, max 100). Most lists return{ page, limit, total, totalPages, <items> }; exceptions are noted.
Authentication
Two steps: exchange your API key for a 1-hour access token, then send that token on every call, with each request signed. From your API key you need three values: clientId, clientSecret (the part of secret after sk_<clientId>_) and uniqueKey.
- The secret isn't sent with API calls. It goes only to the token endpoint, about once an hour.
- The secret still signs every request, so a stolen token alone can't make calls.
1. Get an access token
POST /api/v1/auth/token with HTTP Basic auth (clientId:clientSecret). Form bodies (grant_type=client_credentials&scope=CardAPIs) work too. scope is optional: leave it out and the token gets every scope.
const API_URL = "https://api.example.com/m/<your-link>"; // Your API URL from the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret";
async function getAccessToken() {
const res = await fetch(`${API_URL}/api/v1/auth/token`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Basic " + Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString("base64"),
},
body: JSON.stringify({ grant_type: "client_credentials" }),
});
const body = await res.json();
if (!body.status) throw new Error(body.message);
return body.access_token; // Valid for 1 hour: reuse it
}
getAccessToken().then(console.log);{
"status": true,
"message": "Access token issued",
"data": { "access_token": "at_3f9c…", "expires_in": 3600, "token_type": "Bearer", "scope": "CardAPIs CustomerAPIs" },
"access_token": "at_3f9c…",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "CardAPIs CustomerAPIs"
}The token fields appear both in data and at the top level, so standard OAuth2 client-credentials libraries can read them directly.
- Reuse it. Keep using the same token until shortly before
expires_in(1 hour) runs out. Don't request one per call: the endpoint allows 30 requests per minute per IP. - It can stop working early. Regenerating or revoking the API key ends all of its tokens immediately. Get a new token with the current secret.
- Same checks as API calls: the key's IP whitelist and your business being active. KYB approval isn't needed, so you can get a token to call the KYB endpoints.
Scopes
A token can only call the endpoints its scopes cover. Request just what each integration needs.
| Field | Type | Description |
|---|---|---|
KybAPIs | scope | /kyb, /kyb/verification-session, /kyb/verification-status |
WalletAPIs | scope | /wallet, /wallet/transactions, /wallet/withdrawals…, /pricing |
CustomerAPIs | scope | POST /customers, GET /customers/:id, /customers/:id/kyc… |
CardAPIs | scope | /customers/:id/cards (issue, list), GET /cards/:cardId (masked), /cards/:cardId/balance, /cards/:cardId/transactions, /topup, /withdraw, /freeze, /unfreeze, /terminate |
CardDetailsAPIs | scope | GET /cards/:cardId/pan (full card number and CVV). Separate, so most tokens can be issued without it. |
WebhookAPIs | scope | /webhooks, /webhooks/:id, /webhooks/:id/retry |
GiftCardAPIs | scope | /giftcards…: the catalogue, quotes, buying, selling, your trades and a purchase's codes |
- Separate scopes with spaces (commas also work). Matching ignores case; the response gives the canonical names.
- An unknown scope fails the request (
Unknown scope: …) and no token is issued. - Calling an endpoint without its scope fails with HTTP 400 and
code: "FORBIDDEN";data.requiredScopenames the scope needed. - A token's scopes are fixed when it's issued. To widen them, request a new token.
2. Send these headers on every API call
| Field | Type | Description |
|---|---|---|
Authorizationrequired | header | Bearer <access_token>, from step 1. The API key itself is not accepted here. |
Referencerequired | header | Any string, unique per request. Reusing one within 15 minutes is rejected. |
UniqueKeyrequired | header | Shown on the key in your dashboard. Folded into the signature, so a wrong value fails verification. |
Signaturerequired | header | Computed as below. |
Computing the signature
signature = base64( sha1hex( METHOD & encodeURIComponent(pathWithQuery) & Reference & clientId & clientSecret & uniqueKey ) )
METHOD— uppercase (GET,POST).pathWithQuery— the full path and query string you call, starting with your API URL's/m/<your link>, e.g./m/k7f3…/api/v1/wallet/transactions?page=2&limit=50— never the host.- Join with
&, take the SHA-1 hex string, then base64-encode that hex string (not the raw bytes). clientSecretis part of the signature but is not sent.
This program signs and sends one request. Choose your language above the code. Replace the values at the top with your own, and reuse your access token until about a minute before it expires.
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("GET", "/api/v1/wallet/transactions?page=2&limit=50").then(console.log);Check your signing code
This sample signs made-up values, so you can check your setup before using real credentials. It should print OGZjNDJhNjA3NzFiMGUyZDAyNTVkYjkyZGYwNzM4MDFkMDgxOTU0MA==.
const crypto = require("crypto");
function signRequest(method, pathWithQuery, reference, clientId, clientSecret, uniqueKey) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, clientId, clientSecret, uniqueKey].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
console.log(signRequest(
"POST", "/m/abcdefghijklmnopqrstuvwxyz234567/api/v1/customers", "test-ref-001",
"a1b2c3d4e5f6", "0123456789abcdef0123456789abcdef0123456789abcdef", "test-unique-key",
));clientSecret must never be in a mobile app or browser. Use only the secret part, not sk_<clientId>_<clientSecret>.IP whitelist (required)
Every API key must have at least one whitelisted IP address. A key without one is refused, both when requesting an access token and on every API call, even with the right secret.
- Add your servers' addresses to the key in your dashboard (Account → API keys). You set them when you create the key.
- Use exact IPv4 or IPv6 addresses. CIDR ranges aren't accepted.
- You can change the list at any time, but you can't empty it.
- A request from an address that isn't on the list is refused.
Token errors
| Field | Type | Description |
|---|---|---|
Send Authorization: Basic base64(clientId:clientSecret) | 400 | Missing or wrong Authorization header on /auth/token. |
Invalid client credentials | 400 | Wrong clientId or clientSecret, or the key is revoked. |
Unknown scope: X. Valid scopes: … | 400 | scope contains a name not in the table above. |
grant_type must be client_credentials | 400 |
Authentication errors
All return HTTP 400 with status: false and code: "UNAUTHORIZED".
| Field | Type | Description |
|---|---|---|
Missing access token — get one from POST /api/v1/auth/token | 400 | No Authorization: Bearer … header. |
Access token is invalid or expired — get a new one from POST /api/v1/auth/token | 400 | Expired (after 1 hour), made up, or the key was regenerated or revoked since it was issued. |
Send an access token from POST /api/v1/auth/token | 400 | Something other than an access token was sent as the bearer, e.g. the API key itself. |
Missing Reference/Signature/UniqueKey headers | 400 | One or more headers not sent. |
Invalid UniqueKey | 400 | Doesn't match the key's value. |
Invalid request signature | 400 | On your API URL, the signed path must start with /m/<your link> (e.g. /m/<your link>/api/v1/customers, not /api/v1/customers), and the URL must have no trailing slash. Also check the path includes the query string, the method is uppercase, and you base64-encoded the hex string. |
This Reference has already been used | 400 | References can't repeat within 15 minutes. |
This IP is not whitelisted for this API key | 400 | The caller's IP isn't on the key's whitelist. |
This API key has no IP whitelist. Add your servers' IP addresses to it in your dashboard (Account → API keys) before using it. | 400 | Every key needs at least one whitelisted IP. code: "FORBIDDEN". |
This account is not active | 400 | Your business has been suspended. |
This API URL isn't valid for your account. Use the API URL shown in your dashboard under API URL. | 400 | The URL's link isn't yours, or was replaced. code: "FORBIDDEN". |
Invalid request | 400 | Not approved yet. code: "FORBIDDEN". |
Your account must call the API through its own API URL, shown in your dashboard under API URL. | 400 | You called the plain base URL. code: "FORBIDDEN". |
This business has not completed KYB verification | 400 | Every route except /kyb needs KYB APPROVED. |
Errors & Rate Limits
Almost every failure — validation, a business rule, not found — returns HTTP 400 with status: false, a readable message and a machine-readable code.
{
"status": false,
"message": "amount must be a positive number",
"data": { "status": false, "errors": { "amount": "amount must be a positive number" } },
"code": "VALIDATION_ERROR",
"extensions": {
"field_violations": [
{ "field": "amount", "description": "amount must be a positive number" }
]
},
"request_id": "req_01a10673-a0aa-75b8-8dba-c6eb75f3d42f",
"correlation_id": "req_01a10673-a0aa-75b8-8dba-c6eb75f3d42f",
"timestamp": "2026-10-04T10:26:43.499Z"
}| Field | Type | Description |
|---|---|---|
VALIDATION_ERROR | 400 | A field is missing or invalid. See extensions.field_violations when present. |
BAD_REQUEST | 400 | The request can't be done as asked (a business rule). Read message. |
UNAUTHORIZED | 400 / 401 | Missing or invalid credentials: access token, client credentials, request signature, or an IP that isn't whitelisted. |
FORBIDDEN | 400 | The access token doesn't include the scope this endpoint needs; data.requiredScope names it. |
NOT_FOUND | 400 | No such resource, or it belongs to another business. |
CONFLICT | 400 | Already done or already exists (e.g. a clientReference already used). |
INSUFFICIENT_FUNDS | 400 | The wallet or card balance can't cover it. |
SERVICE_DISABLED | 400 | Switched off: card service, withdrawals, or an account that isn't active. |
PAYLOAD_TOO_LARGE | 413 | Body over 25 MB. |
RATE_LIMITED | 429 | Too many requests: wait and retry. |
INTERNAL_ERROR | 500 | Unexpected server error: retry, and quote the request_id if it persists. |
New codes may be added later; treat an unknown code like BAD_REQUEST.
Rate limits
| Field | Type | Description |
|---|---|---|
General | 120 req/min | Per business, across every endpoint — including gift cards. The tighter per-endpoint limits below count against this one too, not instead of it. |
GET /cards/:cardId/pan | 20 req/min | A separate, tighter limit on full card details. |
Card issuance | 1 per 30 s | Per customer. See Issue a card. |
POST /auth/token | 30 req/min | Per IP. Reuse tokens rather than requesting one per call. |
POST /giftcards/buy, POST /giftcards/sell | 30 req/min | Per business. See Buy / Sell. |
GET /giftcards/trades/:id/codes | 20 req/min | Per business. See Get the codes. |
HTTP/1.1 429 Too Many Requests
{
"status": false,
"message": "Too many requests, try again later.",
"data": null,
"code": "RATE_LIMITED",
"request_id": "req_…",
"correlation_id": "req_…",
"timestamp": "2026-10-04T10:26:43.453Z"
}Retries & Idempotency
Card creation, card top-ups, card withdrawals and wallet withdrawals accept a clientReference. Send a unique one per operation (e.g. your own order id).
- Same reference again: you're never charged twice. A completed operation answers
This clientReference was already used…; a wallet withdrawal returns the original request. - Failed and refunded:
That card request failed and was refunded. Send a new clientReference to try again. - Outcome couldn't be confirmed (a network problem with the card network): the error's
data.clientReferenceholds the reference to retry with — generated for you if you sent none. Retry with exactly the same body and reference; it completes at most once, with no new charge. If you don't retry, it resolves on its own within about 30 minutes: the card appears, or the charge is refunded. - Changed request: reusing a reference with a different amount or card is refused.
{
"status": false,
"message": "…",
"data": { "status": false, "clientReference": "order-8812" }
}KYB
Know-Your-Business verification. Your first submission normally goes through the dashboard, since you can't create an API key until KYB is approved. These endpoints work before approval and mainly serve resubmission after a rejection.
/api/v1/kybSubmit or resubmit your KYB. The business goes back to PENDING. Refused with This business is already verified once your KYB is APPROVED; contact us to update it after that.
| Field | Type | Description |
|---|---|---|
legalNamerequired | string | |
registrationNumberrequired | string | |
countryOfIncorporationrequired | string | |
contactEmailrequired | string | Receives the review outcome and wallet deposit emails. |
certificateOfIncorporationrequired | string | Base64 data URI or URL. |
shareholdersrequired | object[] | At least one. Each needs fullName; optional nationality, percentageOwnership, idType, idNumber, idDocument (data URI or URL). |
line1, city, state, zipCode | string | Registered address. |
contactPhone, website | string | |
proofOfAddress, ownerIdDocument, memart, cacDocument | string | Base64 data URI or URL. |
additionalDocuments | { label, data }[] | Any further documents. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/kyb", `{
"legalName": "Acme Payments Ltd",
"registrationNumber": "RC1234567",
"countryOfIncorporation": "NG",
"contactEmail": "compliance@acme.com",
"certificateOfIncorporation": "data:application/pdf;base64,JVBERi0xLjQK...",
"shareholders": [
{ "fullName": "Ada Lovelace", "nationality": "NG", "percentageOwnership": 60 }
],
"line1": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"contactPhone": "+2348012345678",
"website": "https://acme.com"
}`).then(console.log);{
"status": true,
"message": "KYB submitted for review",
"data": {
"id": "5b2e…",
"legalName": "Acme Payments Ltd",
"registrationNumber": "RC1234567",
"countryOfIncorporation": "NG",
"contactEmail": "compliance@acme.com",
"shareholders": [
{ "fullName": "Ada Lovelace", "nationality": "NG", "percentageOwnership": 60 }
],
"status": "PENDING",
"rejectionReason": null,
"reviewedAt": null,
"createdAt": "2026-10-01T10:00:00.000Z"
}
}/api/v1/kybCurrent status (NOT_SUBMITTED, PENDING, APPROVED, REJECTED) and the latest submission. Uploaded documents are never returned.
{
"status": true,
"message": "Successful",
"data": {
"kybStatus": "APPROVED",
"latestSubmission": {
"id": "5b2e…",
"legalName": "Acme Payments Ltd",
"status": "APPROVED",
"rejectionReason": null,
"reviewedAt": "2026-10-01T09:12:00.000Z",
"createdAt": "2026-09-30T10:00:00.000Z"
}
}
}Hosted verification with Didit
Instead of the form above, your business can be verified on Didit's hosted page, which checks the company against the business registry. Once finished it's submitted for our team's review, exactly like a form submission; Didit never approves on its own.
/api/v1/kyb/verification-sessionStarts a verification, or returns the unfinished one (resumed: true). Open url for the person completing it.
| Field | Type | Description |
|---|---|---|
contactEmailrequired | string | Receives the review outcome and wallet deposit emails. |
{
"status": true,
"message": "Business verification started",
"data": {
"kybId": "5b2e…",
"url": "https://…",
"status": "Not Started",
"resumed": false
}
}/api/v1/kyb/verification-statusCheap to poll every few seconds while verification is open; stop when done is true. state is not_started, in_progress, submitted (pending review), approved, rejected, verification_failed or expired (start again), with a ready-to-show message.
{
"status": true,
"message": "Successful",
"data": {
"kybStatus": "PENDING",
"state": "submitted",
"message": "Your KYB has been submitted and is pending review. We'll email you once it's been reviewed.",
"done": true,
"verificationStatus": "Approved",
"verificationUrl": null
}
}Wallet
One pooled USD wallet per business pays for everything: card creation, top-ups and fees. Fund it by sending USDT to one of its deposit addresses. A deposit is credited automatically once it has settled on-chain (usually minutes): your KYB contact gets an email and you get a wallet.credited.deposit webhook.
/api/v1/walletBalance and deposit addresses. depositAddresses lists each address with its chain (USDT and USDC on TRC20 and BEP20); always show the network next to the address, because funds sent on another network can't be recovered. Addresses are created on first call, once KYB is approved; until then depositAddressError says why they're missing. address and addressBep20 are older aliases for the first and second address (the name is historical).
{
"status": true,
"message": "Successful",
"data": {
"balance": "970.00",
"depositAddresses": [
{ "chain": "tron", "address": "TQ4y…7mNe" },
{ "chain": "bsc", "address": "0x8f2c…e41a" }
],
"depositAddressError": null,
"address": "0x8f2c…e41a",
"addressBep20": "7Xq3…kP9d"
}
}/api/v1/wallet/transactionsThe wallet ledger: 10 per page by default (limit up to 100), newest first, with total and totalPages. Every filter is optional, and they combine.
| Field | Type | Description |
|---|---|---|
page, limit | number | Default 1 and 10; limit up to 100. |
type | "CREDIT" | "DEBIT" | |
service | string | One or more services, comma-separated, e.g. CARD_TOPUP,CARD_FUNDING_FEE (values below). |
customerId | string | One customer's transactions. |
cardId | string | One card's transactions. Card creation rows carry the new card's id once it's issued. |
clientReference | string | Your own clientReference: every row of that operation (the charge, its fee rows and any refund). |
search (alias q) | string | Text in the title, description, our reference or yours. |
minAmount, maxAmount | number | On amount. |
createdFrom, createdTo | ISO date | Date or datetime. A bare date as createdTo includes that whole day. |
sortBy | "createdAt" | "amount" | Default createdAt. |
order | "desc" | "asc" | Default desc. |
An invalid filter value returns status: false with a message listing the allowed values.
{
"status": true,
"message": "Successful",
"data": {
"page": 1,
"limit": 10,
"total": 3,
"totalPages": 1,
"transactions": [
{
"id": "9c33…",
"type": "DEBIT",
"service": "CARD_FUNDING_FEE",
"title": "Card Funding Fee",
"description": "Funding fee for card creation",
"amount": "1.00",
"fee": "0.00",
"balanceBefore": "971.00",
"balanceAfter": "970.00",
"ref": "card-create:order-8812:fee:CARD_FUNDING_FEE",
"clientReference": "order-8812",
"customerId": "02328859-…",
"cardId": "c4c09003-…",
"createdAt": "2026-10-01T10:00:00.000Z"
},
{
"id": "9c32…",
"type": "DEBIT",
"service": "CARD_CREATION_FEE",
"title": "Card Creation Fee",
"description": "Card creation fee",
"amount": "2.00",
"fee": "0.00",
"balanceBefore": "973.00",
"balanceAfter": "971.00",
"ref": "card-create:order-8812:fee:CARD_CREATION_FEE",
"clientReference": "order-8812",
"customerId": "02328859-…",
"cardId": "c4c09003-…",
"createdAt": "2026-10-01T10:00:00.000Z"
},
{
"id": "9c31…",
"type": "DEBIT",
"service": "CARD_CREATION",
"title": "Card Creation",
"description": "New card loaded with $50.00",
"amount": "50.00",
"fee": "0.00",
"balanceBefore": "1023.00",
"balanceAfter": "973.00",
"ref": "card-create:order-8812",
"clientReference": "order-8812",
"customerId": "02328859-…",
"cardId": "c4c09003-…",
"createdAt": "2026-10-01T10:00:00.000Z"
}
]
}
}| Field | Type | Description |
|---|---|---|
DEPOSIT | CREDIT | Wallet funded. |
CARD_CREATION | DEBIT / CREDIT | Card issued (the amount loaded on the card) / issuance refunded. |
CARD_CREATION_FEE | DEBIT / CREDIT | Card creation fee / refunded with the card. |
CARD_FUNDING_FEE | DEBIT / CREDIT | Funding fee on a card creation or top-up / refunded with it. |
CARD_TOPUP | DEBIT / CREDIT | Card top-up (the amount loaded) / top-up reversed. |
CARD_WITHDRAWAL | CREDIT | Moved from a card to the wallet. |
CARD_TERMINATION_REFUND | CREDIT | Remaining card balance returned on termination. |
CARD_TERMINATION_FEE | DEBIT | Termination fee, or a charge after termination. |
CARD_LATE_REFUND | CREDIT | A refund that landed after the card was terminated. |
CARD_DECLINE_FEE | DEBIT / CREDIT | Decline-rule fee / refund. |
CARD_CROSSBORDER_FEE | DEBIT / CREDIT | Cross-border fee / reversal. |
CARD_CONTACTLESS_FEE | DEBIT | Contactless fee. |
WITHDRAWAL | DEBIT / CREDIT | Withdrawal requested / refunded. |
GIFT_CARD_PURCHASE | DEBIT | A gift card purchase (buy). |
GIFT_CARD_PURCHASE_REFUND | CREDIT | A purchase that failed or was rejected, refunded in full. |
GIFT_CARD_SALE | CREDIT | A completed gift card sale's payout (sell). |
ADJUSTMENT | either | Manual adjustment. |
CARD_CREATION (the amount loaded), CARD_CREATION_FEE and CARD_FUNDING_FEE; a top-up is CARD_TOPUP plus CARD_FUNDING_FEE. A $0 fee gets no row. A fee row's ref is its charge's ref plus :fee:<service>, so you can group it under the charge, and it has the same customerId and cardId. A refund returns each fee as its own row too. Rows from before this change carry their fees in the charge row's fee instead./api/v1/pricingThe fees your business pays. Scope WalletAPIs.
{
"status": true,
"message": "Successful",
"data": {
"currency": "USD",
"cardCreationFee": 2,
"fundCardFeeValue": 1,
"fundFeePercent": 1.5,
"terminationFee": 1,
"declineFee": 0.75,
"fundFeePercentThreshold": 100,
"cryptoWithdrawalFee": 1
}
}| Field | Type | Description |
|---|---|---|
cardCreationFee | number | Flat fee per new card. |
fundCardFeeValue | number | Flat funding fee for a top-up (or a card's initial funding) below fundFeePercentThreshold. |
fundFeePercent | number | Percentage funding fee at or above fundFeePercentThreshold (1.5 = 1.5% of the amount). |
fundFeePercentThreshold | number | The funding amount ($100) where the flat fee switches to the percentage. |
terminationFee | number | Charged when a card is terminated. |
declineFee | number | Charged on each counted decline on a card after the 1st that day, up to your decline limit. |
cryptoWithdrawalFee | number | Flat fee deducted from each wallet withdrawal ($1.00). |
Fees are numbers in US dollars. Show them to your team before issuing or topping up a card.
Withdrawals
A request, not a self-serve payout: the amount is reserved from your wallet immediately, our team sends the funds manually, then marks it completed or rejected. A rejection refunds your wallet in full. You get a wallet.withdrawal.completed or wallet.withdrawal.rejected webhook either way.
Fee: a flat $1.00 per withdrawal, deducted from the amount. Your wallet is debited amount and you receive payoutAmount (amount − fee), so a $50 withdrawal sends $49. The amount must be more than $1.00. A rejected withdrawal is not charged. For fiat withdrawals, contact your account manager.
/api/v1/wallet/withdrawalsRequest a withdrawal from your wallet.
| Field | Type | Description |
|---|---|---|
amountrequired | number | More than the $1.00 fee, at most your balance. You receive amount − 1.00. |
destinationAddressrequired | string | |
destinationChain | string | The network to send on, e.g. "TRC20" or "BEP20". |
note | string | |
clientReference | string | Idempotency key. The same value again returns the original request ("Withdrawal already requested"). |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/wallet/withdrawals", `{
"amount": 50,
"destinationAddress": "TXyz…tron",
"destinationChain": "TRON",
"note": "Monthly settlement",
"clientReference": "wd-2026-10-001"
}`).then(console.log);{
"status": true,
"message": "Withdrawal requested",
"data": {
"id": "f0a1…",
"amount": "50.00",
"fee": 1,
"payoutAmount": 49,
"destinationAddress": "TXyz…tron",
"destinationChain": "TRON",
"note": "Monthly settlement",
"status": "PENDING",
"rejectionReason": null,
"externalReference": null,
"reviewedAt": null,
"createdAt": "2026-10-01T10:00:00.000Z"
}
}| Field | Type | Description |
|---|---|---|
Insufficient business wallet balance | 400 | |
amount must be more than the $1.00 withdrawal fee, which is deducted from it | 400 | |
Withdrawals are currently disabled for this account. Please contact support. | 400 | Switched off for your business. |
This clientReference was already used for a different withdrawal… | 400 | Send a new clientReference. |
/api/v1/wallet/withdrawalsHistory. Query: page, limit. Returns { page, limit, total, totalPages, withdrawals }.
/api/v1/wallet/withdrawals/:idOne request. COMPLETED shows externalReference (e.g. the tx hash); REJECTED shows rejectionReason.
Customers
A customer is one of your cardholders. Create one before KYC or cards. Its id is the customerId used everywhere, including webhooks.
/api/v1/customersCreate a customer. Returns the customer object ("Customer created").
| Field | Type | Description |
|---|---|---|
emailrequired | string | Unique within your business. |
firstName, lastNamerequired | string | |
phone | string | |
externalRef | string | Your own id for this person — echoed in webhooks. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/customers", `{
"email": "ada@example.com",
"firstName": "Ada",
"lastName": "Lovelace",
"phone": "+2348012345678",
"externalRef": "user-123"
}`).then(console.log);/api/v1/customers/:idThe customer, plus kycStatus (NOT_SUBMITTED, PENDING, APPROVED, REJECTED, NOT_STARTED, MAX_RETRIES_REACHED, MISSING_KYC_DATA) and hasSubmittedKyc.
{
"status": true,
"message": "Successful",
"data": {
"id": "02328859-aab9-4fb5-8f58-b1fb8a1eff65",
"email": "ada@example.com",
"firstName": "Ada",
"lastName": "Lovelace",
"phone": "+2348012345678",
"externalRef": "user-123",
"status": "ACTIVE",
"kycStatus": "APPROVED",
"hasSubmittedKyc": true,
"kycRejectionReason": null,
"createdAt": "2026-10-01T10:00:00.000Z"
}
}Customer KYC
A card can only be issued once the customer's KYC is approved. Either send the cardholder to a hosted verification page (recommended), or submit identity data you've already verified yourself. KYC endpoints return status as approved, pending, rejected or unknown.
line1, 20 for city and state, and 10 for zipCode. Longer values are shortened before they're sent, at a whole word ("Federal Capital Territory" becomes "Federal Capital"); digits are removed from city and state; and a US ZIP+4 becomes the 5-digit ZIP. What you submitted is stored unchanged. The same applies to the billing address of a card issued with addressType: "kyc".Option A — hosted verification
/api/v1/customers/:id/kyc/verification-linkCreate a link where the cardholder completes ID capture. Open it for them (redirect, new tab or webview).
| Field | Type | Description |
|---|---|---|
idTyperequired | string | PASSPORT, NATIONAL_ID, DRIVERS_LICENSE, NIN, BVN, … |
idNumberrequired | string | |
phoneNumberrequired | string | |
dateOfBirthrequired | string | YYYY-MM-DD. |
line1, city, state, zipCode, countryrequired | string | country: NG, NGA or Nigeria. |
houseNumber | string |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/customers/your-customer-id/kyc/verification-link", `{
"idType": "PASSPORT",
"idNumber": "A12345678",
"phoneNumber": "+2348012345678",
"dateOfBirth": "1990-01-01",
"line1": "12 Marina Road",
"city": "Lagos",
"state": "Lagos",
"zipCode": "100001",
"country": "NG"
}`).then(console.log);{
"status": true,
"message": "KYC verification link created",
"data": {
"status": "pending",
"verificationLink": "https://…",
"linkExpiresAt": "2026-10-03T12:00:00Z",
"clientReference": "…"
}
}customer.kyc.approved / customer.kyc.rejected), or poll the status endpoint below.Option B — direct submission
/api/v1/customers/:id/kycSubmit identity data you've already verified yourself. Same fields as Option A, plus:
| Field | Type | Description |
|---|---|---|
idFrontImage | string | Required unless idType is BVN/NIN. data:image/…;base64,… (up to 8 MB) or an https image URL. Anything over 2 MB is shrunk to at most 2 MB before it's sent; over 8 MB, or a file that isn't an image, is refused. |
idBackImage | string | The back of the ID card, same format and limit as idFrontImage. Required for a national ID card (idType NATIONAL_ID, also "voters card"): without it the request is refused with idBackImage (the back of the ID card) is required for a national ID card before anything is sent. Optional for other documents; never sent for BVN/NIN (ignored if included). |
clientReference | string | Your own reference for this submission. |
{
"status": true,
"message": "KYC submitted",
"data": {
"status": "pending",
"customerId": "02328859-aab9-4fb5-8f58-b1fb8a1eff65",
"clientReference": "kyc-user-123"
}
}/api/v1/customers/:id/kyc/retryResubmit after a rejection. Same response shape. The retry always uses this customer's stored submission (a customerId in the body is ignored). Without a previous submission: No previous KYC submission found for this customer. Submit KYC before retrying.
| Field | Type | Description |
|---|---|---|
idType, idNumber, line1, city, state, country, zipCoderequired | string | |
dateOfBirth, idFrontImage, idBackImage, firstName, lastName | string | Optional. Images have the same format and limits as on submission; without idFrontImage, the images from your previous submission are sent again. idBackImage follows the same rule as on submission. |
/api/v1/customers/:id/kycLive status: { status, customerId, clientReference }, plus reason when the status is rejected, or { status: "unknown", hasSubmittedKyc: false } before any submission. Once approved (or rejected), a later pending report doesn't move it back; an approval after a rejection does apply.
/api/v1/customers/:id/kyc/documentsThe ID images for a customer whose KYC was approved or rejected. Before a decision, or if no ID images were captured, this endpoint returns status: false with a message saying so. documents can be empty if the images are not available.
{
"status": true,
"message": "Successful",
"data": {
"customerId": "02328859-…",
"documentId": "…",
"documents": [
{
"idDocType": "PASSPORT",
"country": "NGA",
"images": [{ "fileName": "front", "url": "https://…" }]
}
]
}
}Cards
Every cost is drawn from your wallet. Card status is ACTIVE, FROZEN, INACTIVE or TERMINATED.
/api/v1/customers/:id/cardsIssue a card. Returns the card object. The customer's KYC must be approved; otherwise it's refused before anything is charged with This customer's identity verification (KYC) isn't approved yet. Cards can only be issued once KYC is approved.
| Field | Type | Description |
|---|---|---|
amountrequired | number | Initial funding, minimum $2. |
cardBrand | "Visa" | "Mastercard" | Default "Mastercard". |
cardCurrency / walletCurrency | string | Default "USD". |
addressType | "default" | "kyc" | Billing address: the company's US address, or the cardholder's KYC address (shortened to the card network's limits, see Customer KYC). |
cardLimits | object | Spending limits. |
whiteListedMccs / blackListedMccs | string[] | Merchant category codes. |
clientReference | string | Recommended — see Retries. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/customers/your-customer-id/cards", `{
"amount": 50,
"cardBrand": "Mastercard",
"cardCurrency": "USD",
"addressType": "default",
"clientReference": "order-8812"
}`).then(console.log);{
"status": true,
"message": "Successful",
"data": {
"id": "c4c09003-c996-49b3-bc47-5f32f5a2cc1b",
"customerId": "02328859-aab9-4fb5-8f58-b1fb8a1eff65",
"brand": "Mastercard",
"currency": "USD",
"maskedNumber": "517746******4775",
"firstSix": "517746",
"lastFour": "4775",
"status": "ACTIVE",
"balance": 10,
"isPhysical": false,
"createdAt": "2026-10-01T23:46:56.000Z",
"updatedAt": "2026-10-01T23:46:56.000Z"
}
}amount + card creation fee + funding fee (see your fees). At most 5 active or frozen cards per customer. Contactless is always on.One card per customer every 30 seconds
- The refusal: after a card is issued to a customer, another issue request for that customer within 30 seconds gets HTTP
429,code: "RATE_LIMITED", aRetry-Afterheader anddata.retryAfterSeconds. A request sent while one is still being issued for the same customer gets the same refusal. - Unaffected: your other customers.
- Nothing is charged on a refused request.
- Failures don't start the wait. A failed issue, or one whose outcome couldn't be confirmed, starts no wait, so a retry with the same
clientReferencegoes through at once.
HTTP/1.1 429 Too Many Requests
Retry-After: 24
{
"status": false,
"message": "A card was just issued to this customer. Please wait 24 seconds before issuing another card to them.",
"data": { "retryAfterSeconds": 24 },
"code": "RATE_LIMITED",
"request_id": "req_…",
"correlation_id": "req_…",
"timestamp": "2026-10-11T10:26:43.453Z"
}/api/v1/customers/:id/cardsOne customer's cards, paginated, every status (including TERMINATED) unless you filter with status. Each card includes its customer. balance is the stored balance (see below); fetch a card for the live one.
| Field | Type | Description |
|---|---|---|
page, limit | number | 1-based; default 20, max 100. |
status | string | ACTIVE, FROZEN, INACTIVE or TERMINATED. |
search (alias q) | string | Card id or last 4 digits. |
last4, brand | string | Exact last 4 digits; brand such as Visa or Mastercard. |
createdFrom, createdTo | ISO date | Date or datetime. |
sortBy | string | createdAt (default), updatedAt, lastFour or cardBrand. |
order | "desc" | "asc" | Default desc. |
{
"status": true,
"message": "Successful",
"data": {
"page": 1, "limit": 20, "total": 2, "totalPages": 1,
"cards": [
{
"id": "c4c09003-…",
"customerId": "02328859-…",
"brand": "Visa",
"currency": "USD",
"maskedNumber": "411111******4821",
"lastFour": "4821",
"status": "ACTIVE",
"balance": 10,
"isPhysical": false,
"createdAt": "2026-10-02T13:25:59.000Z",
"customer": { "id": "02328859-…", "email": "jane@acme.com", "firstName": "Jane", "lastName": "Doe" }
}
]
}
}data.cards, and filter with status=ACTIVE if you only want live cards.balanceis the balance we have stored. It's updated by every card event the card network sends (purchases, declines, refunds, reversals, top-ups, withdrawals, termination), by every GET /cards/:cardId, and right after a withdrawal, so it's normally current within seconds. A late event never moves it back to an older figure, and an event without a balance never sets it to 0. GET /cards/:cardId always reads the live balance./api/v1/cards/:cardIdThe card with a live balance, plus minimumBalance (always 1 — $1 must stay on the card), withdrawableBalance, balanceIsLive and balanceUpdatedAt. If the card network is rate-limiting reads of this card, balance is the last stored one: balanceIsLive: false, with balanceUpdatedAt saying when it was last known. To check or poll a balance, use the balance endpoint below instead.
/api/v1/cards/:cardId/balanceJust the balance, with one call to the card network (GET /cards/:cardId makes two: details and balance). Use this to check or poll a card's balance. Scope CardAPIs.
{
"status": true,
"message": "Successful",
"data": {
"cardId": "c4c09003-…",
"currency": "USD",
"balance": 17.5,
"balanceIsLive": true,
"balanceUpdatedAt": "2026-10-25T09:12:23.000Z",
"minimumBalance": 1,
"withdrawableBalance": 16.5
}
}If the card network is rate-limiting this card, balance is the last stored one, with balanceIsLive: false and balanceUpdatedAt saying when it was last known. Only when nothing is stored yet is it HTTP 429 RATE_LIMITED, with Retry-After and data.retryAfterSeconds.
GET /cards/:cardId, /pan, and the checks that freeze and unfreeze make. We apply that limit before calling the network, and if the network refuses a read, that card's reads of the same kind pause for 60 seconds. Calls with nothing stored to fall back on (/pan, transactions, freeze, unfreeze, terminate) then answer HTTP 429 RATE_LIMITED with Retry-After (the seconds left in that card's window) and data.retryAfterSeconds; calls made while waiting don't restart it. Call /pan only when the cardholder needs to see the number, not before or alongside GET /cards/:cardId./api/v1/cards/:cardId/panThe card object plus full card number, CVV, expiry, name and billing address.
{
"status": true,
"message": "Successful",
"data": {
"id": "c4c09003-…",
"maskedNumber": "517746******4775",
"status": "ACTIVE",
"cardNumber": "5177461234564775",
"cvv": "123",
"expiry": "2029-10",
"nameOnCard": "ADA LOVELACE",
"billingAddress": {
"line1": "…", "line2": null, "city": "…", "state": "…", "postalCode": "…", "country": "US"
},
"balance": 10
}
}/api/v1/cards/:cardId/transactionsQuery: pageNumber (or cursor, default 1), limit (default 20), and optional type, status, startDate, endDate, transactionId.
{
"status": true,
"message": "Successful",
"data": {
"transactions": [
{
"id": "9004",
"type": "Authorization",
"status": "Approved",
"amount": 12.5,
"currency": "USD",
"merchantName": "APPLE.COM/BILL",
"merchantCategoryCode": "5735",
"reference": "ord-…",
"description": null,
"time": "2026-10-02T11:00:00"
}
],
"page": 1,
"pageSize": 20,
"total": 1,
"totalPages": 1
}
}merchantName is "" for funding movements made by the card platform itself./api/v1/cards/:cardId/topupAdd funds from your wallet. Minimum $2; charged amount + funding fee.
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/cards/your-card-id/topup", `{ "amount": 20, "clientReference": "topup-0001" }`).then(console.log);{ "status": true, "message": "…", "data": { "cardId": "c4c09003-…", "amount": 20 } }/api/v1/cards/:cardId/withdrawMove money from the card to your wallet. $1 must stay on the card. Your wallet is credited once the card network confirms.
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/cards/your-card-id/withdraw", `{ "amount": 5, "reason": "Customer request", "clientReference": "wd-0001" }`).then(console.log);/api/v1/cards/:cardId/freezeBlock payments. Returns the card (FROZEN).
/api/v1/cards/:cardId/unfreezeReturns the card (ACTIVE).
/api/v1/cards/:cardId/terminateIrreversible. The remaining balance is refunded to your wallet; a termination fee may apply. Returns the card (TERMINATED).
Common card errors
| Field | Type | Description |
|---|---|---|
Card not found | 400 | Wrong id, or not your business's card. |
Card service is currently disabled for this account. Please contact support. | 400 | Create, top-up, withdraw and terminate are switched off for your business. |
Card creation is currently disabled… | 400 | Issuance is switched off platform-wide or for your business. |
Please complete your KYC verification before creating a card. | 400 | The customer's KYC isn't approved. |
Insufficient business wallet balance | 400 | Fund your wallet. |
The decline rule
Declines are counted per card per day (UTC), at any shop and for any amount, for insufficient funds, a frozen card, or an authorisation never completed. The count starts again at midnight UTC and after any approved payment on the card:
- 1st decline: free.
- Each later one, up to your decline limit: a decline fee each, taken from the card (even when it's frozen), or from your wallet if the card can't cover it.
- At your decline limit: the card is terminated.
For example, one card with the default limit of 3, on one day (times in UTC):
| Field | Type | Description |
|---|---|---|
09:00 | declined | Insufficient funds at shop A. 1st decline: free. |
13:00 | declined | Insufficient funds at shop B, a different amount. 2nd decline: decline fee. |
14:00 | approved | A payment goes through. The count starts again from zero. |
18:00 | declined | Card frozen. 1st decline again: free. |
20:00 | declined | Insufficient funds. 2nd decline: decline fee. |
23:30 | declined | Insufficient funds. 3rd decline: decline fee, and the card is terminated. |
Without the approved payment at 14:00, the 20:00 decline would have been the 3rd and terminated the card. A decline at 00:10 the next day would be a new 1st decline.
Your decline limit is 3 by default. Set it from 1 to 9 on the dashboard's Fees page (it needs an authenticator code). With 1, the first counted decline terminates the card, with no fee. Declines for any other reason are never counted or charged.
Gift Cards
Buy gift cards for your customers, or sell their gift cards for USD. Everything is paid in USD only, from and to your wallet. Gift cards are switched on per business; ask your account manager. Scope GiftCardAPIs.
- Buying: get a quote, then place the order. Your wallet is debited when the order is placed. Once it's
COMPLETED, fetch the codes. If the order fails or is rejected, the full amount comes back to your wallet. - Selling: pick a card type, then submit the card (images, or the code for an e-code). The card is checked; once the trade is
COMPLETEDthe payout is credited to your wallet. Nothing is charged for a rejected sale. - Statuses:
SUBMITTING(we're confirming the order; it settles by itself),PENDING,HELD(we couldn't confirm it with the provider either way, so it's left for an admin to resolve by hand — nothing is charged, credited or refunded while it's held, and this can take a while),COMPLETED,REJECTED,FAILED(never placed). Each final outcome (COMPLETED,REJECTEDorFAILED), including one reached fromHELD, sends a webhook; poll the tradeif you'd rather not wait. - Idempotency: send a
clientReferencewith each buy or sell. The same value again returns the original trade instead of placing a new one; with different details it's refused. - If gift cards are switched off for your business: quotes, buying and selling are refused, but your existing trades stay readable and codes you already paid for stay fetchable.
Rates
Buying costs the card's face value × rate (USD per 1 of card value), e.g. a $50 card at 1.0404 costs $52.02. Selling pays the card amount × usdRate. A sale's final payout is set when the trade completes, at that day's rate: the estimatedAmount on a pending sale is a guide, and amountCreditedon the completed trade is what you received. Rates aren't held: a quote is the price at that moment.
Naira equivalents. If your account has the naira wallet enabled, every rate is also returned in NGN alongside the USD figure: a buy quote adds rateNgn and amountNgn, and each sell card type adds ngnRate — the NGN equivalent of its usdRate. These fields are omitted when the naira wallet isn't enabled.
/api/v1/giftcards/buy/productsThe gift cards you can buy: each product's SKU (giftCardSku), its currency, and the prices or price range it comes in.
/api/v1/giftcards/buy/quoteWhat an order costs now, in USD. Nothing is charged or held.
rateNgn and amountNgn — the NGN equivalents of rate and amount.| Field | Type | Description |
|---|---|---|
giftCardSkurequired | number | From the products list. |
unitPricerequired | number | The value of one card, in its own currency (at most 2 decimals). |
quantity | number | 1 to 10. Default 1. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/giftcards/buy/quote", `{
"giftCardSku": 1234,
"unitPrice": 50,
"quantity": 1
}`).then(console.log);{
"status": true,
"message": "Successful",
"data": {
"giftCardSku": 1234,
"unitPrice": 50,
"quantity": 1,
"faceValue": 50,
"rate": 1.0404,
"amount": 52.02,
"currency": "USD",
"maxAmountPerOrder": 1000,
"rateNgn": 1664.64,
"amountNgn": 83232.00
}
}/api/v1/giftcards/buyPlace an order. Your wallet is debited amountDebited at once. Returns the trade, usually PENDING; if we couldn't confirm the order straight away it's SUBMITTING and settles by itself (you get the webhook). 30 orders a minute, on top of the general 120 req/min.
| Field | Type | Description |
|---|---|---|
giftCardSkurequired | number | |
unitPricerequired | number | |
quantity | number | 1 to 10. Default 1. |
maxAmount | number | The most you agree to pay, in USD. If the price has risen above it since your quote, the order is refused and nothing is charged. |
clientReference | string | Idempotency key, 1–100 letters, digits, . _ : -. Generated if you leave it out. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/giftcards/buy", `{
"giftCardSku": 1234,
"unitPrice": 50,
"quantity": 1,
"maxAmount": 52,
"clientReference": "gc-order-1001"
}`).then(console.log);{
"status": true,
"message": "Order placed",
"data": {
"trade": {
"id": "8c1e5a52-7f0b-4d1e-9a7c-2f6d0b9e4c11",
"type": "buy",
"status": "PENDING",
"clientReference": "gc-order-1001",
"productId": "1234",
"title": "Amazon US",
"subTitle": null,
"imageUrl": "https://…/amazon.png",
"cardCurrency": "USD",
"cardAmount": 50,
"quantity": 1,
"faceValue": 50,
"currency": "USD",
"rate": 1.0404,
"amountDebited": 52.02,
"amountRefunded": null,
"amountCredited": null,
"estimatedAmount": null,
"walletTransactionIds": ["3b1d…"],
"codesAvailable": false,
"reason": null,
"completedAt": null,
"createdAt": "2026-11-17T10:00:00.000Z",
"updatedAt": "2026-11-17T10:00:01.000Z"
}
}
}| Field | Type | Description |
|---|---|---|
Insufficient wallet balance | 400 | Nothing was charged. |
The price is now $…, above your maxAmount of $… | 400 | Get a new quote and retry. |
This order costs $…, above the $… limit per order | 400 | Split it into smaller orders. |
… Your wallet was refunded. | 400 | The order was declined; data.trade shows it as FAILED, refunded. |
This clientReference was already used for a different order… | 400 | Send a new clientReference. |
Gift cards are not enabled for this account. Please contact support. | 400 | Switched off for your business. |
Gift cards are currently unavailable. Please try again later. | 400 | Switched off for everyone, for now. |
/api/v1/giftcards/trades/:id/codesA COMPLETED purchase's gift cards: cardNumber, pinCode, claimUrl and expiryDate (any may be null, depending on the card). Fetched live each time, never stored by us, and every read is recorded. 20 requests a minute, on top of the general 120 req/min.
{
"status": true,
"message": "Successful",
"data": {
"tradeId": "8c1e5a52-7f0b-4d1e-9a7c-2f6d0b9e4c11",
"codes": [
{
"cardNumber": "AQ7X-…",
"pinCode": "…",
"claimUrl": null,
"expiryDate": "2027-11-17"
}
]
}
}/api/v1/giftcards/sell/categoriesThe brands you can sell: { id, name, image }.
/api/v1/giftcards/sell/categories/:categoryId/card-typesA brand's card types with our usdRate (USD paid per 1 of card value) and minAmount. A card sold as "Physical and Ecode" is listed twice, the second time as "… Ecode", with the same id. If your account has the naira wallet enabled, each card type also has ngnRate — the NGN equivalent of usdRate.
{
"status": true,
"message": "Successful",
"data": {
"cardTypes": [
{
"id": 5521,
"name": "Amazon US (100-500)",
"form": "Physical and Ecode",
"country": "USA",
"terms": "No receipt needed",
"minAmount": 100,
"usdRate": 0.85,
"currency": "USD",
"ngnRate": 1360.00
}
]
}
}/api/v1/giftcards/sellSubmit a card for sale. Returns the trade, PENDING while the card is checked, with estimatedAmount. Nothing moves until it's COMPLETED. 30 orders a minute, on top of the general 120 req/min.
| Field | Type | Description |
|---|---|---|
cardTypeIdrequired | number | string | The card type id. |
amountrequired | number | The card's value, in its own currency. Capped per business; see Errors. |
images | string[] | Up to 6, each a data URI under 5 MB (15 MB in all): data:image/jpeg;base64,… (also image/png, image/webp, application/pdf). |
comments | string | Up to 2000 characters, e.g. the code of an e-code. Send images, comments or both. |
clientReference | string | Idempotency key, as for buying. |
const crypto = require("crypto");
const API_HOST = "https://api.example.com";
const API_LINK = "/m/<your-link>"; // From your API URL in the dashboard
const CLIENT_ID = "your-client-id";
const CLIENT_SECRET = "your-client-secret"; // Keep on your server only
const UNIQUE_KEY = "your-unique-key";
const ACCESS_TOKEN = "your-access-token"; // From POST /api/v1/auth/token
function signRequest(method, pathWithQuery, reference) {
const base = [method.toUpperCase(), encodeURIComponent(pathWithQuery), reference, CLIENT_ID, CLIENT_SECRET, UNIQUE_KEY].join("&");
const hex = crypto.createHash("sha1").update(base, "utf8").digest("hex");
return Buffer.from(hex, "utf8").toString("base64");
}
async function callApi(method, path, body) {
const fullPath = API_LINK + path; // The signature covers your link and any query string
const reference = crypto.randomUUID(); // New for every request
const res = await fetch(API_HOST + fullPath, {
method,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
Reference: reference,
UniqueKey: UNIQUE_KEY,
Signature: signRequest(method, fullPath, reference),
},
body,
});
return res.text();
}
callApi("POST", "/api/v1/giftcards/sell", `{
"cardTypeId": 5521,
"amount": 100,
"images": ["data:image/jpeg;base64,/9j/4AAQ…"],
"comments": "Physical card, front and back",
"clientReference": "gc-sale-1001"
}`).then(console.log);We don't keep the images or comments once the card has been passed on for checking.
{
"status": true,
"message": "Sale submitted",
"data": {
"trade": {
"id": "2a7f3c9e-4b1d-4e8a-9c7f-1a2b3c4d5e6f",
"type": "sell",
"status": "PENDING",
"clientReference": "gc-sale-1001",
"productId": "5521",
"title": "Amazon",
"subTitle": "Amazon US (100-500)",
"imageUrl": "https://…/amazon.png",
"cardCurrency": "USD",
"cardAmount": 100,
"quantity": 1,
"faceValue": 100,
"currency": "USD",
"rate": null,
"amountDebited": null,
"amountRefunded": null,
"amountCredited": null,
"estimatedAmount": 84.93,
"walletTransactionIds": [],
"codesAvailable": false,
"reason": null,
"completedAt": null,
"createdAt": "2026-11-18T10:00:00.000Z",
"updatedAt": "2026-11-18T10:00:01.000Z"
}
}
}| Field | Type | Description |
|---|---|---|
cardTypeId must be an id from GET /giftcards/sell/categories/:id/card-types | 400 | Use an id from the card types list. |
amount must be the card's value, a positive amount with at most 2 decimals | 400 | |
amount can be at most $… per sale | 400 | Your business’s maximum per sale. Split the claim or contact support to raise it. |
Send the card: images of it, or its code in comments (e-codes) | 400 | Send at least one of images or comments. |
images[n] must be a data URI: data:image/jpeg|png|webp or application/pdf;base64,… | 400 | Also enforced: at most 6 images, each under 5 MB, 15 MB in all. |
This clientReference was already used for a different sale. Send a new clientReference. | 400 | |
Gift cards are not enabled for this account. Please contact support. | 400 | Switched off for your business. |
Gift cards are currently unavailable. Please try again later. | 400 | Switched off for everyone, for now. |
/api/v1/giftcards/tradesYour trades, newest first: 20 per page by default (limit up to 100). Optional filters: type (buy | sell), status (SUBMITTING | PENDING | HELD | COMPLETED | REJECTED | FAILED), clientReference, from and to (ISO dates, matched against createdAt). Returns { page, limit, total, totalPages, trades }.
/api/v1/giftcards/trades/:idOne trade. reason says why it was rejected or failed.
Receiving Webhooks
We POSTevents to the webhook URL you set in your dashboard (Webhooks → Settings). Your endpoint must answer 2xx within 10 seconds; redirects aren't followed.
| Field | Type | Description |
|---|---|---|
X-Webhook-Id | header | The event's id — the same value as id in the body, and the id in the delivery log. |
X-Webhook-Event | header | The eventType. |
X-Webhook-Signature | header | Hex HMAC-SHA256 of the raw body, keyed by your signing secret (reveal it in the dashboard). |
X-Correlation-Id | header | When the event was caused by an API call: the same as correlation_id in the body, and the correlation_id returned in that call's response. For card-network events (transactions, issuance) it identifies the incoming network event on our side; quote it to support. |
Verify the signature
Check the signature before you trust an event. This sample tests a made-up event and prints valid, then invalid.
const crypto = require("crypto");
// rawBody: the exact bytes received. Don't re-serialise parsed JSON.
function isGenuine(rawBody, signatureHeader, signingSecret) {
const expected = crypto.createHmac("sha256", signingSecret).update(rawBody).digest("hex");
return typeof signatureHeader === "string" && signatureHeader.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expected));
}
const body = '{"id":"evt_1","eventType":"card.issued"}';
console.log(isGenuine(body, "6a0d92153f613f5d7c79a9af059dbcffacb3693fdfa42ae5ae6d4b42bfc8dba6", "whsec_test_secret") ? "valid" : "invalid");
console.log(isGenuine(body, "wrong", "whsec_test_secret") ? "valid" : "invalid");Delivery guarantees
| Field | Type | Description |
|---|---|---|
Retries | automatic | A failed delivery is resent 5 times, after 1, 2, 4, 8 and 16 minutes (6 attempts over about 31 minutes), then marked FAILED. You can resend any failed or delivered event yourself, up to 5 times per delivery (see Resend). |
Duplicates | dedupe on id | Every event has a unique id that stays the same on every retry or resend of it. A slow response can make the same event arrive more than once, so record each id you've processed and skip repeats. |
Order | not guaranteed | Use eventTime. |
Sensitive data | never sent | No card numbers, CVVs or expiry dates. |
Event Reference
Every event, of every class, carries an id: unique per event, unchanged across retries, and equal to the X-Webhook-Id header. Use it to deduplicate.
Card events (eventClass: "card")
Every card event carries id, eventClass, eventType, eventTime, sourceEventId, customerId, externalRef and cardId, plus:
| Field | Type | Description |
|---|---|---|
card.issued | The card exists and can be used. activated, availableBalance, lastFour, cardBrand, status. Sent once per card, including a card confirmed later after a timeout. Any field not reported is null | |
card.transaction.preauthorized | A pre-authorisation hold (hotels, fuel, car hire). transaction fields | |
card.transaction.authorized | A purchase was approved; the amount is held on the card. transaction fields | |
card.transaction.declined | A purchase was declined. transaction fields; description is the reason (e.g. No sufficient funds, Card not Active, Card trs no. limit exceeded) | |
card.transaction.settled | The purchase settled (final). transaction fields | |
card.transaction.expired | An authorisation the shop never completed expired; the held amount is released. transaction fields | |
card.transaction.reversed | The shop reversed an authorisation; the held amount is released. transaction fields | |
card.transaction.refund_authorized | The shop started a refund. transaction fields | |
card.transaction.refund_settled | The refund settled; the money is back on the card. transaction fields | |
card.fee.cross_border | A cross-border fee for a purchase abroad or in another currency. transaction fields; status: "Pending" means the card couldn't cover it yet (it's then taken from your wallet: wallet.debited.crossborder_fee) | |
card.fee.cross_border_reversed | A cross-border fee was reversed. transaction fields | |
card.fee.cross_border_reversal_pending | A cross-border fee reversal is pending. transaction fields | |
card.fee.contactless | A contactless payment fee. transaction fields | |
card.fee.decline | amount, balanceAfter. A decline fee taken from the card (each counted decline on the card in the same day after the 1st, up to your decline limit) | |
card.topup.completed | amount, balanceBefore, balanceAfter, reference. The card was topped up from your wallet | |
card.withdrawal.completed | amount, balanceBefore, balanceAfter, reference. Money moved from the card to your wallet | |
card.frozen | status (FROZEN). The card was frozen through the API; sent once the freeze is confirmed | |
card.unfrozen | status (ACTIVE). The card was unfrozen through the API | |
card.blocked | reason, action (e.g. Freeze), amount (the purchase that triggered it), status. The card network froze the card itself (e.g. suspected fraud on a declined purchase). Unfreeze it to restore it, which then sends card.unfrozen | |
card.terminated | The card is permanently closed. trigger: terminated (through the API, or at your decline limit), repeated_declines (by the card network) or expired. balanceBeforeTermination, balanceRefunded (returned to your wallet; 0 if nothing was), reason, reference; plus declinedAmount for repeated_declines | |
card.terminated.balance_regularized | A charge settled after termination and left the card negative; it was settled. transaction fields; amount is negative. If your wallet paid for it, wallet.debited.terminated_card_charge follows | |
card.terminated.refund_settled | transactionId, amount, refunded, description, reference. A shop refunded a purchase after the card was terminated; the money goes to your wallet | |
card.expiring | expiresInDays. The card expires soon (the date itself is never sent) | |
card.verified | merchantName. A shop verified the card with a zero-amount check (e.g. saving it for a subscription) | |
card.contactless.activation_code | activationCode, isResend. Your customer is adding a card to Apple Pay or Google Pay: send them this one-time code straight away, by SMS, email or in-app. A new code replaces the previous one. There's no cardId: the code is for the customer |
Transaction fields: transactionId, reference, amount, currency, merchantName, merchantCategoryCode, merchantCountry, status, description, availableBalance, time. Any may be null.
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a14",
"eventClass": "card",
"eventType": "card.transaction.declined",
"eventTime": "2026-10-02T12:00:01.000Z",
"sourceEventId": "…",
"customerId": "02328859-…",
"externalRef": "user-123",
"cardId": "c4c09003-…",
"transactionId": "…",
"reference": "…",
"amount": 12.5,
"currency": "USD",
"merchantName": "APPLE.COM/BILL",
"merchantCategoryCode": "5735",
"merchantCountry": "US",
"status": "Declined",
"description": "No sufficient funds",
"availableBalance": 3.1,
"time": "2026-10-02T12:00:00"
}Customer KYC events (eventClass: "customerkyc")
customer.kyc.approved · customer.kyc.rejected · customer.kyc.pending.
customer.kyc.rejected also carries reason: why it was rejected, or null if none was given. Long numbers and email addresses are masked. You can also read it on the customer as kycRejectionReason.
Sent once per actual status change, however it's discovered (the card network's webhook, our own status checks, a status call, or a submission or retry). The same status again sends nothing. sourceEventId is the network's event id, or kyc-status:<clientReference>:<status>when the change didn't come from a network event.
documentId is set when an approval comes with captured ID documents (KYC completed through the hosted verification link); fetch the images with KYC documents. It's null otherwise, for example on an approval of a direct submission like the one below. The KYC documents endpoint works for approved and rejected customers either way, and says so if there are none.
{
"id": "f0f1723c-6486-4938-9f85-e9fced5f8b46",
"status": "approved",
"eventTime": "2026-10-02T13:57:19.759Z",
"eventType": "customer.kyc.approved",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"documentId": null,
"eventClass": "customerkyc",
"externalRef": "your-internal-user-id-123",
"sourceEventId": "586f7fcb-aeff-41ac-b33d-e797a1a6db65",
"clientReference": "optional-your-own-reference"
}Wallet events
walletdebit and walletcredit events carry id, eventClass, eventType, eventId, eventTime, businessId, amount, currency, reason, cardId, customerId, balanceAfter and reference.
Matching an event to your wallet history. Every wallet event (debits, credits and withdrawals) also carries the ledger row it posted, exactly as wallet transactions returns it: walletTransactionId (the row's id) and walletTransactionRef (its ref). An event covering several rows (a wallet.debited.crossborder_fee for several charges at once) has both set to null and lists every row in walletTransactions ([{ id, ref, amount }]), which every wallet event carries. reference is our own id for the fee or charge, not the ledger ref. For wallet.withdrawal.completed the row is the debit made when you requested the withdrawal; for wallet.withdrawal.rejectedit's the refund.
| Field | Type | Description |
|---|---|---|
wallet.debited.decline_fee | walletdebit | A decline fee the card couldn’t cover. |
wallet.debited.crossborder_fee | walletdebit | A cross-border fee the card couldn’t cover. |
wallet.debited.contactless_fee | walletdebit | A contactless fee the card couldn’t cover. |
wallet.debited.terminated_card_charge | walletdebit | A charge that settled after the card was terminated. |
wallet.credited.decline_fee_refund | walletcredit | A decline fee refunded to your wallet. |
wallet.credited.deposit | walletcredit | A crypto deposit was credited: id, eventClass, eventType, eventTime, depositId, amount, currency (USD), asset, chain, txHash, reference, balanceAfter. Sent once per deposit; dedupe on depositId. |
wallet.withdrawal.completed | walletwithdrawal | id, eventClass, eventType, eventTime, withdrawalId, amount (debited from your wallet), fee, payoutAmount (sent to you), destinationAddress, externalReference. |
wallet.withdrawal.rejected | walletwithdrawal | id, eventClass, eventType, eventTime, withdrawalId, amount, reason — the amount is back in your wallet. |
{
"id": "4b8e2f10-6c3a-4d91-b7e5-0a9c1d2e3f45",
"eventClass": "walletcredit",
"eventType": "wallet.credited.deposit",
"eventTime": "2026-10-14T09:12:44.120Z",
"depositId": "d5c1a7e2-…",
"amount": 500,
"currency": "USD",
"asset": "USDT",
"chain": "tron",
"txHash": "0x8f3c…",
"reference": "…",
"balanceAfter": 1470,
"walletTransactionId": "e17b4c2a-…",
"walletTransactionRef": "business-wallet-topup:…",
"walletTransactions": [{ "id": "e17b4c2a-…", "ref": "business-wallet-topup:…", "amount": 500 }]
}Gift card events (eventClass: "giftcard")
id, eventClass, eventType, eventTime and trade (as a trade returns it), plus walletTransactionId, walletTransactionRef and walletTransactions when the outcome moved money. Sent once per final outcome; the codes are never in a webhook. A trade that goes HELD sends nothing until an admin resolves it — poll the trade if you need to know sooner.
| Field | Type | Description |
|---|---|---|
giftcard.buy.completed | The codes are ready: fetch them. | |
giftcard.buy.rejected | Rejected; trade.amountRefunded is back in your wallet (the refund is the wallet row). | |
giftcard.buy.failed | The order was never placed; refunded in full. | |
giftcard.sell.completed | trade.amountCredited was credited to your wallet. | |
giftcard.sell.rejected | The card was rejected; trade.reason says why. Nothing was charged. | |
giftcard.sell.failed | The sale was never placed. |
trade.imageUrl is the card-art URL, returned as-is so you can render it directly; every other field is provider-name free. A full sample for each outcome:
{
"id": "0c7f8e2d-4b1a-4a9c-9f3e-2b8d1c5a7e10",
"eventClass": "giftcard",
"eventType": "giftcard.buy.completed",
"eventTime": "2026-11-25T09:14:05.000Z",
"trade": {
"id": "a38f6784-849c-4403-ad6b-2d14b9d7e804",
"type": "buy",
"status": "COMPLETED",
"clientReference": "order-5512",
"productId": "138",
"title": "XBOX USA",
"subTitle": null,
"imageUrl": "https://d1upatzsvnpphr.cloudfront.net/gift/products/images/2024/12/XBOX_USA",
"cardCurrency": "USD",
"cardAmount": 5,
"quantity": 1,
"faceValue": 5,
"currency": "USD",
"rate": 1.05,
"amountDebited": 5.25,
"amountRefunded": null,
"amountCredited": null,
"amountCreditedNgn": null,
"payoutCurrency": null,
"estimatedAmount": null,
"walletTransactionIds": ["7b1f0a9c-2d3e-4f5a-8b6c-1d2e3f4a5b6c"],
"codesAvailable": true,
"reason": null,
"completedAt": "2026-11-25T09:14:04.000Z",
"createdAt": "2026-11-25T09:12:40.000Z",
"updatedAt": "2026-11-25T09:14:05.000Z"
},
"walletTransactionId": null,
"walletTransactionRef": null,
"walletTransactions": [],
"correlation_id": "f0e9d8c7-b6a5-4433-2211-00ffeeddccbb"
}{
"id": "1d8a9f3e-5c2b-4b0d-a0f4-3c9e2d6b8f21",
"eventClass": "giftcard",
"eventType": "giftcard.buy.rejected",
"eventTime": "2026-11-25T10:02:11.000Z",
"trade": {
"id": "b47a1c92-7e60-4d11-9a2b-6f1e9d8c7a3b",
"type": "buy",
"status": "REJECTED",
"clientReference": "order-5513",
"productId": "11036",
"title": "Prepaid Mastercard USD",
"subTitle": null,
"imageUrl": "https://d1upatzsvnpphr.cloudfront.net/gift/products/images/2025/10/Prepaid_Mastercard_USD_10",
"cardCurrency": "USD",
"cardAmount": 10,
"quantity": 1,
"faceValue": 10,
"currency": "USD",
"rate": 1.05,
"amountDebited": 10.50,
"amountRefunded": 10.50,
"amountCredited": null,
"amountCreditedNgn": null,
"payoutCurrency": null,
"estimatedAmount": null,
"walletTransactionIds": [
"9a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"c3d4e5f6-7a8b-9c0d-1e2f-3a4b5c6d7e8f"
],
"codesAvailable": false,
"reason": "The order could not be completed and was refunded in full.",
"completedAt": null,
"createdAt": "2026-11-25T09:58:02.000Z",
"updatedAt": "2026-11-25T10:02:11.000Z"
},
"walletTransactionId": "c3d4e5f6-7a8b-9c0d-1e2f-3a4b5c6d7e8f",
"walletTransactionRef": "giftcard-buy-refund:b47a1c92-7e60-4d11-9a2b-6f1e9d8c7a3b",
"walletTransactions": [
{
"id": "c3d4e5f6-7a8b-9c0d-1e2f-3a4b5c6d7e8f",
"ref": "giftcard-buy-refund:b47a1c92-7e60-4d11-9a2b-6f1e9d8c7a3b",
"amount": 10.50
}
],
"correlation_id": "aa11bb22-cc33-dd44-ee55-ff6677889900"
}{
"id": "5b2e3d7c-8f0a-4a1b-9c2d-6e3f4a5b7c8d",
"eventClass": "giftcard",
"eventType": "giftcard.buy.failed",
"eventTime": "2026-11-25T11:30:22.000Z",
"trade": {
"id": "c58b2d03-9f82-4e33-bd4e-7a2f1e0d9b5c",
"type": "buy",
"status": "FAILED",
"clientReference": "order-5514",
"productId": "742",
"title": "Steam USD",
"subTitle": null,
"imageUrl": "https://d1upatzsvnpphr.cloudfront.net/gift/products/images/2024/08/Steam_USD",
"cardCurrency": "USD",
"cardAmount": 20,
"quantity": 1,
"faceValue": 20,
"currency": "USD",
"rate": 1.05,
"amountDebited": 21.00,
"amountRefunded": 21.00,
"amountCredited": null,
"amountCreditedNgn": null,
"payoutCurrency": null,
"estimatedAmount": null,
"walletTransactionIds": [
"2c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f",
"6f7a8b9c-0d1e-2f3a-4b5c-6d7e8f9a0b1c"
],
"codesAvailable": false,
"reason": "The order could not be placed and was refunded in full.",
"completedAt": null,
"createdAt": "2026-11-25T11:29:50.000Z",
"updatedAt": "2026-11-25T11:30:22.000Z"
},
"walletTransactionId": "6f7a8b9c-0d1e-2f3a-4b5c-6d7e8f9a0b1c",
"walletTransactionRef": "giftcard-buy-refund:c58b2d03-9f82-4e33-bd4e-7a2f1e0d9b5c",
"walletTransactions": [
{
"id": "6f7a8b9c-0d1e-2f3a-4b5c-6d7e8f9a0b1c",
"ref": "giftcard-buy-refund:c58b2d03-9f82-4e33-bd4e-7a2f1e0d9b5c",
"amount": 21.00
}
],
"correlation_id": "22ffee11-dd00-ccbb-aa99-887766554433"
}{
"id": "2e9b0a4f-6d3c-4c1e-b1a5-4d0f3e7c9a32",
"eventClass": "giftcard",
"eventType": "giftcard.sell.completed",
"eventTime": "2026-11-25T00:18:30.000Z",
"trade": {
"id": "d59c2f03-8f71-4e22-ab3c-7a2f0e9d8b4c",
"type": "sell",
"status": "COMPLETED",
"clientReference": "sell-7781",
"productId": "88",
"title": "Apple / iTunes",
"subTitle": "USA iTunes/Apple Card (300, 400 & 500)",
"imageUrl": "https://s3.af-south-1.amazonaws.com/cdn.eisyglobal.com/gift-cards/Ubx3NMNE85BJWIPO285pe4lUHLbToZt7x2Qg4aUZ.png",
"cardCurrency": "USD",
"cardAmount": 500,
"quantity": 1,
"faceValue": 500,
"currency": "USD",
"rate": 0.89,
"amountDebited": null,
"amountRefunded": null,
"amountCredited": 445.00,
"amountCreditedNgn": null,
"payoutCurrency": "USD",
"estimatedAmount": null,
"walletTransactionIds": ["4b5c6d7e-8f9a-0b1c-2d3e-4f5a6b7c8d9e"],
"codesAvailable": false,
"reason": null,
"completedAt": "2026-11-25T00:18:29.000Z",
"createdAt": "2026-11-25T00:16:29.000Z",
"updatedAt": "2026-11-25T00:18:30.000Z"
},
"walletTransactionId": "4b5c6d7e-8f9a-0b1c-2d3e-4f5a6b7c8d9e",
"walletTransactionRef": "giftcard-sell:d59c2f03-8f71-4e22-ab3c-7a2f0e9d8b4c",
"walletTransactions": [
{
"id": "4b5c6d7e-8f9a-0b1c-2d3e-4f5a6b7c8d9e",
"ref": "giftcard-sell:d59c2f03-8f71-4e22-ab3c-7a2f0e9d8b4c",
"amount": 445.00
}
],
"correlation_id": "11223344-5566-7788-99aa-bbccddeeff00"
}{
"id": "3f0c1b5a-7e4d-4d2f-c2b6-5e1a4f8d0b43",
"eventClass": "giftcard",
"eventType": "giftcard.sell.rejected",
"eventTime": "2026-11-24T10:44:00.000Z",
"trade": {
"id": "e60d3a14-9a82-4f33-bc4d-8b3a1f0e9c5d",
"type": "sell",
"status": "REJECTED",
"clientReference": "sell-7782",
"productId": "64",
"title": "Amazon",
"subTitle": "USA Amazon Cash Receipt",
"imageUrl": "https://s3.af-south-1.amazonaws.com/cdn.eisyglobal.com/gift-cards/7pQk2Zr9mNvXeLbA0cHdYtS4uWfGjR1oExample.png",
"cardCurrency": "USD",
"cardAmount": 35,
"quantity": 1,
"faceValue": 35,
"currency": "USD",
"rate": 0.86,
"amountDebited": null,
"amountRefunded": null,
"amountCredited": null,
"amountCreditedNgn": null,
"payoutCurrency": null,
"estimatedAmount": null,
"walletTransactionIds": [],
"codesAvailable": false,
"reason": "REPEATED: You have already sent this gift card previously. Please check your transaction history.",
"completedAt": null,
"createdAt": "2026-11-24T10:43:19.000Z",
"updatedAt": "2026-11-24T10:44:00.000Z"
},
"walletTransactionId": null,
"walletTransactionRef": null,
"walletTransactions": [],
"correlation_id": "99887766-5544-3322-1100-ffeeddccbbaa"
}{
"id": "6c3f4e8d-9a0b-4b2c-a3d4-7e5f6a8b9c0d",
"eventClass": "giftcard",
"eventType": "giftcard.sell.failed",
"eventTime": "2026-11-24T14:05:10.000Z",
"trade": {
"id": "f71e4b25-0a93-4f44-ce5f-8b3a2f1e0d6c",
"type": "sell",
"status": "FAILED",
"clientReference": "sell-7783",
"productId": "77",
"title": "Google Play",
"subTitle": "USA Google Play",
"imageUrl": "https://s3.af-south-1.amazonaws.com/cdn.prestmit.com/gift-cards/GpLay9mNvXeLbA0cHdYtS4uWfExample.png",
"cardCurrency": "USD",
"cardAmount": 50,
"quantity": 1,
"faceValue": 50,
"currency": "USD",
"rate": 0.80,
"amountDebited": null,
"amountRefunded": null,
"amountCredited": null,
"amountCreditedNgn": null,
"payoutCurrency": null,
"estimatedAmount": null,
"walletTransactionIds": [],
"codesAvailable": false,
"reason": "The sale could not be submitted and was not processed.",
"completedAt": null,
"createdAt": "2026-11-24T14:04:41.000Z",
"updatedAt": "2026-11-24T14:05:10.000Z"
},
"walletTransactionId": null,
"walletTransactionRef": null,
"walletTransactions": [],
"correlation_id": "33445566-7788-99aa-bbcc-ddeeff001122"
}How card events fit together
- A purchase:
card.transaction.authorized→card.transaction.settled. Some shops start withcard.transaction.preauthorized. The settled amount can differ from the authorised one (tips, currency conversion); trust the settled amount. - A purchase that doesn't go through:
authorized→reversed(the shop cancelled) orexpired(never completed). The held amount is back on the card. - A refund:
card.transaction.refund_authorized→card.transaction.refund_settled. On a terminated card:card.terminated.refund_settled, and the money goes to your wallet. - A decline:
card.transaction.declined. Insufficient funds, a frozen card or an authorisation that wasn't completed count toward the decline rule: per card per day (UTC), at any shop, the 1st is free, each later one costs a decline fee (card.fee.decline, orwallet.debited.decline_feeif the card can't cover it), and the one that reaches your decline limit (3 by default) costs a fee and terminates the card (card.terminated). - A purchase abroad: the purchase events plus
card.fee.cross_border. If the card couldn't cover the fee, it's taken from your wallet (wallet.debited.crossborder_fee). A reversed purchase bringscard.fee.cross_border_reversed. - Contactless: the purchase events plus
card.fee.contactless(orwallet.debited.contactless_fee). - Blocked by the network:
card.blocked. It stays frozen until you unfreeze it (card.unfrozen). - Termination:
card.terminated; the balance goes back to your wallet (balanceRefunded). Charges and refunds can still arrive afterwards:card.terminated.balance_regularizedandcard.terminated.refund_settled. - Expiry:
card.expiring(e.g. 30 days before), thencard.terminatedwithtrigger: "expired".
Treat an eventTypeyou don't recognise as "log and ignore": new ones may be added.
Examples: every card event
One delivery of each card event, as your endpoint receives it. Open any event to see its full payload.
card.transaction.preauthorizedTransactionA purchase was pre-authorised (e.g. a hotel or fuel hold).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a00",
"eventClass": "card",
"eventType": "card.transaction.preauthorized",
"eventTime": "2026-10-02T13:10:00.000Z",
"sourceEventId": "17456764-297f-4ca5-7a5e-08badd30fe5b",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "d4567b32-a8ba-4d9d-ce67-08badd31177d",
"transactionId": "29456650",
"reference": "061690726970",
"amount": 85.98,
"currency": "USD",
"merchantName": "PAYPAL *ZSBAINERNTE",
"merchantCategoryCode": "2791",
"merchantCountry": "USA",
"status": null,
"description": null,
"availableBalance": 12.78,
"time": "2026-06-16 13:10:13"
}card.transaction.authorizedTransactionA purchase was approved. The money is held on the card until it settles.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a01",
"eventClass": "card",
"eventType": "card.transaction.authorized",
"eventTime": "2026-10-02T13:11:07.000Z",
"sourceEventId": "862db610-4f1b-4cc7-6792-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "eebc567f-4858-4b9f-e355-08dbd5a114d0",
"transactionId": "22404",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 1.76,
"currency": "USD",
"merchantName": "PAYPAL *ZSBAINERNTE",
"merchantCategoryCode": "2791",
"merchantCountry": "HK",
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 0.51,
"time": "2026-05-19 09:55:14"
}card.transaction.declinedAttentionA purchase was declined. description is the reason.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a02",
"eventClass": "card",
"eventType": "card.transaction.declined",
"eventTime": "2026-10-02T13:12:14.000Z",
"sourceEventId": "3c6f0b4f-de0c-456a-6751-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "08b8f2f7-72f0-436d-7e94-08db563b9b92",
"transactionId": "22324",
"reference": "f27e05d23c334882a0b83512d98b0633",
"amount": 50,
"currency": "USD",
"merchantName": "GOOGLE *ADS2663302898",
"merchantCategoryCode": "7311",
"merchantCountry": "US",
"status": null,
"description": "No sufficient funds",
"availableBalance": 10,
"time": "2026-05-19 09:24:47"
}card.transaction.declinedanother decline reasonAttentionAnother decline reason: the card hit a transaction-count limit.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a03",
"eventClass": "card",
"eventType": "card.transaction.declined",
"eventTime": "2026-10-02T13:13:21.000Z",
"sourceEventId": "M2ZlOWE0MjItODgz",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "7034b944-fa90-4e94-8ea6-08dca2834d93",
"transactionId": "9160970",
"reference": "5f4a8c6736ef4712851f48659fa4b2e0",
"amount": 1.03,
"currency": "USD",
"merchantName": "aliexpress",
"merchantCategoryCode": "5311",
"merchantCountry": "US",
"status": null,
"description": "Card trs no. limit exceeded",
"availableBalance": 2.97,
"time": "2026-07-15 16:58:04"
}card.transaction.settledTransactionA purchase settled (final).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a04",
"eventClass": "card",
"eventType": "card.transaction.settled",
"eventTime": "2026-10-02T13:14:28.000Z",
"sourceEventId": "670cd4af-4cc3-4178-6787-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "52399123-7b66-4921-7e58-08db563b9b92",
"transactionId": "22391",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 3.32,
"currency": "USD",
"merchantName": "aliexpress",
"merchantCategoryCode": "5310",
"merchantCountry": "US",
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 4.95,
"time": "2026-05-19 09:49:22"
}card.transaction.expiredAttentionAn authorisation the shop never completed expired; the held amount is released.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a05",
"eventClass": "card",
"eventType": "card.transaction.expired",
"eventTime": "2026-10-02T13:15:35.000Z",
"sourceEventId": "29ab90c8-e5a3-4bd9-637d-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "69f402e9-304a-4e6c-7dae-08db563b9b92",
"transactionId": "212427",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 3.48,
"currency": "USD",
"merchantName": "aliexpress",
"merchantCategoryCode": "5310",
"merchantCountry": "US",
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 1.01,
"time": "2026-05-26 00:51:05"
}card.transaction.reversedAttentionThe shop reversed an authorisation; the held amount is released.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a06",
"eventClass": "card",
"eventType": "card.transaction.reversed",
"eventTime": "2026-10-02T13:16:42.000Z",
"sourceEventId": "f0ce17bc-b20c-44fd-6754-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "18a50b92-cd11-4dd4-7e6c-08db563b9b92",
"transactionId": "22327",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 1,
"currency": "USD",
"merchantName": "PAYPAL",
"merchantCategoryCode": "5999",
"merchantCountry": "US",
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 3.05,
"time": "2026-05-19 09:24:48"
}card.transaction.refund_authorizedMoney movementThe shop started a refund.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a07",
"eventClass": "card",
"eventType": "card.transaction.refund_authorized",
"eventTime": "2026-10-02T13:17:49.000Z",
"sourceEventId": "29ab90c8-e5a3-4bd9-637d-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "69f402e9-304a-4e6c-7dae-08db563b9b92",
"transactionId": "21242",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 3.48,
"currency": "USD",
"merchantName": "aliexpress",
"merchantCategoryCode": "5310",
"merchantCountry": null,
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 1.01,
"time": "2026-05-19 00:51:05"
}card.transaction.refund_settledMoney movementThe refund settled; the money is back on the card.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a08",
"eventClass": "card",
"eventType": "card.transaction.refund_settled",
"eventTime": "2026-10-02T13:18:56.000Z",
"sourceEventId": "29ab90c8-e5a3-4bd9-637d-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "69f402e9-304a-4e6c-7dae-08db563b9b92",
"transactionId": "21242",
"reference": "f27e05d23c334882a0b83512d98b0675",
"amount": 3.48,
"currency": "USD",
"merchantName": "aliexpress",
"merchantCategoryCode": "5310",
"merchantCountry": "US",
"status": null,
"description": "Approved or completed successfully",
"availableBalance": 1.01,
"time": "2026-05-19 00:51:05"
}card.fee.cross_borderFeeA cross-border fee was charged to the card for a purchase in another country/currency.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a09",
"eventClass": "card",
"eventType": "card.fee.cross_border",
"eventTime": "2026-10-02T13:19:03.000Z",
"sourceEventId": "6df3ed85-0090-4585-f7a0-08dbdad35007",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "914e10c2-1bb7-4824-1f82-08daf7f5062a",
"transactionId": "2003",
"reference": null,
"amount": 3.12,
"currency": "USD",
"merchantName": "SPIRIT AIR VISA",
"merchantCategoryCode": "3260",
"merchantCountry": "IN",
"status": "Approved",
"description": "Cross border charge for purchase @ SPIRIT AIR VISA",
"availableBalance": null,
"time": "2026-11-01T12:09:03.4007735+00:00"
}card.fee.cross_border_reversedAttentionA cross-border fee was reversed (the purchase was reversed or refunded).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0a",
"eventClass": "card",
"eventType": "card.fee.cross_border_reversed",
"eventTime": "2026-10-02T13:20:10.000Z",
"sourceEventId": "6df3ed85-0090-4585-f7a0-08dbdad35007",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "914e10c2-1bb7-4824-1f82-08daf7f5062a",
"transactionId": "2003",
"reference": null,
"amount": 3.12,
"currency": "USD",
"merchantName": "SPIRIT AIR VISA",
"merchantCategoryCode": "3260",
"merchantCountry": "IN",
"status": "Approved",
"description": "Cross border charge for purchase @ SPIRIT AIR VISA",
"availableBalance": null,
"time": "2026-11-01T12:09:03.4007735+00:00"
}card.fee.contactlessFeeA contactless payment fee was charged to the card.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0b",
"eventClass": "card",
"eventType": "card.fee.contactless",
"eventTime": "2026-10-02T13:21:17.000Z",
"sourceEventId": "6df3ed85-0090-4585-f7a0-08dbdad35007",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "914e10c2-1bb7-4824-1f82-08daf7f5062a",
"transactionId": "2003",
"reference": null,
"amount": 3.12,
"currency": "USD",
"merchantName": "SPIRIT AIR VISA",
"merchantCategoryCode": "3260",
"merchantCountry": "IN",
"status": "Approved",
"description": "Contactless payment fee for @ SPIRIT AIR VISA",
"availableBalance": null,
"time": "2026-11-01T12:09:03.4007735+00:00"
}card.blockedAttentionThe card network froze the card itself (here: suspected fraud on a declined purchase).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0c",
"eventClass": "card",
"eventType": "card.blocked",
"eventTime": "2026-10-02T13:22:24.000Z",
"sourceEventId": "29ab90c8-e5a3-4bd9-637d-08db563a2507",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "69f402e9-304a-4e6c-7dae-08db563b9b92",
"reason": "Blocked Catd",
"action": "Freeze",
"amount": 1.01,
"status": null
}card.fee.declineFeeA decline fee (a counted decline after the 1st on the card that day, up to your decline limit) was taken from the card.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a90",
"eventClass": "card",
"eventType": "card.fee.decline",
"eventTime": "2026-10-02T13:40:12.000Z",
"sourceEventId": "MjgyNjtodHRwczovL3dlbnBheS1zYW5k",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "08b8f2f7-72f0-436d-7e94-08db563b9b92",
"amount": 0.75,
"balanceAfter": 9.25
}card.terminatedtrigger: terminatedAttentionThe card was terminated (through the API, or by us at your decline limit). The remaining balance was returned to your wallet.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0d",
"eventClass": "card",
"eventType": "card.terminated",
"eventTime": "2026-10-02T13:23:31.000Z",
"sourceEventId": "MjgyMjtodHRwczovL3dlbnBheS1zYW5k",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "1ea96de5-f21b-4fda-bad1-08dc37ab21e5",
"trigger": "terminated",
"balanceBeforeTermination": 5,
"balanceRefunded": 5,
"reason": "Card Terminated",
"reference": "Transger225382992ssw"
}card.terminatedtrigger: repeated_declinesAttentionThe card network terminated the card after repeated declines.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0e",
"eventClass": "card",
"eventType": "card.terminated",
"eventTime": "2026-10-02T13:24:38.000Z",
"sourceEventId": "29ab90c8-e5a3-4bd9-637d-08db563a6607",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "69f402e9-304a-4e6c-7dae-08db563b9b92",
"trigger": "repeated_declines",
"balanceBeforeTermination": 1,
"balanceRefunded": 1,
"reason": "Insufficient Funds",
"reference": "Trans8394546576",
"declinedAmount": 1.01
}card.terminatedtrigger: expiredAttentionThe card expired and was terminated; its balance was returned to your wallet.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a0f",
"eventClass": "card",
"eventType": "card.terminated",
"eventTime": "2026-10-02T13:25:45.000Z",
"sourceEventId": "Nzc2MjE7aHR0cHM6Ly9zZXJ2aWNlcy5i",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "41318f92-0c10-400a-e542-08dc9ba9c07b",
"trigger": "expired",
"balanceBeforeTermination": 9.12,
"balanceRefunded": 9.12,
"reason": "Balance Refund of 9.12 on expired Card 41318f92-0c10-400a-e542-08dc9ba9c07b",
"reference": "13263591"
}card.terminated.balance_regularizedAttentionA charge settled after termination and left the card negative; it was settled (amount is negative).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a10",
"eventClass": "card",
"eventType": "card.terminated.balance_regularized",
"eventTime": "2026-10-02T13:26:52.000Z",
"sourceEventId": "4626",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "6FB12883-22A0-4CD7-8889-08DCBC6E65C2",
"transactionId": null,
"reference": "17256526511725652651",
"amount": -19,
"currency": null,
"merchantName": null,
"merchantCategoryCode": null,
"merchantCountry": null,
"status": null,
"description": "Card with Negative Balance Regularization 19.00 for 6fb12883-22a0-4cd7-8889-08dcbc6e65c2",
"availableBalance": null,
"time": "2026-09-06 19:57:34"
}card.terminated.refund_settledAttentionA shop refunded a purchase after the card was terminated.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a11",
"eventClass": "card",
"eventType": "card.terminated.refund_settled",
"eventTime": "2026-10-02T13:27:59.000Z",
"sourceEventId": "M2841339",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "4087fdc4-9ee0-4761-8f74-08dd149cd1e3",
"transactionId": "16324340",
"amount": 25.89,
"refunded": true,
"description": "Refund of 25.89 from TEMU.COM on Terminated Card 4087fdc4-9ee0-4761-8f74-08dd149cd1e3",
"reference": "Transger225382992ssw"
}card.expiringCardThe card expires in expiresInDays days (the date itself is never sent).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a12",
"eventClass": "card",
"eventType": "card.expiring",
"eventTime": "2026-10-02T13:28:06.000Z",
"sourceEventId": "NTEzZTZiNzAtMWM1MS00NzNi",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "dca061e1-ad22-4032-7e91-08dbe5b5064a",
"expiresInDays": 30
}card.verifiedCardA shop verified the card (a zero-amount check, e.g. when it is saved to Apple or a subscription).View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a13",
"eventClass": "card",
"eventType": "card.verified",
"eventTime": "2026-10-02T13:29:13.000Z",
"sourceEventId": "c61199d4-262d-4162-b712-55e5788af748",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "366bd45a-30d7-47d4-c289-08ddf6c11458",
"merchantName": "APPLE.COM/BILL 866-712-7753 CAUS"
}card.contactless.activation_codeCardYour customer is adding a card to Apple Pay or Google Pay. Send them this code yourself, straight away. Don't log or store it: it's removed from our copy once delivered, so a resend from your delivery log shows activationCode: null.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a1f",
"eventClass": "card",
"eventType": "card.contactless.activation_code",
"eventTime": "2026-11-17T14:08:17.413Z",
"sourceEventId": "3ca42ad1-1eb9-4ee7-828b-e00fbd2234c0",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"activationCode": "328893",
"isResend": false
}card.withdrawal.completedMoney movementMoney was moved from the card to your wallet.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a14",
"eventClass": "card",
"eventType": "card.withdrawal.completed",
"eventTime": "2026-10-02T13:30:20.000Z",
"sourceEventId": "MjgyMTtodHRwczovL3dlbnBheS1zYW5k",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "1ea96de5-f21b-4fda-bad1-08dc37ab21e5",
"amount": 5,
"balanceBefore": 60,
"balanceAfter": 55,
"reference": "Transger225382992ssw"
}card.topup.completedMoney movementThe card was topped up from your wallet.View payloadHide payload
{
"id": "5f3c2a91-7d4e-4b8a-9c61-2e0f8b7d3a15",
"eventClass": "card",
"eventType": "card.topup.completed",
"eventTime": "2026-10-02T13:31:27.000Z",
"sourceEventId": "MjgyMTtodHRwczovL3dlbnBheS1zYW5kYm94",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"externalRef": "your-internal-user-id-123",
"cardId": "1ea96de5-f21b-4fda-bad1-08dc37ab21e5",
"amount": 50,
"balanceBefore": 60,
"balanceAfter": 110,
"reference": "Transger225382992gww"
}Examples: one card's lifecycle
The events below are what your endpoint receives as a card is issued, topped up, partly withdrawn, frozen and unfrozen — in the order they arrive. Field order inside a payload isn't fixed, so read fields by name.
{
"id": "9a7d1c3e-58b2-4f60-a1d4-3e8c7b2f6a90",
"cardId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"lastFour": "9488",
"cardBrand": "Visa",
"status": "ACTIVE",
"activated": true,
"eventTime": "2026-10-02T13:25:59.353Z",
"eventType": "card.issued",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"eventClass": "card",
"externalRef": "your-internal-user-id-123",
"sourceEventId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"availableBalance": 2
}{
"id": "2c6e8f41-0b9a-4d73-8f25-6a1d3e9c7b02",
"amount": 20,
"cardId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"eventTime": "2026-10-02T13:27:03.116Z",
"eventType": "card.topup.completed",
"reference": "B4711A8F8B1AA87",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"eventClass": "card",
"externalRef": "your-internal-user-id-123",
"balanceAfter": 22,
"balanceBefore": 2,
"sourceEventId": "26200444"
}{
"id": "7e04b9d2-6f31-4c85-b7a9-1d2e8f5c0a36",
"amount": 5,
"cardId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"eventTime": "2026-10-02T13:28:31.173Z",
"eventType": "card.withdrawal.completed",
"reference": "B3352CDE70B3099",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"eventClass": "card",
"externalRef": "your-internal-user-id-123",
"balanceAfter": 17,
"balanceBefore": 22,
"sourceEventId": "26200445"
}{
"id": "422c7aba-164b-46eb-8f24-eb0b07ad3b91",
"cardId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"status": "FROZEN",
"eventTime": "2026-10-02T13:36:04.246Z",
"eventType": "card.frozen",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"eventClass": "card",
"externalRef": "your-internal-user-id-123",
"sourceEventId": null
}{
"id": "fe8f7884-d059-4010-a81b-04b40e4be758",
"cardId": "0755f40b-89ad-40cb-bd8d-052e63f8c0e3",
"status": "ACTIVE",
"eventTime": "2026-10-02T13:37:25.537Z",
"eventType": "card.unfrozen",
"customerId": "e79038e4-289f-4ca7-b003-abee58d822a2",
"eventClass": "card",
"externalRef": "your-internal-user-id-123",
"sourceEventId": null
}Delivery Log
/api/v1/webhooksDeliveries: 10 per page by default, newest first. The payload itself isn't returned; responseStatus/responseBody are what your server answered. Every filter is optional, and they combine.
| Field | Type | Description |
|---|---|---|
page, limit | number | Default 1 and 10; limit up to 100. |
status | string | PENDING, DELIVERING, DELIVERED, FAILED: one or more, comma-separated. |
eventType | string | e.g. card.issued, customer.kyc.approved: one or more, comma-separated. |
eventClass | string | e.g. card, customerkyc, walletdebit, walletcredit, walletwithdrawal. |
search (alias q) | string | A delivery id or event id (exact), or text in the event type. |
createdFrom, createdTo | ISO date | Date or datetime. A bare date as createdTo includes that whole day. |
order | "desc" | "asc" | Default desc. |
{
"status": true,
"message": "Successful",
"data": {
"page": 1, "limit": 10, "total": 1, "totalPages": 1,
"deliveries": [
{
"id": "d4e5…",
"eventId": "…",
"eventType": "card.transaction.authorized",
"eventClass": "card",
"status": "DELIVERED",
"attempts": 1,
"manualRetries": 0,
"manualRetriesLeft": 5,
"lastAttemptAt": "2026-10-02T10:00:05.000Z",
"deliveredAt": "2026-10-02T10:00:05.000Z",
"responseStatus": 200,
"responseBody": "ok",
"createdAt": "2026-10-02T10:00:00.000Z"
}
]
}
}/api/v1/webhooks/:idOne delivery.
/api/v1/webhooks/:id/retrySend a FAILED or DELIVERED event again (e.g. your endpoint lost it), with up to 6 attempts. It's the same payload with the same id, so a receiver that dedupes on id treats it as a repeat. Refused while the delivery is still PENDING or DELIVERING: This delivery is still being sent. Try again once it has been delivered or has failed. Each delivery can be resent at most 5 times; manualRetriesLeft on the delivery says how many remain, and after that the request is refused with This delivery has already been resent 5 times, the most allowed.