Cross-border payouts
Pay a person or a business abroad, in their local currency, from your own USDC balance, or (once KwiikPay has switched it on for you) from your own GBP, EUR or USD balance.
This is for business customers, paying for themselves or (once KwiikPay has switched it on for you) for their own end customers. It is switched on per customer by KwiikPay staff: until your account is switched on, every route here answers 404 cross_border_not_enabled, and so does a key that was not created with the cross-border scopes (the two cases look the same on purpose). Ask your KwiikPay contact to switch your account on. Paying for your end customers is a further switch: see Paying for an end customer.
Every route is under /api/v1/partner/customers/{customerId}/cross-border/..., and customerId must be the customer your key belongs to (or, once paying for end customers is switched on for you, one of your own end customers: see below). All bodies and fields are snake_case. Successful answers use the usual envelope { "success": true, "status_code": 200, "message": "...", "data": { ... } }.
What it does
Your business pays a person or a business abroad, in their local currency, from the USDC balance your KwiikPay account holds. You do not need a bank account in the destination country. A payment spends USDC you already hold.
The flow is always the same:
- Read the corridors you can use, and the fields a recipient needs for one route.
- Save the recipient. A new recipient is reviewed by our team before it can be paid. You can follow its status by polling or by webhook.
- When the recipient is
ready, ask for a quote. A quote lasts about 30 seconds. - Pay the quote. Follow the payment by polling or by webhook.
Unless paying for end customers is switched on for you, you can only pay for your own account, and an end customer's id (a sub-customer you onboarded) answers 404 on these routes.
What you must know before you build
- Your customer holds USDC. A payment spends USDC from your balance. Your balance must cover the quote, the allowance for price movement and our fee. The quote states each figure.
- USDC amounts are decimal strings with six places next to the asset:
{ "amount": "25.500000", "asset": "USDC", "decimals": 6 }. They are not integer minor units, and not two-decimal. Do not parse them as the fiat amounts of the bank routes. Destination amounts are decimal strings in the destination currency, for example"2500". - A new recipient needs a review before it can be paid. The status you see is
under_review,ready,not_acceptedorneeds_details. We never say why a recipient is under review.needs_detailsis the only status you can act on: save the recipient again with its details. - A quote lasts about 30 seconds. Never poll for a price. If the outcome of a payment request is uncertain, read the payment (
GET payments/{id}) or list payments. Never create a new quote and pay again while a payment isprocessing. - Every write needs an
Idempotency-Keyheader. The same key with the same body returns the same answer. The same key with a different body is409 idempotency_key_reused. - Fees: the quote shows our fee (
kwiikpay_fee) and the network fee (network_fee, already inside the source amount) as separate rows. A payment shows what washeld, what wasdebitedand what wasreleased. - A quote and a payment can name a different source:
source_currencyisUSDC(the default: leave it out and everything above is exactly as written) orGBP,EUR,USD. Paying from GBP, EUR or USD is separate from the cross-border switch and is also switched on per customer. See Paying from a GBP, EUR or USD balance.
Scopes
| Scope | Allows |
|---|---|
cross-border:read |
Corridors, recipient fields, reading recipients, reading payments |
cross-border-recipients:write |
Saving and removing recipients |
cross-border-payments:write |
Asking for a quote and paying it |
cross_border:read, cross_border:recipients:write and cross_border:payments:write are accepted spellings of the same scopes. A key that can pay cannot add a recipient, and a key that can add a recipient cannot pay it. Use a key created by the customer that pays: a key for the whole tenant is refused with 403 cross_border_subject_key_required.
Create the key in your dashboard (Settings, API). The three cross-border scopes appear there only once KwiikPay has switched your account on, and a request to create a key with them before that is refused with a plain message. A key that lacks the scope a route needs is answered with 404 cross_border_not_enabled, not 403.
Limits
| Route | Limit |
|---|---|
GET recipient-requirements |
30 a minute |
POST recipients |
20 a minute, and 100 new recipients in 24 hours (429 cross_border_recipient_limit_reached; reusing a saved recipient is not counted) |
POST quotes |
60 a minute |
| Others | The usual 600 a minute |
Routes
GET corridors
?country=NG¤cy=NGN (both optional).
{
"corridors": [
{
"country": "NG", "currency": "NGN", "method": "BANK-TRANSFER",
"recipient_types": ["BUSINESS", "INDIVIDUAL"],
"amount_limits": { "min": "2600", "max": "30000000", "currency": "NGN" }
}
],
"purposes": [ { "code": "PMT001", "label": "PMT001" } ],
"default_purpose": "PMT001"
}
Only routes switched on for you are listed.
GET recipient-requirements
?country=NG¤cy=NGN&method=BANK-TRANSFER&recipient_type=INDIVIDUAL
{
"country": "NG", "currency": "NGN", "method": "BANK-TRANSFER", "recipient_type": "INDIVIDUAL",
"fields": [
{ "name": "RECIPIENT_LEGAL_NAME", "group": "account", "type": "TEXT", "required": true, "values": null },
{ "name": "BANK_NAME", "group": "account", "type": "TEXT", "required": true, "values": ["Bank A", "Bank B"] },
{ "name": "ACCOUNT_NUMBER", "group": "account", "type": "TEXT", "required": true, "values": null },
{ "name": "BENEFICIARY_ADDRESS", "group": "travel_rule", "type": "ADDRESS", "required": true, "values": null }
],
"schema_hash": "9f3b2c1d8a7e6054",
"cached_until": "2026-11-13T12:05:00+00:00"
}
The list is kept for a few minutes (cached_until). schema_hash changes when the fields change. A field with values must be one of them. An ADDRESS field is sent in the address object of the recipient.
POST recipients
{
"country": "NG", "currency": "NGN", "method": "BANK-TRANSFER", "recipient_type": "INDIVIDUAL",
"fields": { "RECIPIENT_LEGAL_NAME": "Jane Doe", "BANK_NAME": "Bank A", "ACCOUNT_NUMBER": "0123456789" },
"address": { "street": "1 Marina", "city": "Lagos", "state_province": null, "postal_code": null, "country": "NG" }
}
Answer:
{
"recipient": {
"id": "6f1c0a52-0000-0000-0000-000000000001", "status": "under_review", "ready_to_pay": false,
"display_name": "Jane Doe", "recipient_type": "INDIVIDUAL", "country": "NG", "currency": "NGN",
"method": "BANK-TRANSFER", "masked_account": "****6789",
"created_at": "2026-11-13T12:00:00+00:00", "updated_at": "2026-11-13T12:00:00+00:00"
},
"reused": false
}
Saving the same recipient again returns it with reused: true; it keeps its review, and gains any travel-rule values it lacked. A property the request does not define is refused (422 cross_border_request_invalid, issue code unknown_field). A removed recipient cannot be saved again here: 409 cross_border_recipient_removed.
GET recipients, GET recipients/
GET recipients?country=NG&limit=100&page=1 returns { "recipients": [...], "pagination": { "current_page", "last_page", "per_page", "total" } }, newest change first. Removed recipients are not listed. DELETE answers { "recipient_id": "...", "removed": true }.
POST quotes
{ "recipient_id": "6f1c0a52-0000-0000-0000-000000000001", "destination_amount": "2500", "reference": "invoice-1" }
Send only recipient_id. The route comes from the recipient. Typed recipient details are refused.
{
"quote": {
"id": "b2e4d1c0-0000-0000-0000-000000000002", "recipient_id": "6f1c0a52-0000-0000-0000-000000000001",
"expires_at": "2026-11-13T12:00:30+00:00", "replayed": false,
"destination": { "amount": "2500", "currency": "NGN", "country": "NG", "method": "BANK-TRANSFER" },
"rate": "1600.5",
"source": { "amount": { "amount": "25.500000", "asset": "USDC", "decimals": 6 }, "max_amount": { "amount": "25.755000", "asset": "USDC", "decimals": 6 } },
"fees": {
"kwiikpay_fee": { "amount": "10.255000", "asset": "USDC", "decimals": 6 },
"network_fee": { "amount": "0.500000", "asset": "USDC", "decimals": 6 },
"network_fee_included_in_source": true
},
"total_debit": { "amount": "35.755000", "asset": "USDC", "decimals": 6 },
"max_total_debit": { "amount": "36.010000", "asset": "USDC", "decimals": 6 },
"settlement_estimate": { "min": 1, "max": 5, "unit": "minutes" }
}
}
total_debit is source plus our fee. max_total_debit is the most that is held until the payment settles; whatever is not pulled is released.
source_currency is optional (USDC, GBP, EUR or USD). Omitted, or USDC, the quote is the one above, with no extra field.
POST payments
{ "quote_id": "b2e4d1c0-0000-0000-0000-000000000002", "recipient_id": "6f1c0a52-0000-0000-0000-000000000001", "purpose": "PMT001", "reference": "invoice-1" }
recipient_id must be the recipient the quote was made for. transparency is optional; only { "purpose": "...", "relationship": "OwnFunds" } or "NotProvided" is accepted, because you pay from your own balance.
{
"payment": {
"id": "c3a5e2d1-0000-0000-0000-000000000003", "quote_id": "b2e4d1c0-0000-0000-0000-000000000002",
"recipient_id": "6f1c0a52-0000-0000-0000-000000000001", "status": "processing", "failure_code": null,
"destination": { "amount": "2500", "currency": "NGN", "country": "NG", "method": "BANK-TRANSFER" },
"quoted_source": { "amount": "25.500000", "asset": "USDC", "decimals": 6 },
"kwiikpay_fee": { "amount": "10.255000", "asset": "USDC", "decimals": 6 },
"held": { "amount": "36.010000", "asset": "USDC", "decimals": 6 },
"debited": null, "released": null, "reference": "invoice-1",
"created_at": "2026-11-13T12:00:10+00:00", "submitted_at": "2026-11-13T12:00:11+00:00", "completed_at": null,
"updated_at": "2026-11-13T12:00:11+00:00"
}
}
GET payments, GET payments/
GET payments?status=processing&limit=100&page=1. Each payment has the shape above.
| Status | Meaning |
|---|---|
processing |
Submitted; on its way. Includes the first moments while we collect the USDC from your balance |
under_review |
Held for a check by our team; no action from you. A payment whose USDC movement we are still confirming also reads under_review, never failed |
completed |
Paid. debited and released are set |
failed |
Not completed (failure_code: payment_refused). Normally nothing was debited and everything held was released. If the payment network took the funds and then returned them short, the amount it kept is in debited and the rest of what was held is in released |
returned |
The payment was sent and then sent back to us |
held = debited + released once a payment has completed or failed.
Paying from a GBP, EUR or USD balance
A business can pay a recipient abroad from its own GBP, EUR or USD balance instead of USDC. We convert the money you pay into USDC for you, send the payout, and anything left over comes back to you as USDC.
- Business customers, paying for themselves, from their own funds. It is switched on per customer, and per currency, by KwiikPay. For a customer it is not switched on for, a request with
source_currencyGBP, EUR or USD answers exactly404 cross_border_not_enabled, the same as a customer who is not switched on for cross-border payouts. Ask your KwiikPay contact. - One request shape. The recipient is saved first, as always. Quote with
source_currency, then pay the quote with the usualPOST payments. Nothing else in the request changes. A funded payment is for the saved recipient the quote was made for. - One KwiikPay fee, already inside the price. We add no separate fee for the conversion. The price carries a small allowance for the market moving between the quote and the conversion: whatever of it is not used comes back as USDC.
- The quote is honoured until
expires_at(about 30 seconds). You are debited the fixedfunding.amountin your own currency. The USDC bought can differ slightly because the conversion fills at the market rate, which is what the allowance is for. If the price moves by more than the allowance before we can send, we do not send: the USDC comes back to you. - Leftovers and refunds are always USDC. Unused allowance after a payout, and everything if the payout is not made or is returned, come back to your USDC wallet on Ethereum, never as GBP, EUR or USD. A refund is not a status: it is the
refundobject. Converting it back is done in your dashboard;refund.convert_back_availabletells you when the USDC is in the wallet. - The conversion is not instant: it waits for your money to reach us, which is usually quicker for GBP and EUR than for a USD bank wire.
settlement_estimatecovers the payout itself, not the conversion. - A funded payment needs a USDC wallet to send leftovers to. If you have none we start setting one up and answer
409 funding_wallet_setting_up(nothing was taken): try again in a minute.
The quote adds:
"funding": {
"currency": "GBP", "amount": "29.01", "rate": "0.78",
"usdc_bought": { "amount": "37.190000", "asset": "USDC", "decimals": 6 },
"price_movement_allowance": { "amount": "0.180000", "asset": "USDC", "decimals": 6 },
"kwiikpay_fee": { "amount": "10.255000", "asset": "USDC", "decimals": 6 }
},
"composite_rate": "86.17718"
funding.amount is what is debited, in funding.currency: usdc_bought at funding.rate, rounded up to the cent (in the example, 37.19 x 0.78 = 29.01). funding.rate is units of your currency per 1 USDC on the conversion, indicative. usdc_bought is everything the conversion buys: the payout and its price-movement buffer, our fee, the allowance and the cost of delivering the USDC to us. Whatever of it the payout does not use comes back as USDC, so price_movement_allowance is only the part of that margin sized for the market moving. composite_rate is the indicative destination currency per 1 unit of your currency. source, fees, total_debit and max_total_debit keep describing the USDC leg exactly as above, and on the quote fees.kwiikpay_fee is the same single fee as funding.kwiikpay_fee.
The payment adds:
"funding": { "currency": "GBP", "amount": "29.01", "status": "delivered", "delivered_at": "2026-11-17T12:03:00+00:00" },
"refund": { "reason": "unused_allowance", "status": "pending", "amount": { "amount": "0.180000", "asset": "USDC", "decimals": 6 }, "convert_back_available": false }
idis the id of the funded payment, the onePOST paymentsreturned. Read it withGET payments/{id}, find it once inGET payments, and match it in webhooks (payment_id,resourceIdandquote_idare the ids you were given). You never see any other id for it.statusis the usual five words. While we convert and get the payout ready it isprocessing. If our team has to look at it,under_review. When the payout is paid,completed. If it is not made,failedwithfailure_codefunding_not_converted(your money was never converted) orfunding_returned_as_usdc(the payout was not made and your money is coming back as USDC). If the recipient's bank sends it back,returned.funding.statussays where the money is:converting,converted,delivered,sending,completed,returning,returned,not_convertedorunder_review.refundappears once USDC is owed back.reasonisunused_allowance(the payout was made and some of the conversion was left),not_sent(the payout was not made, so the USDC comes back) orreturned(the recipient's bank sent it back).statusispendingorreturned_to_wallet.amountis null until it is known.quoted_source,kwiikpay_fee,held,debitedandreleaseddescribe the USDC leg bought for the payment, computed as for any payment above. What you paid isfunding.amount.kwiikpay_feeis the fee of the payout as it was made: it is priced when the payout is prepared, so it can differ slightly from the quote's fee if the price moved (the quote id you were given isquote_id). A payout that ended without ever reaching a payment (not converted, or sent back before it was made) showsheldas 0 and nodebitedorreleased; until thenheldis the most the quote reserved.- A payment we are still confirming reads
under_review, like any payment: if the payout failed but the movement of its USDC is not yet resolved, we do not say that the money is coming back until we can. - Idempotency works as it does today. The same
Idempotency-Keywith the same body returns the same payment; a new key on a quote that is already being paid is409 cross_border_quote_already_used. - Reading a payment does not depend on the GBP, EUR and USD switch. A payment that was started keeps going and keeps being readable if that switch is later turned off.
Paying for an end customer
A business can pay a recipient abroad for one of its own end customers, from its own balance: its USDC, or its GBP, EUR or USD as above. You are the payer: your balance is the one held and debited, your limits and your fee apply, and any refund or leftover comes back to you as USDC. The end customer is the originator of the payment: we send its name, address and details from the identity checks KwiikPay holds, never from your request.
- It is a separate switch, off until KwiikPay has switched it on for you. Until then, and for every id that is not one of your own end customers (another customer's, a customer you did not onboard, an end customer of an end customer, an id that does not exist), the routes answer exactly the same flat
404("Customer was not found."), so an id never says whether it exists. - Use the end customer's id in the route:
/api/v1/partner/customers/{endCustomerId}/cross-border/..., with your own key. Nothing else about a request changes. The recipient belongs to the end customer: save it, list it and pay it under that route. A recipient of yours, or of another end customer, is a404 cross_border_recipient_not_foundthere, and a quote made for one end customer cannot be paid under another's route (or your own): it is404 cross_border_quote_not_found. - KwiikPay onboards every end customer. An end customer that is not onboarded and active yet answers
409 end_customer_not_verified: finish verifying them first. Nothing was held. - Reads are separate.
GET paymentsandGET payments/{id}under an end customer's route show only that end customer's payments; under your own route they show only the payments you made for yourself. A quote and a payment made for an end customer carryend_customer_id; one you made for yourself does not carry the field at all. - Disclosure.
transparencymay be left out or be{ "relationship": "DirectCustomer", "purpose": "..." }. We record the end customer as the underlying payer from our own records: you cannot name one, andOwnFundsandDownstreamCustomerare refused withcross_border_transparency_not_supported. - The end customer's name and country are the ones we have verified, never a name or country on the customer record that you supplied. If we do not yet hold them, the payment answers
422 cross_border_originator_details_required(we need this customer's verified details) and nothing is held. - A person as the end customer. Paying another person from a personal end customer (person-to-person) needs a further, separate switch and a recorded sign-off at KwiikPay. Until then it answers
422 cross_border_use_case_not_enabled. Paying a business from a personal end customer is not affected by it. - Limits. Your limits apply once to the payment. For an individual end customer, its own money-out limit is checked as well; if it cannot be checked, or the payment would pass it, nothing is sent (
422 cross_border_payment_refused). - Webhooks.
cross_border.payment.updatedgoes to you (customer_idis your own id) and addsend_customer_idfor a payment made for an end customer; it is not there for your own payments. - New recipients count against the same 100 in 24 hours, for you and all of your end customers together.
- Recipient status for an end customer is announced to you.
cross_border.recipient.updatedis also sent for the recipients of your end customers. It goes to your own endpoints:customer_idis your own id andend_customer_idis the end customer the recipient belongs to (the field is not there for your own recipients). You can still read a recipient (GET recipients/{id}under the end customer's route).
Paying for your own customers (declared senders)
A regulated business can pay a recipient abroad for its own customers, who are not onboarded with KwiikPay. You pay from your own balance; you tell us who your customer is; we send that customer to the payout network as the sender (the originator of the payment). You are the payer: your balance is the one held and debited, your limits and your fee apply, and any refund or leftover comes back to you. This is how a business that already checks its own customers pays on their behalf.
- It is a separate switch, off until KwiikPay has agreed it with you and switched it on. Until then every route below answers exactly as a path that does not exist (
404 route_not_found, the same words and shape), andsender_idin a quote or a payment is refused exactly as any other field this API does not define (422 cross_border_request_invalid, issueunknown_field). Nothing in this section changes what a request withoutsender_iddoes. - We rely on your checks. The name, date of birth and address you declare are sent as you declared them. KwiikPay does not verify them and has not checked that person or company: you have, and you answer for it. We record on every quote and payment that the sender was declared by you, and we may ask you at any time for the evidence behind a sender you declared (your identity checks of that customer). We may refuse a payment, or switch this off for you, if that evidence is not given. In this version we do not check the name of a sender against name lists; we do check its country (below).
- Your own route only. The routes below exist under your own
customerIdonly. They do not exist under an end customer's route.
Save a sender
POST senders, with an Idempotency-Key, under your own customerId like every other route here.
| Field | |
|---|---|
reference |
Required. Your own stable id for this customer, at most 100 characters. Unique among your senders that are not removed. It must be an opaque id of your own, never a name, an email address or a document number: it is kept with every payment's record and is sent back to you in answers and events. |
type |
Required. person or business. |
legal_name |
Required, at most 200 characters. A person's full name as on its identity document, or a company's registered name. |
date_of_birth |
yyyy-MM-dd. Required for a person, and refused for a business. |
address |
Required: line1 and city (required), country (required, two letters), state and postal_code (optional). |
national_id |
Optional. A person's national identification number, or a business's registration number. |
The answer is { "sender": { "sender_id", "reference", "type", "status", "created_at" }, "reused" }. We never send the name, date of birth, address or national id back. status is ready or removed; we keep other words for a later version, and they are not used yet.
- The same
referencewith the same details returns the sender you saved (reused: true). The samereferencewith different details is409 cross_border_sender_reference_conflict: a sender never changes. Remove it and save a new one. - The country is checked when you save, and again each time you use the sender on a quote or a payment. A sender in a country we do not accept is
422 cross_border_sender_country_not_accepted; nothing is saved when you save it, and nothing is held when you use it. If we add a country later, a sender you saved before in that country stops being usable (you can remove it). - Limits. Saving a sender is limited to 20 a minute, counted on its own (not together with saving a recipient). At most 100 new senders can be saved in 24 hours (
429 cross_border_sender_limit_reached, withRetry-After); saving a sender you already saved does not count. - Fields we do not define are refused (
422 cross_border_request_invalid, withissues[]); so is a field that is not valid.
Read and remove
GET senderslists your senders that are not removed (limit1 to 200,pagefrom 1), newest first.GET senders/{senderId}returns one, removed ones included (statusremoved). Another business's sender, or one that does not exist, is404 cross_border_sender_not_found.DELETE senders/{senderId}removes a sender, with anIdempotency-Key. A removed sender cannot be used on a new quote or payment, and itsreferencecan be used again. A payment already made with it keeps its record.
Quote and pay with a sender
Add sender_id to POST quotes and to POST payments, as well as the fields you send today. Nothing else changes: the recipient is one of your own saved recipients, the amount is in the recipient's currency, and the fee, the limits and the checks are yours.
- The sender decides the kind of payment. A
businesssender paying a business is business to business; apersonsender paying a person is person to person, which needs its own switch and a recorded sign-off at KwiikPay: until then it answers422 cross_border_use_case_not_enabled. Apersonsender paying a business is not affected. - A quote is bound to its sender. A quote made for one sender cannot be paid with another sender, or with none, and a quote made without a sender cannot be paid with one: each is
404 cross_border_quote_not_found. - What we send to the payout network as the sender is the name, country and address you declared; the date of birth of a person when the route asks for it; the national id (for a business, its registration number) when the route asks for it and you gave one; and our id for the sender as its account number. Nothing else is sent, and nothing is worked out for you: we never fill in a business's country or date of formation from its address, because a sender does not declare either in this version. The payment is made by you: the payer is never the sender.
- A route that needs a detail the sender does not hold is
422 cross_border_sender_details_required, andissues[]names each missing detail by the field of the sender (national_id,date_of_birth,address,legal_name;country_of_formationordate_of_formationfor a route that asks a business for it, which a sender cannot hold yet). Nothing is held. Save a fuller sender, then quote again. - A sender that is not yours, is removed, or does not exist is
404 cross_border_sender_not_found. sender_idis not used withsource_currencyother than USDC in this version: that is422 cross_border_request_invalid.- Disclosure.
transparencymay be left out or be{ "relationship": "DirectCustomer", "purpose": "..." }. We record the sender you declared as the underlying payer: you cannot name another party.OwnFundsandDownstreamCustomerare refused withcross_border_transparency_not_supported. - Reads and webhooks. A quote and a payment made with a sender carry
sender_idandsender_reference; one made without a sender does not carry either field at all.cross_border.payment.updatedaddssender_idfor such a payment (and never for another).
Events
Subscribe with the usual webhook subscription routes (the webhook scope is separate). A subscription can name these two events only once your account is switched on; before that, naming one is refused with a plain message.
| Event | When |
|---|---|
cross_border.recipient.updated |
A recipient's status changed. Data: recipient_id, customer_id, status, ready_to_pay, and end_customer_id for a recipient of one of your end customers. Published within a couple of minutes of the change |
cross_border.payment.updated |
A payment changed status, including failure. Data: payment_id, quote_id, recipient_id, customer_id, status, change, failure_code, asset, decimals, kwiikpay_fee, held, debited, released, destination_amount, destination_currency, reference, end_customer_id for a payment made for one of your end customers, and sender_id for a payment made with a sender you declared. For a payment funded from GBP, EUR or USD, payment_id (and resourceId) is the funded payment's id, and the data adds funding_status, funding_currency, funding_amount and, once known, refund_amount; its change can also be funding_converted, funding_delivered or refunded_to_balance (below) |
A funded payment announces the status changes of its payout once the payout is made (processing, under_review, completed, failed, returned). It also announces the steps around the payout, as the same event under the same payment_id. change says which step, and status stays the payout's own word:
change |
status |
funding_status |
When |
|---|---|---|---|
funding_converted |
processing |
converted |
Your GBP, EUR or USD has been converted to USDC for this payout |
funding_delivered |
processing |
delivered |
The USDC is in place and we are about to send the payout |
failed |
failed |
not_converted |
Nothing was converted, so nothing was taken (failure_code funding_not_converted) |
failed |
failed |
returning |
The payout will not be made (our tries ran out, or a check closed), and your money is coming back as USDC (failure_code funding_returned_as_usdc) |
under_review |
under_review |
under_review |
Our team has to look at the payment. This is also what any step reads while the movement of its USDC is not yet resolved, with no refund_amount and no failure code |
refunded_to_balance |
completed, failed or returned |
completed or returned |
The USDC owed back is in your USDC wallet. refund_amount says how much. A payout that was paid in full, with nothing left over, has no such step |
These steps carry the same fields as the payout, from the same facts as GET payments/{id}: held is the most the quote reserved until a payout ends without ever reaching a payment, when it is 0 with no debited or released. Each step is sent at most once, usually within seconds of it happening, and an event we could not send is not sent later.
It does not announce converting (the processing payment you were given is that), or a try that the payment network refused and we are retrying. A failed that is announced is final: it is never followed by completed. An under_review may not be followed by another event. If you miss an event, or one says under_review, read the payment (GET payments/{id}).
The envelope is { "specVersion": "kwiikpay.webhooks.v1", "eventType": "...", "tenantId": "...", "resourceId": "...", "occurredAt": "...", "correlationId": "...", "data": { ... } }. Amounts in data are decimal strings in USDC. Deliveries can repeat: dedupe on X-Webhook-Id, or key on payment_id, status and change (a payout's steps can share the first two: funding_converted, funding_delivered and the first processing are all processing, and refunded_to_balance repeats the status of the event before it).
Errors
409 and 422 answers use the envelope with data: { "code", "detail", ... }; 404 and 403 answers are flat { "title", "detail", "status", "code" }. The text is fixed and plain; match on code.
| Code | HTTP | Meaning |
|---|---|---|
cross_border_not_enabled |
404 | Not switched on for this customer, or the key lacks the cross-border scope the route needs |
cross_border_subject_key_required |
403 | A key for the whole tenant was used |
cross_border_request_invalid |
422 | Missing or unknown field (issues[]) |
cross_border_corridor_unavailable |
422 | The route is not available (reason) |
cross_border_use_case_not_enabled |
422 | This kind of payment is not available yet |
cross_border_recipient_type_required |
422 | recipient_type must be BUSINESS or INDIVIDUAL |
cross_border_recipient_invalid |
422 | Recipient details need correcting (issues[]: field, code, message) |
cross_border_recipient_not_found |
404 | Not your recipient, or removed |
cross_border_recipient_not_ready |
409 | recipient_status is under_review: pay it once its status is ready |
cross_border_recipient_rejected |
409 | The recipient was not accepted |
cross_border_recipient_removed |
409 | The recipient was removed |
cross_border_recipient_needs_details |
409 | Save the recipient again with its details |
cross_border_recipient_limit_reached |
429 | 100 new recipients in 24 hours |
cross_border_amount_outside_limits, cross_border_amount_below_minimum, cross_border_amount_above_cap |
422 | Amount not accepted |
cross_border_capacity_unavailable |
503 | We cannot take this payment now; retry later |
payments_paused |
503 | Payments are temporarily paused (flat body, Retry-After: 300). A new payment, a new recipient and a new declared sender are refused before anything is saved, held or sent; a payment already under way is not touched by this refusal, but it is not guaranteed to wait: one that is waiting for an on-chain signature may be cancelled and refunded, and a cross-border payout may be returned to your balance. Read the status of every payment that was under way, and send it again after the pause if it was returned. Retry later with the same Idempotency-Key |
payments_unavailable |
503 | Payments are briefly unavailable (flat body, Retry-After: 30). Retry in a moment |
insufficient_balance |
422 | available, required, shortfall in USDC; reason wrong_network when the USDC is not on Ethereum. For a payment from GBP, EUR or USD there are no figures and reason is fiat_balance: your balance in that currency cannot cover it |
cross_border_balance_unverifiable |
503 | Balance could not be checked; retry |
cross_border_pricing_unavailable |
422 | Pricing is not set up for your account |
cross_border_originator_details_required |
422 | We lack details about your account; contact support |
cross_border_purpose_not_allowed |
422 | Use a code from corridors |
cross_border_quote_not_found |
404 | Not your quote |
cross_border_quote_expired |
409 | Ask for a fresh quote |
cross_border_quote_already_used |
409 | The quote was paid or is being paid; read your payments |
idempotency_key_reused |
409 | The key was used for a different request |
cross_border_quote_unavailable |
503 | Try again in a moment (retryable) |
cross_border_payment_refused |
422 | The payment was refused before it was sent; nothing was moved |
cross_border_transparency_not_supported |
422 | Declare OwnFunds or NotProvided (for an end customer, or with a sender_id: leave it out or DirectCustomer) |
cross_border_sender_not_found |
404 | Not your sender, removed, or it does not exist |
cross_border_sender_country_not_accepted |
422 | The country of the sender is not accepted; nothing was saved or held |
cross_border_sender_reference_conflict |
409 | The reference is saved with different details; remove that sender and save a new one |
cross_border_sender_limit_reached |
429 | 100 new senders in 24 hours |
cross_border_sender_details_required |
422 | The route needs a detail the sender does not hold (issues[] names it); save a fuller sender. Nothing was held |
end_customer_not_verified |
409 | The end customer in the route is yours but not onboarded and active yet; finish verifying them. Nothing was held |
cross_border_payment_not_found |
404 | Not your payment |
cross_border_unavailable |
503 | Cross-border payments are not available for this account right now; contact support |
cross_border_request_failed |
500 | Something failed on our side; nothing was sent; retry (retryable) |
kyc_or_kyb_not_approved |
409 | Your account is not approved |
funding_not_available |
422 | Paying from this currency is not available for this account right now; nothing was taken |
funding_wallet_setting_up |
409 | We are setting up the USDC wallet leftovers come back to; try again in a minute (retryable) |
funding_needs_check |
409 | The payment needs a check by our team before it can be sent; nothing was taken |
funding_not_converted |
422 / failure_code |
The conversion could not be started, so nothing was taken. As a failure_code: the payment failed before anything was converted |
funding_returned_as_usdc |
failure_code |
The payout was not made and your money is coming back as USDC |