IZIPAY Business API
Issue virtual cards for your users programmatically, fund them with crypto, and track everything in real time. A single REST API with predictable JSON responses and webhook events.
The API speaks JSON over HTTPS. Every request except GET /health must be authenticated with a Bearer token. All responses share one envelope: {"success": true, "data": {...}} on success, and {"success": false, "error": {"code": "...", "message": "..."}} on failure (see Error codes). Timestamps are UTC. New fields can be added to responses at any time, so ignore fields you do not know.
Prices and top-up rates are set per account and are available on request. GET /balance returns the rates that apply to your account.
Quickstart: your first card in 5 minutes
Everything below runs in the free sandbox: no real money, no real cards. Replace izpk_test_YOUR_KEY with your test key.
1. Create a free sandbox account
Sign up at izipay.me/clients/register.php. After you confirm your email, the account opens in sandbox mode right away.
2. Get a test API key
In the cabinet, open API Keys and create a key. Sandbox keys start with izpk_test_. The key is shown once, so store it safely.
3. Fund your sandbox balance
You can also press Add 1,000 test USD on the cabinet dashboard.
4. Issue a card
In the sandbox a balance-funded card is issued at once. In live mode the response has issue_status: "paid_pending_issue" and the card details follow with the card.issued webhook.
5. Register a webhook and verify the signature
Save signing_secret. Every delivery carries an X-Izipay-Signature header: the hex HMAC-SHA256 of the raw request body, keyed with that secret. See Webhooks for ready-to-use Node.js and PHP code. To see an event arrive, top up the card or call POST /sandbox/transaction.
When your integration works, press Request live access in the cabinet. Live keys start with izpk_live_; the endpoints and the request format stay the same.
Authentication
Authenticate every request by sending your secret API key in the Authorization header as a Bearer token.
A missing, invalid or revoked key returns 401 UNAUTHORIZED. A suspended account or a request from an IP address outside your allow list returns 403 FORBIDDEN.
Request signing (optional, recommended)
Each key has a secret (izps_…, shown once when the key is created). Sign requests with it so that a leaked API key alone is useless. Enable it per key in the cabinet (API keys, column Signing): while optional, a signature is verified only when sent; when required, unsigned requests return 401.
Example string to sign for GET /api/v1/cards?limit=50: "1725465600\nGET\n/api/v1/cards?limit=50\n" (empty body). Every signature is accepted once (replay protection). Keys created before September 2026 cannot enable signing: create a new key.
Sandbox (testing)
Build and test your whole integration with no real crypto and no real cards. Every call made with a test key is isolated from live data: a test key sees only test cards and the test balance, and a live key never sees them.
| Get access | Create a free account at /clients/register.php. It opens in sandbox mode, and the cabinet issues test keys (izpk_test_…). Same endpoints, same authentication. |
| Test balance | POST /sandbox/fund with {"amount_usd": 1000} adds test USD (1 to 10,000 per call, up to 10 calls a day, balance capped at 100,000). GET /balance shows it in account_balance. |
| Issue | POST /cards/issue with "pay_currency": "balance" charges the test balance and returns a test card at once (issue_status: "issued"). Without pay_currency the test balance is used when it is enough. With a crypto pay_currency you get a fake deposit_address and a payment_id; call POST /sandbox/confirm with that payment_id to simulate the payment. |
| Test cards | Test card numbers start with 400000 or 222300. They never match a live card range and can never be used for real spending. By default an account can hold 10 test cards; if you need more for your tests, ask support. |
| Top up, return, transfer | Top-ups and returns move test USD between the test balance and the test card, with your account's top-up rate and network fee applied as in live mode. A transfer between test cards answers with "sandbox": true but does not move the balance. |
| Simulate activity | POST /sandbox/transaction makes a purchase on a test card, POST /sandbox/otp makes a verification code. Both send the matching webhook with "sandbox": true. |
| Not in the sandbox | The payment gateway (/payments, /payouts) and /cards/{card_id}/apple-pay-code return 403 SANDBOX_NOT_AVAILABLE. Freeze and unfreeze answer "sandbox": true but do not change the stored card. |
| Limits | Test traffic is limited to 60 requests per minute and 3,000 per day, on top of your account's own per-minute limit. A sandbox account can register up to 3 webhooks. |
Simulate a purchase
Spends from a test card's balance and sends a card.transaction webhook. The purchase is declined (status: "failed") when the card is frozen (decline_reason: "card_frozen") or the card balance is too low ("insufficient_funds"). Amount from 0.01 to 5,000; limits: 60 per hour, 200 per day. merchant is optional; unknown names are replaced by a sample merchant.
Simulate a crypto payment
Body {"payment_id": "gwtest_..."}. Marks a sandbox payment as paid: the test card is issued (with card.issued) or the top-up is credited (with topup.completed). Calling it again returns "message": "Already issued" or "Already credited".
Sandbox errors
403 SANDBOX_ONLY (a /sandbox/* call with a live key), 429 SANDBOX_LIMIT_REACHED (test card limit or test balance cap), 429 SANDBOX_LIMIT (daily test funding limit), 400 SANDBOX_TOPUP_FAILED, 400 SANDBOX_TX_FAILED, 400 SANDBOX_OTP_FAILED. The message field says what to change.
Idempotency
Network errors happen. To retry a money operation safely, send a unique X-Idempotency-Key header (one key per logical operation, for example your own order id). The standard Idempotency-Key header is accepted as an alias. Keys longer than 64 characters are accepted and hashed. The values 0, null, undefined and none are ignored on POST /cards/issue.
| Endpoint | What a repeat with the same key does |
|---|---|
| POST /cards/issue | Never issues a second card. Returns the card created by the first request: 200 with card_id, issue_status, payment_status and "duplicate": true. |
| POST /cards/{card_id}/topup | A repeat with the same key and the same body within 10 minutes returns the original successful response with "idempotent_replay": true. A different body, or the same key after 10 minutes, is a new top-up. Separately, a balance top-up of the same amount on the same card within 90 seconds is rejected with 409 DUPLICATE_REQUEST. |
| POST /cards/{card_id}/return | Returns the original successful result with "idempotent_replay": true. Funds are never returned twice. |
| POST /cards/{card_id}/transfer | Returns the original transfer with "idempotent_replay": true. Funds are never moved twice. A key already used for a transfer between a different pair of cards returns 409 IDEMPOTENCY_KEY_REUSED: use a new key. |
If a request with the same key is still being processed, you get 409 IN_PROGRESS: wait a few seconds and retry with the same key. Only successful responses are stored, so after an error a retry with the same key runs the operation again.
Card types
Pick the card with the card_type field on POST /cards/issue. Always send it: see the note on visa below.
| card_type | What is issued | Apple Pay / Google Pay | Price and top-up rate |
|---|---|---|---|
| mastercard_online | Mastercard for online payments. Numbers start with 5378. If that range is temporarily unavailable, the same kind of Mastercard is issued from the 2234 range. | No | Your account's online card price and online top-up rate |
| visa_online | Visa for online payments, AI subscriptions and ads. Numbers start with 4746. | No | Same as mastercard_online |
| mastercard_5556 | US Mastercard for AI subscriptions and ads. Numbers start with 5556. | No | Same as mastercard_online |
| mastercard_applepay | Mastercard that can be added to Apple Pay and Google Pay. Numbers start with 5240. | Yes | Your account's Apple Pay card price and top-up rate |
Every card can be funded from your account balance or with crypto, both at issue and on top-up. GET /balance returns your prices and rates in pricing. The issue response tells you what you got in brand (visa or mastercard) and number_prefix (the first four digits); use brand to show the right logo.
| CROSS_BORDER_FEE | 1% or 2%, depending on the card product, on a purchase made outside the card's home country |
| TRANSACTION_FEE | $0.30 on a purchase under $50 |
| WALLET_PAY_FEE | 0.2% on a payment made through Apple Pay or Google Pay |
| FX_CONVERSION_FEE | $0.40 on a purchase in a currency other than USD |
| THREE_DS_FEE | $0.20 on a purchase confirmed with a 3-D Secure code |
| AUTH_FAILED_FEE | $0.10 on a declined authorisation |
| OTHER_FEE | $0.05, charged by the bank for minor service events |
If the balance cannot cover a fee, the unpaid fee stays on the card and is taken from the next top-up of that card first; the rest lands on the card. Nothing is charged to your account balance. A return to your balance or a transfer to another card leaves the unpaid fee on the card: the amount you can move is the card balance minus that fee.
No recurring charges. An issued card has no monthly fee, no annual fee and no inactivity fee. A card that is never used costs nothing beyond the one-off issuing price.
Note on visa and an empty value. For historical reasons both issue the Mastercard that starts with 5378, the same card as mastercard_online, and the response says card_type: "visa" with brand: "mastercard". If you want a Visa, send visa_online.
Issue a card
Creates a new card for one of your end-users. With "pay_currency": "balance" the card price is charged to your account balance at once, with no on-chain step. With a crypto pay_currency you get a deposit address, and the card is issued after the payment confirms on-chain. If you omit pay_currency, your balance is charged when it covers the price; otherwise a USDT TRC-20 deposit address is returned. Returns 201. See Card types to choose the card.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| cardholder_email | string | required | The end-user's email address. |
| card_type | string | recommended | mastercard_online, visa_online, mastercard_5556 or mastercard_applepay. See Card types. An empty value or visa issues the 5378 Mastercard. |
| cardholder_alias | string | optional | Display name, up to 50 characters. Defaults to the email prefix. |
| client_card_ref | string | optional | Your own reference for this card (for example your internal user ID), up to 100 characters. Returned in card responses and in the card.issued webhook. |
| pay_currency | string | optional | balance to charge your account balance. Crypto: usdttrc20, usdctrc20, trx, usdtbsc, usdcbsc, bnb, usdterc20, usdcerc20, eth, usdtpoly, usdcpoly, pol, usdtsol, usdcsol, sol, btc. See the default behaviour above. |
Headers
| X-Idempotency-Key | recommended | A unique string per logical request. Retrying with the same key never issues a second card. See Idempotency. |
Example · paid with crypto
With a crypto pay_currency the card waits for the payment. Send the exact pay_amount to deposit_address before expires_at (24 hours).
Get card details
Retrieves the current state of a card. Once issue_status is issued, the response contains a card object with the full card details: card number, expiry and CVV.
Add ?live=1 to refresh the balance from the issuer when the cached value is older than 30 seconds. Without it, a value older than 120 seconds is refreshed automatically. balance_source says where the number came from: live, live_cached, mirror or sandbox. If the issuer does not answer, the cached value is returned and the call does not fail.
Before the card is issued, card is absent. When issue_status is failed, an error field explains why.
List cards
Returns all cards you have issued, most recent first, with pagination. The list does not contain card numbers or CVV; use GET /cards/{card_id} for those. Balances come from our cache; the single-card endpoint refreshes them.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | Page number, starting at 1. Default 1. |
| limit | integer | optional | Cards per page, 1 to 500. Default 100. |
| status | string | optional | issued, pending (both pending_payment and paid_pending_issue) or failed. Any other value returns all cards. |
Top up a card
Adds money to an issued card, either from your account balance (credited at once) or with a crypto payment (credited after it confirms on-chain). Your account's top-up rate and a network fee are deducted from the amount; amount_on_card in the response is what lands on the card. Returns 201.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| amount | number | required | Amount in USD that you pay (balance) or that your customer sends (crypto). Minimum $5. amount_usd is accepted as an alias. |
| pay_currency | string | optional | balance to charge your account balance. Crypto (USDT only): usdttrc20 (default), usdtbep20 or usdtbsc, usdterc20, usdtpoly. |
| network | string | optional | For balance top-ups: the network your balance funds are held on, trc20 (default), bsc, eth or polygon (aliases tron, bep20, erc20, matic). The network fee depends on it. If your funds for this amount are held on another network, the error message names the network to use. |
The network fee for each network is returned by GET /balance in pricing.topup_network_fee_by_network, and the top-up rates in pricing.visa_topup_commission_pct (cards starting with 4, 5378 and 5556) and pricing.mastercard_topup_commission_pct (other cards). amount_on_card = amount × (100 - rate) / 100 - network fee.
With crypto. The response has status: "pending_payment", the same fees block and a payment object with deposit_address and the exact pay_amount to send. The card is credited after the payment confirms on-chain, and topup.completed is sent. You can have a limited number of unpaid crypto top-ups open at once (429 TOO_MANY_OPEN_TOPUPS); they expire 24 hours after creation. Balance top-ups are not limited this way.
Unpaid card fees. If bank fees could not be taken from an empty card, they are taken from the next top-up of that card first.
A card that is not issued yet answers 409 CARD_NOT_READY; wait for card.issued.
Get a top-up
Reads the state of one top-up by the topup_id that POST /cards/{card_id}/topup returned. Read-only and safe to call after a timeout when you never saw the response. A topup_id that does not belong to your account returns 404.
| status | Meaning |
|---|---|
| credited | Money is on the card; credited_at is set. |
| pending | Accepted and being credited, or waiting for the crypto payment. |
| expired | The crypto payment never arrived. |
| underpaid | Less arrived than requested. Contact support. |
| failed | Not credited. Contact support if money left your balance. |
Freeze and unfreeze a card
Freezing blocks every new authorisation on the card, including recurring subscription charges. The balance stays on the card and is untouched. Unfreezing restores normal use. Both calls are idempotent: freezing an already frozen card returns success and changes nothing.
A card frozen by our support team cannot be unfrozen through the API: the call returns 403 CARD_LOCKED_BY_SUPPORT and you should contact us instead. If the issuer does not confirm the change, the call returns 502 FREEZE_FAILED and the card state is unchanged; retry.
Closing a card permanently
There is no separate close endpoint. Retire a card in two steps, in this order, because a frozen card cannot be emptied: first POST /cards/{card_id}/return with "amount": "all" to move the remaining balance back to your account balance with no return fee, then POST /cards/{card_id}/freeze and leave it frozen.
Return card balance
Moves unspent funds from a card back to your account balance, with no return fee. Use it before retiring a card, or to reclaim liquidity. The returned amount can be reused to issue or top up other cards. A card.returned webhook is sent.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| amount | number | "all" | optional | Amount to return, in USD. "all" or no value returns the whole available balance. amount_usd is accepted as an alias. |
Available balance is the card balance minus any bank fees that are still unpaid on this card: those stay on the card. When you return everything, one cent can stay on the card for technical reasons.
Transfer between cards
Moves funds directly from one of your cards to another of your cards with no fee (a return followed by a top-up would cost the top-up rate). Both cards must be issued, belong to your account and have the same cardholder_email; otherwise the call returns 403 CARDHOLDER_MISMATCH (contact support if you need transfers between cardholders). {card_id} in the path is the source card. Bank fees that are still unpaid on the source card stay on it and cannot be transferred.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| to_card_id | string | required | Destination card id (must differ from the source and belong to your account). |
| amount | number | required | Amount to move, in USD. Must not exceed the source card's available balance. |
Get transactions
Returns the history of a card, most recent first: purchases, declines, refunds, returns and credited top-ups. Query parameters: limit (1 to 200, default 50) and offset (default 0).
| Field | Meaning |
|---|---|
| id | Transaction id. For top-ups, the top-up id. |
| amount | Negative when money left the card (purchase, return to balance), positive when it came in (top-up, refund). |
| currency | Currency of amount. |
| type | For example purchase, refund, topup, withdrawal (return to your balance). Other values can appear. |
| status | SUCCESS (completed), PENDING (authorised, not settled yet), FAILED (declined, no money held). Other values can appear; treat them as informational. |
| is_credit | true for top-ups and refunds (money in), otherwise false. |
| merchant | Merchant name. For top-ups, Top-up (network). |
| date | UTC, format Y-m-d H:i:s. |
A card that is not issued yet returns 404 NOT_FOUND. For real-time updates use the card.transaction webhook.
Verification codes: Apple Pay / Google Pay and 3-D Secure
When a cardholder adds an Apple Pay Mastercard (numbers starting with 5240) to their wallet, the issuer sends a one-time verification code. This endpoint captures that code and returns it to you. Other cards answer 400 NOT_SUPPORTED, a card that is not issued yet answers 409 CARD_NOT_READY, and the sandbox answers 403 SANDBOX_NOT_AVAILABLE (use POST /sandbox/otp instead).
Two steps. First POST to arm the card (tell us a code is expected), then add the card to the wallet, and finally receive the code by webhook or by polling GET.
1. Arm (POST)
2. Retrieve (GET, poll)
3-D Secure: online purchases
This is different from wallet activation. When your cardholder pays at an online merchant that requires 3-D Secure verification, the issuer generates a one-time code for that specific transaction. IZIPAY captures it and pushes it to you automatically on the card.otp webhook, with no arming needed. The 3-D Secure code is tied to the exact card, so it is always matched correctly. Just handle the webhook and show the code to your cardholder to complete the payment.
If the webhook does not reach you
Deliveries are retried 5 times: immediately, then after 1 minute, 5 minutes, 30 minutes and 2 hours. A delivery counts as successful on any 2xx response; the request times out after 15 seconds. After the fifth failure the event is marked exhausted and is not retried again.
A 3-D Secure code is short lived, so a retry two hours later is of no use to your cardholder. For that case there is a pull endpoint that returns the codes we already have for a card, both payment_3ds and wallet_provision. It reads the same store the webhook is sent from, so the two never disagree.
Testing codes in the sandbox
With a sandbox key you can make a card.otp event happen on demand, so you can finish your integration before issuing a live card. Nothing is sent to anyone: the event goes to your webhook and the code is stored for GET /cards/{card_id}/otp, exactly as in production.
We can stay away from your cardholders
By default we also email the verification code to the address you passed as cardholder_email, which suits integrations that route those addresses to their own mail server. If you deliver codes to your users yourself, ask us to turn that off for your account: we then send the card.otp webhook and nothing else, and your cardholders never receive anything from us. We never email card numbers, CVV or expiry dates to anyone, and we never send marketing to cardholder addresses.
Get account balance
Returns your account balance, your prices and rates, your limits and card statistics. Your account balance is in data.account_balance.balance_usd: card issues and top-ups with "pay_currency": "balance" are charged to it. With a test key it shows the test balance and adds "sandbox": true.
| Field | Meaning |
|---|---|
| pricing.*_issue_usd | Your issue price per card type. mastercard_issue_usd is the Apple Pay card; visa_issue_usd is the online cards. |
| pricing.*_topup_commission_pct | Your top-up rate in percent. visa_: cards starting with 4, 5378 and 5556. mastercard_: other cards. |
| pricing.topup_network_fee_by_network | Network fee per top-up, by the network value of a balance top-up. |
| limits | Requests per minute and cards per day (0 means no daily limit). |
| cards_stats | Counts of your cards by status and the total paid for cards. |
The response also has older fields kept for compatibility (pricing.card_price_usd, pricing.topup_commission_pct, prepaid_pool); do not build on them. The prepaid pool is discontinued: POST /pool/topup returns 410 POOL_DISCONTINUED. Fund your account balance instead.
Payment gateway · create a payment
The payment gateway lets you accept crypto from your own customers. Create a payment, show the returned address and amount to your customer, and receive funds (converted to USD) into your gateway balance, from which you can pay out. Your gateway_fee_pct and a network fee are deducted from each payment; see Gateway balance. The gateway needs a live key: in the sandbox it returns 403 SANDBOX_NOT_AVAILABLE. When a payment is credited, the payment.confirmed webhook is sent.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| price_amount | number | required | Amount to charge, in USD. |
| pay_currency | string | required | What the customer pays in, e.g. usdttrc20, btc, eth. Or pass a base coin (usdt) plus network. |
| order_id | string | optional | Your reference for the order (≤128 chars). |
| order_description | string | optional | Human-readable description (≤255 chars). |
| ipn_callback_url | string | optional | URL to receive status callbacks for this payment. |
Payment gateway · list payments
Lists gateway payments, most recent first.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Max rows (1 to 200). Default 50. |
| offset | integer | optional | Rows to skip. Default 0. |
| status | string | optional | Filter, e.g. confirmed, waiting. |
Payment gateway · get a payment
Retrieves the current status of a single gateway payment.
Payment gateway · balance
Your gateway balance (customer payments received, net of fees) and lifetime totals. This balance is what you draw from when creating a payout.
Payment gateway · create a payout
Withdraws funds from your gateway balance to a crypto address you control. The amount is reserved at once, the payout is reviewed and then sent on-chain. A network fee is withheld: the response shows it in network_fee and the amount that will arrive in net_amount. Returns 201.
Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
| amount_usd | number | required | Amount to withdraw from your gateway balance, in USD. |
| network | string | required | Network to send on, e.g. trc20, bsc, polygon, eth. |
| address | string | required | Destination wallet address. |
| currency | string | optional | Asset to send. Default usdt. |
Payment gateway · list payouts
Lists your payouts, most recent first. Supports limit (1 to 200, default 50) and offset.
Webhooks
Register an HTTPS endpoint (with POST /webhooks or on the Webhooks page of the cabinet) to receive events as they happen. Each event is a POST with a JSON body, sent once to every active endpoint subscribed to it.
Event types
Subscribe with exact names, a family mask (card.*, topup.*, balance.*, payment.*, payout.*) or * for everything. Unknown names are rejected with 400 BAD_REQUEST.
card.transactionThe main card event. A purchase, authorisation, decline, reversal or refund on a card. See the payload below.card.paidA card paid with crypto: the payment confirmed, the card is being issued (status: "paid_pending_issue").card.issuedThe card is issued and ready for top-ups. Read the card details with GET /cards/{card_id}.card.failedThe card could not be issued. Carries reason, and refunded_usd when the price was returned to your balance.card.returnedFunds were returned from a card to your account balance (amount_returned, balance_usd).topup.completedA top-up was credited to the card (topup_id, amount_usd, amount_on_card, status: "credited").topup.paidA crypto top-up was paid but could not be credited to the card at once (status: "paid_pending_credit"). Check it with GET /topups/{topup_id}.topup.failedReserved for top-ups that are not credited. You can subscribe to it now; to see the state of any top-up, use GET /topups/{topup_id}.balance.creditedA crypto deposit was credited to your account balance (amount_usd credited, amount_paid, network_fee, balance_usd).card.otpA one-time verification code for a card. data.kind is payment_3ds (3-D Secure code for an online purchase, sent automatically) or wallet_provision (Apple Pay / Google Pay activation, after you arm the card). See verification codes and 3-D Secure.payment.confirmedA payment gateway charge was paid and credited to your gateway balance.payout.pendingA gateway payout was requested and is waiting for review.payout.completedA gateway payout was sent on-chain (tx_hash).payout.failedA gateway payout was rejected (status: "rejected", reason).Envelope
Every event has the same envelope: id (unique event id, evt_...), type, created (unix seconds) and data. Events in the sandbox carry "sandbox": true inside data.
| Field | Meaning |
|---|---|
| amount | Always positive. Use is_credit for the direction: true means money came back to the card (refund). |
| status | pending (authorised, funds reserved), success (settled), failed (declined, see decline_reason), reversed (authorisation released). |
| is_final / update | A purchase usually arrives first as pending; when it settles or is declined you get a second event for the same transaction_id with update: true and the final status. |
| type / group | purchase or refund. |
| occurred_at | UTC, ISO 8601. |
| balance | Card balance read right before the event, or null if it could not be read. |
Verifying signatures
Every delivery has these headers:
| X-Izipay-Signature | Hex HMAC-SHA256 of the raw request body, keyed with the signing_secret of the webhook. Verify it before trusting the event, on the raw bytes, before any JSON parsing. |
| X-Izipay-Timestamp | Unix time when the event was created (the same as created). It is not part of the signature; you can use it to drop very old events. |
| X-Izipay-Event | Event type. |
| X-Izipay-Delivery-Id | Id of this delivery to this endpoint. |
| X-Izipay-Attempt | Attempt number, from 1. |
Deduplicate by the event id. A retry sends the same event with the same id, so store the ids you have processed and skip repeats.
Delivery and retries
A delivery succeeds on any 2xx answer within 15 seconds. Redirects are not followed. A failed delivery is tried 5 times in total: at once, then 1 minute, 5 minutes, 30 minutes and 2 hours after the previous failure. After the fifth failure the delivery stops. Answer quickly with 200 and do the heavy work afterwards. You can resend a failed delivery from the cabinet (Webhooks page).
Register a webhook
Body: url (required, public https:// address) and events (optional array, default ["*"]). Returns 201 with the signing_secret. The secret is shown only in this response: store it safely. A test key of a live account cannot manage webhooks (403 TEST_KEY_NOT_ALLOWED); use your live key.
List webhooks
Returns the webhook endpoints registered on your account.
Delete a webhook
Disables the webhook. No new events are sent to it, and deliveries still waiting for a retry are cancelled. To receive events again, register the URL again (you get a new signing_secret). Deleting a webhook that is already disabled returns success.
Error codes
Errors return a JSON body with success: false, a machine-readable error.code and a readable error.message. Some errors add error.details. Build your logic on code, not on the message text.
Request and access
| HTTP | Code | What to do |
|---|---|---|
| 400 | BAD_REQUEST | A parameter is missing or invalid, or the body is not valid JSON. Fix the request; message says what is wrong. |
| 401 | UNAUTHORIZED | Missing, invalid or revoked API key, or a bad request signature. Check the key and the signing headers. |
| 403 | FORBIDDEN | Account not active, IP address not allowed, or a key used on the wrong domain. Contact support if unexpected. |
| 403 | ACCOUNT_RESTRICTED | Your account can withdraw and read, but cannot issue or top up cards. Contact support. |
| 403 | TEST_KEY_NOT_ALLOWED | A test key of a live account tried to manage webhooks. Use the live key. |
| 404 | NOT_FOUND | The card, top-up or webhook does not exist in this mode (test keys see only test data). |
| 404 | ROUTE_NOT_FOUND | Wrong method or path. Check the URL against this reference. |
| 410 | POOL_DISCONTINUED | The prepaid pool is discontinued. Fund your account balance instead. |
| 429 | RATE_LIMITED | Too many requests. Wait the number of seconds in the Retry-After header, then retry. |
| 429 | DAILY_LIMIT_REACHED | Your daily card issue limit is used up. Retry tomorrow (UTC) or ask support to raise it. |
Money and cards
| HTTP | Code | What to do |
|---|---|---|
| 402 | INSUFFICIENT_BALANCE | Not enough account balance. Fund your balance, then retry. |
| 402 | INSUFFICIENT_CARD_BALANCE | A return asks for more than the card has. Use error.details.card_balance or "all". |
| 400 | CARD_EMPTY | The card has nothing to return. |
| 409 | CARD_NOT_READY | The card is not issued yet. Wait for card.issued. |
| 409 | CARD_BUSY | Another operation on this card is running. Retry in a few seconds. |
| 409 | IN_PROGRESS | A request with the same idempotency key is still running. Retry in a few seconds with the same key. |
| 409 | DUPLICATE_REQUEST | The same balance top-up was made on this card in the last 90 seconds. Check it before sending again. |
| 409 | IDEMPOTENCY_KEY_REUSED | The key was used for a transfer between other cards. Use a new key. |
| 409 | TOPUP_PENDING_REVIEW | A top-up on this card is being verified. Do not retry with a new key and do not top up this card until support confirms the result (up to 24 hours). |
| 202 | RETURN_PENDING_REVIEW | A return is being verified. Do not repeat it; check the card and your balance, or contact support. |
| 403 | CARD_LOCKED_BY_SUPPORT | The card was frozen by our team. Contact support. |
| 403 | CARDHOLDER_MISMATCH | A transfer between cards of different cardholders. Contact support if you need it. |
| 429 | TOO_MANY_OPEN_TOPUPS | Too many unpaid crypto top-ups. Pay one or wait until they expire (24 hours), or top up from your balance. |
| 422 | TRANSFER_FAILED | The transfer was not made. Read message and retry later. |
| 502 | ISSUER_ERROR | The card issuer refused the operation. A balance charge is returned to your balance. Retry in a few minutes. |
| 502 | RETURN_FAILED, FREEZE_FAILED, CARD_BALANCE_UNAVAILABLE | Nothing was changed. Retry. |
| 502 | PAYMENT_PROVIDER_ERROR | A crypto deposit address could not be created. Retry, or pay from balance. |
| 503 | CARD_SERVICE_UNAVAILABLE, NETWORK_UNAVAILABLE | Temporarily unavailable. Retry later, or use another network. |
| 400 | NOT_SUPPORTED | The card does not support this operation (for example a wallet code on a card without Apple Pay). |
| 500 | INTERNAL_ERROR, TEMPORARY_ERROR | Unexpected error; nothing was charged when the message says so. Retry with backoff and the same idempotency key. |
Sandbox codes are listed in Sandbox. The payment gateway can also return DUPLICATE_PAYOUT (409), too_many_open_payments (429) and network_busy (503).
Rate limits
Each account has a per-minute request limit and a daily card issue limit. Both are shown in GET /balance under limits and can be raised on request.
Over the per-minute limit you get 429 RATE_LIMITED with a Retry-After header (seconds). Over the daily limit you get 429 DAILY_LIMIT_REACHED. Test keys also have a limit of 60 requests per minute and 3,000 per day. Need more headroom? Contact us.
Health check
Needs no API key. Use it for monitoring.