OnLink

Errors

One error envelope for every refusal, the codes you branch on, and what is worth retrying.

Every partner-plane failure returns the same JSON shape.

{
  "statusCode": 409,
  "message": "QUOTE_EXPIRED_OR_CONSUMED",
  "error": "Conflict",
  "requestId": "req-1756512000000-a1b2c3d"
}

Three fields are appended when they apply:

  • errorCode — present on some refusals, absent on most. On a 403 insufficient_scope it names the scope your credential is missing.
  • details — structured context beside a short code, on 4xx refusals only: details.attemptsRemaining, details.status, details.field and the like. The catalogue below names each one where it exists.
  • retryAfterSeconds — present only when a refusal supplies one. The rate limit does not: its 429 carries the wait in the Retry-After-partner header and nothing in the body.

Branch on message, not on errorCode

The stable short codes arrive in message. errorCode is only set on some refusals, so a client that switches on it silently falls through to a default branch for most of the catalogue. Not every message is a short code: a validation failure reads Validation failed on: <fields>, a path id that is not a UUID reads Validation failed (uuid is expected), and a handful of refusals on quotes, orders, wallets and approvers read as a sentence — listed under Refusals that read as sentences. Match those verbatim rather than assuming every message is an upper-snake-case short code.

requestId is on every error body and is also returned as the X-Request-Id header. It is the only handle that resolves to your request in our logs — log it on every non-2xx response and quote it when you contact us.

Status codes

StatusMeaningRetry?
202Accepted. The order exists; it has not settled.—
400The request failed validation — the body, a query parameter, or a path id that is not a UUID.No. Fix the request.
401Authentication failed. Uniform, with no reason given, bar a multipart upload's body digest.No. See below.
403Your credential is authenticated but not authorised for this endpoint, or a code is locked out.No. Ask us for the scope.
404No such route, or no such order, transfer, send, collection or wallet for your partner account.No.
409A conflict with existing state — a spent quote, a reused reference, a hash already attached.Only after changing something.
413The request body is larger than we accept.No. Send a smaller body.
422The request breaches one of your caps, or your balance cannot cover it.No. Fix the amount, or fund the balance, then try again.
429Rate limited, or a confirmation code was asked for again too soon.Yes, after the wait the response names.
500Something went wrong while handling the request. The message is deliberately generic.Yes, with backoff and the same partnerReference. Quote requestId.
502A service we depend on answered with an error.Yes, with backoff.
503Your account readiness, the settlement account, or a platform-wide control is not ready right now.Depends on the code. See below.
504A service we depend on did not answer in time.Yes, with backoff. Check the order or transfer before creating again.

401 is deliberately uninformative

A bad signature, an expired timestamp, a replayed nonce and an unknown key all return the same body:

{
  "statusCode": 401,
  "message": "An error occurred",
  "error": "unauthorized",
  "requestId": "req-1756512061412-9f4e2b7"
}

Distinguishing them would tell an attacker which half of a guess was right. Debug against the worked example on the authentication page instead.

Three refusals are named, because each describes your own request and says nothing about any account: a multipart upload (POST /v1/customers/{id}/kyc) whose X-Body-SHA256 header is absent, malformed, or not the digest of the body. Each is a 401 with the reason in message and in errorCode:

messageMeaningRetry as sent?
body_digest_missingThere is no X-Body-SHA256 header on the multipart request.No, not as sent. Send the header with the digest you signed.
body_digest_malformedX-Body-SHA256 is present but is not 64 lowercase hex characters.No, not as sent. Send the plain lowercase hex digest, exactly as you signed it.
body_digest_mismatchThe body we received does not hash to the X-Body-SHA256 you signed. Nothing was saved.Yes, after fixing it. Serialise the form once, send those bytes, and sign with a fresh nonce.

See Signing a multipart upload.

429 carries its own backoff

{
  "statusCode": 429,
  "message": "Too Many Requests",
  "error": "Too Many Requests",
  "requestId": "req-1756512184903-7c1d5a0"
}

Read the wait, in seconds, from the Retry-After-partner header. The limit is enforced by a throttler named partner, and the header carries that name. The body has no retryAfterSeconds on this refusal, so a client that looks only at the body backs off for nothing and is refused again. The limit is 120 requests per minute per partner across all your credentials — see Caps and limits.

The code catalogue

These are the values that arrive in message. Branch on them.

Every row carries the code, the status it comes back on, what it means and what most often causes it, and what to do. Read the last column first: it opens with the retry verdict, because that is the decision your code has to make before anything else.

Quotes

CodeStatusWhat it meansWhat to do
quoteId not found.404No quote with that id belongs to you. This one is a sentence rather than a stable short code — match it exactly as shown, trailing period included. Usually a quoteId copied wrong, or one belonging to a different partner account. An expired quote is QUOTE_EXPIRED_OR_CONSUMED, not this.No. Take a fresh quote.
QUOTE_EXPIRED_OR_CONSUMED409The quote has expired or already made an order. Usually a user who hesitated past expiresAt, or a create retried on a spent quote.No. Take a fresh quote — the same one refuses forever.
QUOTE_SIDE_MISMATCH409A buy quote was presented to the sell route, or the reverse. Usually one code path builds the quote and another picks the route.No. Quote the side you are creating, then retry.
USDT_SEND_BELOW_MINIMUM422POST /v1/quotes for a buy delivered to your own wallet came to less than 5 USDT, the least we can send on-chain. A buy credited to your managed USDT balance has no minimum. The same code is returned again at order create and by a USDT send.No, not at this size. Quote at least 5.00 USDT.
USDT_SEND_AMOUNT_PRECISION422POST /v1/quotes for a buy delivered to your own wallet named a usdtAmount with more than 2 decimal places, which we cannot send on-chain. A quote named by kesAmount never trips this: its USDT is rounded down to 2 places for you.No. Quote with at most 2 decimal places, or use kesAmount.

Fees

CodeStatusWhat it meansWhat to do
FEE_EXCEEDS_PROCEEDS422On a sell, the fee equals or exceeds the KES the trade would pay out, so there would be nothing left to send you. Reached on very small sells against a flat fee — see Fees.No, not at this size. Quote a larger amount. Retrying the same amount refuses identically, and a buy of the same size still prices.
FEE_PRICING_INVALID503Your stored pricing cannot be applied, so we will not guess at a fee. Ours to fix, not yours.Yes, after we fix it. Nothing about your request caused this — contact us; retrying sooner gets the same answer.

Orders

CodeStatusWhat it meansWhat to do
ORDER_EXCEEDS_PER_ORDER_CAP422This one order is above the per-order ceiling set for your account.No. Split it, or ask us to review the cap.
ORDER_EXCEEDS_DAILY_CAP422It would breach your rolling 24-hour total. Caused by volume earlier in the window, not by this order alone. The window now counts committed USDT sends as well as orders and transfers.Not yet. Wait for the window to roll, or talk to us.
ORDER_DAILY_CAP_RATE_UNAVAILABLE503The daily-cap check needed a live market rate to convert your committed USDT sends into KES, and none was available. Only affects an account with committed sends outstanding.Yes. Retry shortly.
ORDER_NOT_BUY_SIDE409No current route returns this code; it is reserved. GET /v1/orders/{id} returns either side's order.No. Check the orderId first.
ORDER_NOT_SELL_SIDE409A sell-only action was taken against a buy order. Usually the wrong orderId, or one handler serving both sides.No. Check the orderId first.
ORDER_NOT_AWAITING_USDT409A hash was attached to a sell order that is no longer awaiting_usdt — including one paid from your USDT balance, which leaves that status when it is created.No. Read the order; it has already moved on. See PATCH /v1/orders/{id}.
EXPECTED_AMOUNT_MISMATCH409expectedUsdtAmount on a buy order did not equal the quote's usdtAmount. Usually an amount recomputed on your side instead of read off the quote.No. Pass the quote's usdtAmount verbatim, or omit the field — it asserts, it does not set.
PARTNER_SUSPENDED409Your partner account is not active, so it cannot create orders, transfers, USDT sends or collections. A suspension, not a problem with this request.No. Contact us; retrying will not clear it.

Account provisioning

Your KES balance account — the one you fund with M-PESA or a bank transfer (see Receive money in Kenya), and the one POST /v1/orders/buy debits directly — is derived from your partner account rather than configured. These codes cover the cases where it is not yet ready.

CodeStatusWhat it meansWhat to do
PARTNER_VA_NOT_ALLOCATED503No KES balance account is linked to your partner account yet, because onboarding is not finished.No. Ask us to link a verified business, or to open one.
PARTNER_VA_ACTIVATING503The account exists but has not finished activating. It resolves on its own.Yes. The one code here worth a short retry loop.
PARTNER_VA_SUSPENDED503Your KES balance account has been suspended. A suspension, not a problem with this request.No. Contact us; retrying will not clear it.
PARTNER_NOT_FOUND404Your partner account could not be resolved. Not something your integration can cause.No. Contact us with the requestId.

Buy leg (debit-first)

POST /v1/orders/buy debits your own KES balance the instant the order is created — see Buy USDT with KES. These codes cover every way that debit can be refused, in the order the checks run.

CodeStatusMeaningWhat to do
SWAPS_DISABLED503USDT/KES orders are not enabled for your account right now.Contact us. Nothing about your request is wrong, and retrying will not clear it until the feature is enabled.
MONEY_MOVEMENT_PAUSED503All USDT/KES value movement is halted as an incident control.Do not retry in a tight loop. Wait for us to confirm the incident has cleared.
USDT_SEND_BELOW_MINIMUM422The USDT amount is below 5 USDT, the least we can send on-chain. Only for buys delivered to your own wallet; a buy credited to your managed USDT balance has no minimum. Refused when you take the quote, and again before your quote is consumed and before any KES is debited. It is the code a USDT send returns for the same limit.No, not at this size. Take a new quote for at least 5.00 USDT. The unused quote is untouched.
USDT_SEND_AMOUNT_PRECISION422The usdtAmount you named needs more than 2 decimal places, which we cannot send on-chain. Only for buys delivered to your own wallet; a buy credited to your managed USDT balance keeps all 6 places. Refused when you take the quote, and again before your quote is consumed and before any KES is debited. A quote named by kesAmount never trips this: its USDT is rounded down to 2 places for you.No. Quote with usdtAmount at no more than 2 decimal places (for example "25.50"), or name the amount with kesAmount.
TREASURY_ACCOUNT_NOT_REGISTERED503No settlement account is registered for this currency at all.Contact us with the requestId. Retrying will not clear it.
TREASURY_ACCOUNT_UNAVAILABLE503The settlement account could not take the debit. Usually this is before anything happens: your quote is not consumed and no order exists. Rarely it is our final re-check just before the debit: the order was created and rejected, the quote is spent, and nothing was debited.Retry once with the same quote and partnerReference. If the retry returns 202 with status: "rejected", it was the late case: take a fresh quote and use a new partnerReference. If it refuses again, stop and contact us with the requestId — it will not clear on its own.
KES_BALANCE_UNREADABLE503We could not read your KES balance to check it covers the order.Retry shortly. If it persists, contact us with the requestId.
INSUFFICIENT_KES_BALANCE422Your available KES balance is below the quote's kesTotalAmount (principal plus fee).Fund your KES balance, then retry — this refusal happens before your quote is consumed.
KES_DEBIT_FAILED503We did not debit you: the bank cleanly refused the debit, or we stopped before sending it. The order is normally rejected — read it to confirm.Read the order to confirm, then create a new order against a fresh quote with a new partnerReference — reusing the old one returns the same rejected order, not a fresh attempt. Do not retry this request.
KES_DEBIT_AMBIGUOUS503The KES debit result is ambiguous — we cannot tell whether it succeeded or failed, or we cannot record the outcome. Your KES balance may already have been debited. The order stays funds_reserved while we resolve it from the bank's record.Do not create a new order. The response carries no orderId: re-send the same request with the same partnerReference, which returns the existing order without a second debit, or wait for the order's webhook.

This table covers the SYNCHRONOUS refusals only

Both KES_DEBIT_FAILED and a late TREASURY_ACCOUNT_UNAVAILABLE (our own re-check, run immediately before the debit) reject the order rather than leaving it stranded, and for both of these nothing was ever taken — the bank cleanly refused the debit, or we stopped before sending it. That is true of these two codes and only these two. A rejected order you learn about later — through order.rejected or by polling — can also have been refused after the bank confirmed your debit, and then your KES was taken and is owed back. Read kesDebit.status on the order — never assume from the word "rejected" alone: failed means we hold no record that your KES was taken (contact us with the orderId if it did leave your balance), reversal_pending means it was taken and is owed back, reversed means it has been returned. See Buy USDT with KES.

Sell leg (settlement account check)

POST /v1/orders/sell checks the settlement account before it consumes your quote, so these refusals leave the quote usable — except a late TREASURY_ACCOUNT_UNAVAILABLE, described in its row below.

CodeStatusMeaningWhat to do
TREASURY_ACCOUNT_NOT_REGISTERED503No settlement account is registered for this currency at all.Contact us with the requestId. Retrying will not clear it.
TREASURY_ACCOUNT_UNAVAILABLE503Raised before your quote is consumed, or — when paying from your USDT balance — at our final re-check, in which case the order is rejected and nothing was debited.Retry once with the same partnerReference; if it returns a rejected order, take a fresh quote with a new reference.

Sell leg (USDT collection)

POST /v1/orders/sell collects the USDT from your own wallet before anything is owed to you. These codes cover every way that collection can be refused. All of them happen at create, before any KES is paid out.

CodeStatusMeaningWhat to do
CUSTOMER_WALLETS_DISABLED503Selling from your own wallet is not enabled for your account. Checked before the order is created, any wallet call and any debit: no order was created and your quote was not used.Contact us. Once it is enabled, retry with the same partnerReference and quote. Nothing about your request is wrong, and nothing was collected.
USDT_COLLECTION_FAILED503The collection was refused, or never reached the provider, so nothing was collected from your wallet. The order is now rejected.Create a new order against a fresh quote with a new partnerReference. Do not retry this request.
USDT_COLLECTION_OUTCOME_UNKNOWN503We could not confirm whether the USDT left your wallet. The order is held for us to reconcile; it is not rejected.Do not create another order or resend USDT. Read the order with GET /v1/orders/{orderId} — re-sending the same request with the same partnerReference returns it — and contact us with the requestId.
WALLET_OWNERSHIP_CHECK_FAILED503The wallet named on the order did not pass our ownership check, so no collection was attempted. Your quote is spent and the order exists in awaiting_usdt until it expires.Stop retrying and contact us with the requestId — this does not clear on its own. To try again, take a fresh quote and use a new partnerReference; reusing the old one returns the stranded order.
USDT_RAIL_NOT_CONFIGURED503Our own custody configuration for this rail is incomplete. Entirely ours, and nothing about your request caused it. Your quote is spent and the order exists in awaiting_usdt until it expires.Contact us with the requestId. Retrying will not clear it. To try again, take a fresh quote and use a new partnerReference; reusing the old one returns the stranded order.

A refused collection and an unconfirmed one are different answers

USDT_COLLECTION_FAILED means the collection was refused or never left our side, so nothing was collected and the order is rejected. When the request timed out or the connection dropped mid-flight we cannot say which way it went, so we do not reject: the order is held in review and the answer is USDT_COLLECTION_OUTCOME_UNKNOWN. A held order sends no webhook until we have reconciled it, and it does not expire on its own. Do not create another order or resend USDT while it is held.

Sell leg (USDT balance debit)

When your USDT is held as a balance with us, POST /v1/orders/sell debits that balance at create instead of collecting from a wallet. These codes cover the ways that debit can be refused. The first is a clean refusal; the other four are failures to record the debit, and they do not move the order out of awaiting_usdt.

CodeStatusMeaningWhat to do
INSUFFICIENT_USDT_BALANCE422Your available USDT balance is below the order amount. Nothing was debited. The order is now rejected, and one order.rejected webhook is sent for it.Top up your USDT balance (the depositAddress on a sell response is yours to fund), then create a new order against a fresh quote with a new partnerReference. Do not retry this request.
LEDGER_POST_FAILED503We could not record the debit against your USDT balance — a database failure or timeout while recording it. We cannot say the debit did not land. The order is created and stays awaiting_usdt.Do not create a second order. Read the order via GET /v1/orders/{orderId}; retrying with the same partnerReference returns that order. Contact us with the requestId if it does not move on.
LEDGER_SUBJECT_CONFLICT409A balance entry already exists for this order and does not match this debit. Not something your request can cause.No. Contact us with the requestId.
LEDGER_POST_REJECTED422The balance entry for this debit was refused by our own integrity checks. Ours to look into; nothing about the amount you sent is known to be wrong.No. Contact us with the requestId; retrying the same request is refused the same way.
LEDGER_NOT_APPLICABLE409Your account does not hold a USDT balance with us, so there is nothing to debit. Reached only if the account's wallet arrangement changed after the order was created.No. Contact us with the requestId.

An insufficient balance is the only one of these five that is the partner's to fix. For the other four, read the order before doing anything else: a LEDGER_POST_FAILED in particular does not tell you whether the debit landed.

Deposits and payouts

CodeStatusWhat it meansWhat to do
TX_HASH_ALREADY_ATTACHED409This order already has a different hash. Re-sending the same one is a 200, not this.No. One hash per order; it is never overwritten.
TX_HASH_ALREADY_USED409That hash is already on another of your orders. Usually one deposit meant to cover two.No. One deposit funds one order. Send another.
PAYOUT_ACCOUNT_NOT_PAYABLE409The payout account cannot take a credit right now — frozen, closed or not yet active — or the id is one you saved before 2026-10-30 that is not your own OnLink KES account (for example one with a bank code).No. If your OnLink KES account cannot take a credit right now, contact us. If you saved the id earlier, read GET /v1/payout-accounts again and use an id from it.
MPESA_PUSH_REJECTED422The bank answered and refused this request. Usually a number that is not M-PESA-registered.No. The same request cannot succeed. Fix the number.
MPESA_PUSH_UNAVAILABLE503We got no answer from the bank. The prompt may or may not have reached the payer.Carefully — see below.

These two are the failure modes of POST /v1/funding/mpesa-push, and the difference between them is the whole point of having two codes.

MPESA_PUSH_REJECTED is the bank answering. Your request was understood and declined, so retrying it unchanged will be declined again — and every attempt is a real request. The most common cause by far is a number that is not M-PESA-registered. It does not name the upstream condition: a mobile-money rail has failure modes that are ours to read and not yours to branch on, and a code that changed whenever an upstream reworded an error would be worse than one that does not.

MPESA_PUSH_UNAVAILABLE is the bank not answering, and it is genuinely ambiguous: the request may have arrived and prompted the payer before the connection failed. There is no idempotency key on this route, so an immediate retry can raise a second prompt on the same handset — and if the payer approves both, two deposits land. Prefer waiting for credit.received; retry only if no credit arrives. If it persists, send us the requestId.

Everything else that can refuse a push is a 400 on the body — including an amount above the M-PESA per-transaction limit, which is refused here rather than forwarded — or one of the account codes above. The destination is your own account and is resolved from your partner record, so there is nothing about it for you to get wrong.

403 is not one thing

A 403 from the credential checks carries no code from this catalogue, and it means one of two different refusals — read error to tell them apart. In both, message is a sentence rather than a short code:

  • insufficient_scope — your credential is authenticated but was not granted the scope this route needs. errorCode names the missing scope, and message repeats it (This credential is not authorised for this endpoint. Required scope: orders:write.), so the refusal tells you what to ask for. See Products and scopes.
  • product_not_supported — your partner account's product does not offer this route at all, whatever scopes your credential holds. This deliberately does not enumerate which products the route does accept — that would describe another product's API surface to a credential that holds none of it. Ask us rather than requesting a scope; no scope grant fixes this one.

Two other routes return a 403 of their own, and neither is a credential refusal: CONFIRMATION_LOCKED (see Confirmations) and the wallet-approval refusals under Refusals that read as sentences.

Ignore codes you do not recognise

We may add codes. Treat an unknown message on a 4xx as a non-retryable refusal, log it with its requestId, and surface it rather than retrying — the safe default when you do not know why something was refused.

Transfers

CodeStatusMeaningWhat to do
PARTNER_TRANSFERS_DISABLED503Outbound transfers are not enabled for your account.Contact us. Retrying will not clear it.
MONEY_MOVEMENT_PAUSED503All partner value movement is halted.Retry later; contact us if it persists.
TRANSFER_AMOUNT_INVALID422The amount is zero or not a positive amount with at most two decimals.Send a positive amount.
TRANSFER_CURRENCY_NOT_ENABLED422Your account cannot send this currency on any rail: USD payouts are for Collections and Remittance accounts, and a USDT Rails account sends KES only (details.currency, details.enabledCurrencies). Also returned by a batch, for the whole batch. Nothing was written.Send KES, or contact us about a Collections or Remittance account.
TRANSFER_RAIL_CURRENCY_UNSUPPORTED422The rail cannot pay this currency: USD over mpesa, pesalink or internal, GBP or EUR over anything but swift, or a foreign-currency SWIFT payout to an account in another currency (details.rail, details.currency, details.destinationCurrency).Send USD over rtgs, eft or swift, GBP or EUR over swift, to an account in that currency, or send KES.
TRANSFER_DESTINATION_INVALID422The destination does not fit the rail, or the bank could not resolve it (details.field / details.providerCode).Fix the named field; do not retry the same destination unchanged.
TRANSFER_NAME_MISMATCH422The account holder's name we resolved does not match accountName (details.resolvedName).Check the name with your payee; retry with the resolved name only if you are sure.
TRANSFER_EXCEEDS_PER_ORDER_CAP422The transfer is larger than your per-instruction ceiling (a USD, GBP or EUR transfer at its KES equivalent).Split it.
TRANSFER_EXCEEDS_DAILY_CAP422The transfer would breach your rolling 24-hour ceiling (orders, transfers and USDT sends together; USD, GBP and EUR transfers at their KES equivalent).Wait for the window to roll, or talk to us.
TRANSFER_INSUFFICIENT_BALANCE422The account the transfer pays from (KES, or the USD, GBP or EUR account for a transfer in that currency), less the amounts reserved for other movements from it, does not hold amount plus fee. A batch is checked against the balance only, not against reservations.Fund the account and retry.
TRANSFER_DAILY_CAP_RATE_UNAVAILABLE503The cap check needed an exchange rate (to count a USD, GBP or EUR transfer, or your committed USDT sends, in KES) and none could be read right now. A GBP or EUR payout is counted at the market mid-rate of its own pair against KES, rounded up, and needs nothing set on your account: it works whenever that rate can be read, and this is the answer when it cannot. The transfer was not created. Also returned by a batch, which is refused whole.Retry later. If it persists, contact support. Nothing about your request is wrong.
TRANSFER_IDEMPOTENCY_CONFLICT409This idempotencyKey was used for a different request.Use a new key; the original transfer stands.
TRANSFER_NOT_FOUND404No transfer with that id belongs to you.Check the id.
TRANSFER_NOT_CONFIRMABLE409The transfer is no longer awaiting confirmation (details.status).Read the transfer; it has moved on.

Batch transfers

A batch's own per-item outcomes reuse every code in the table above (TRANSFER_NAME_MISMATCH, TRANSFER_EXCEEDS_DAILY_CAP, …) in each item's own failureCode — those are not restated here. Only the batch-level facts are new.

CodeStatusMeaningWhat to do
PARTNER_BATCH_TRANSFERS_DISABLED503Batch transfers are not enabled for your account.Contact us. Retrying will not clear it.
MONEY_MOVEMENT_PAUSED503All partner value movement is halted.Retry later; contact us if it persists.
BATCH_TOO_LARGE422The batch carries more items than the declared per-request limit.Split it into smaller batches.
BATCH_CURRENCY_MIXED422The items send more than one currency (details.currencies). A batch pays from one account under one code.Submit one batch per currency; nothing was written.
BATCH_NO_VALID_ITEMS422Every item in the batch failed per-item validation. details.items gives each item's idempotencyKey and failureCode.Read details.items, fix them and resubmit; no code was issued.
BATCH_NOT_FOUND404No batch with that id belongs to you.Check the id.
BATCH_NOT_CONFIRMABLE409The batch is no longer awaiting confirmation (details.status).Read the batch; it has moved on.

USDT sends

CodeStatusMeaningWhat to do
PARTNER_USDT_SENDS_DISABLED503Outbound USDT sends are not enabled for your account.Contact us. Retrying will not clear it.
USDT_SEND_DESTINATION_NOT_ALLOWLISTED422The destination is not a registered, active wallet of yours. Also returned for a wallet belonging to another partner — the two are indistinguishable on purpose.Register the destination with POST /v1/wallets and confirm it, then retry.
USDT_SEND_DESTINATION_BLOCKED409This destination cannot be used. The response gives no reason.Contact us. Retrying will not clear it.
USDT_SEND_DESTINATION_SCREENING_UNAVAILABLE503We could not check the destination just now. Nothing was created.Retry the same request shortly.
USDT_SEND_BELOW_MINIMUM422The amount is below our minimum for a USDT send.Send a larger amount.
USDT_SEND_AMOUNT_PRECISION422The amount needs more than 2 decimal places, which we cannot represent for this currency.Round to at most 2 decimal places and retry.
USDT_SEND_EXCEEDS_PER_ORDER_CAP422The amount alone, in KES-equivalent at the current mid-rate, is above your per-instruction ceiling.Split it.
USDT_SEND_EXCEEDS_DAILY_CAP422It would breach your rolling 24-hour KES-equivalent ceiling (orders, transfers and sends together).Wait for the window to roll, or talk to us.
USDT_SEND_RATE_UNAVAILABLE503The current USD:KES mid-rate needed to check your caps could not be read.Retry shortly.
USDT_SEND_NOT_CONFIRMABLE409The send is no longer awaiting confirmation (details.status).Read the send; it has moved on.
USDT_SEND_NOT_FOUND404No send with that id belongs to you.Check the id.

USDT_SEND_DESTINATION_NOT_ALLOWLISTED follows the money-movement exception in our own conventions: the destination wallet is the thing being verified, so this code deliberately does not distinguish "does not exist" from "belongs to someone else" from "not yet active" — the same opacity TRANSFER_NAME_MISMATCH's sibling codes do not need, because a wallet is a machine identifier and a bank account name is not.

An insufficient balance is NOT a create-time refusal

Unlike the buy and sell legs, a send's onlink_managed-wallet ledger balance is checked at execute time, after your confirmation — never at create. A shortfall there does not raise an HTTP error; it ends the send failed with USDT_SEND_INSUFFICIENT_LEDGER_BALANCE in failureReason. Fund the wallet and start a new send.

A send that fails after confirmation carries its reason in failureReason on GET /v1/usdt/sends/:id, not as an HTTP error — see Send USDT from your wallet for the full failure model and why some failures reverse a ledger debit while others deliberately do not.

Two of those reasons concern the destination, and they ask different things of you. DESTINATION_BLOCKED means the destination can no longer be used: contact us; retrying will not clear it. DESTINATION_SCREENING_UNAVAILABLE means we could not finish checking the destination when the send ran: nothing was debited or sent, so retry later by creating the send again.

USDT holding wallet

CodeStatusMeaningWhat to do
HOLDING_WALLET_NOT_ALLOCATED503No holding wallet address has been allocated for your account yet, so there is no address to return.Contact us. It is not self-serve, and retrying will not clear it until we have set it up. Nothing was affected.

Returned by GET /v1/usdt/holding-wallet. The response never carries an empty address, so an integration cannot send USDT to nowhere. errorCode carries the code, and message starts with it, followed by the next step.

Collections

CodeStatusMeaningWhat to do
PARTNER_COLLECTIONS_DISABLED503Collections is not enabled for your account.Contact us. Retrying will not clear it.
COLLECTIONS_WALLET_NOT_PROVISIONED503Your account is not yet fully set up to accept collections.Contact us; nothing about your request caused this.
COLLECTIONS_RAIL_UNAVAILABLE503We could not open your deposit account right now.Retry shortly; contact us if it persists.
COLLECTION_VIRTUAL_ACCOUNT_PROVISION_IN_FLIGHT409A create for this exact collection is already being processed.Wait briefly, then read the collection rather than creating another.
COLLECTION_VIRTUAL_ACCOUNT_RECONCILIATION_REQUIRED409We could not safely reuse or create the deposit instructions for this collection.Contact us with the requestId; do not retry this request.
COLLECTION_STATIC_MEMO_PROVISION_IN_FLIGHT409A create for this exact collection is already being processed.Wait briefly, then read the collection rather than creating another.
COLLECTION_STATIC_MEMO_RECONCILIATION_REQUIRED409We could not safely reuse or create the deposit instructions for this collection.Contact us with the requestId; do not retry this request.
COLLECTION_CURRENCY_UNSUPPORTED422Only USD is supported today.Send currency: "USD".
COLLECTION_NOT_FOUND404No collection with that id belongs to you.Check the id.
COLLECTION_NOT_OPEN409The collection is no longer open; details.status names its status. Reserved for editing, cancelling and sharing a collection, which are not available on /v1 yet; no /v1 route returns it today.Read the collection; do not retry.
NOTHING_TO_UPDATE400An edit named no field to change. Reserved for editing a collection, which is not available on /v1 yet; no /v1 route returns it today.Send at least one field to change.
INVALID_IDEMPOTENCY_KEY400The Idempotency-Key header is not 8 to 64 characters of A-Z, a-z, 0-9, _ and -. Nothing was created.Send a valid key, or omit the header.
IDEMPOTENCY_KEY_REUSED422That idempotency key was already used with different details, or the collection it created has been edited since (the key is compared with the collection as it stands now). Carries no details.Retry only the identical request while the collection is unedited; otherwise read the collection, and use a new key for a new create.

expectedAmount on POST /v1/collections is advisory only — it is stored and echoed back when you read the collection, and that is all it does. Nothing on this API ever compares it against the real deposit, so a mismatch produces no error, no event and no field telling you it happened.

Conversions

Every refusal below is returned before anything is debited: a refused POST /v1/conversions moved no money and created no conversion.

CodeStatusMeaningWhat to do
PARTNER_CONVERSIONS_DISABLED503Conversions are not enabled right now.Contact us. Retrying will not clear it.
CONVERSION_PAIR_UNSUPPORTED422That pair is not available. If KES to USD was refused, it is not enabled yet; contact us. On a customer's conversion (/v1/customers/{id}/conversions) the message reads CONVERSION_PAIR_UNSUPPORTED: convert through KES in two steps when both currencies are foreign (GBP to EUR, USD to GBP, ...).Send USD to KES, or KES to USD where it is enabled. For a customer, send a foreign currency against KES, or make two conversions through KES.
FX_RATE_NOT_CONFIGURED503A customer's conversion in that pair has no rate configured yet, so it cannot be quoted or run. details.pair names the pair (GBP-KES, EUR-KES or USD-KES). Nothing was debited. No rate is ever guessed or borrowed from another pair. Returned by /v1/customers/{id}/conversions and its quote only; a conversion of your own balance answers CONVERSIONS_UNAVAILABLE instead.Contact us to have a rate configured for that pair; retrying will not clear it.
MONEY_MODE_MISMATCH409A customer's conversion only (POST /v1/customers/{id}/conversions; the quote does not check it): the customer does not hold the same kind of money your conversions move. Live and sandbox money cannot be mixed. Nothing was debited.Convert for a customer of the same kind.
CONVERSION_AMOUNT_INVALID422amount is not a positive decimal string with at most 2 decimal places.Send an amount such as "100.00".
CONVERSION_AMOUNT_BELOW_MINIMUM422amount is below the minimum: 1.00 of the currency you convert from (USD 1.00, GBP 1.00 or EUR 1.00), or KES 100.00 when you convert from KES.Convert at least 1.00 of a foreign currency, or KES 100.00 from KES.
CONVERSION_AMOUNT_ABOVE_MAXIMUM422The conversion is above the maximum for one conversion, the same for every partner. For USD it is the USD side; for a customer's GBP or EUR conversion it is the foreign amount's worth in KES at current rates, against the same maximum.Split it into several conversions, or contact us for the current maximum.
CONVERSION_INSUFFICIENT_BALANCE422The account you convert from holds less than amount. On a customer's conversion it must hold amount plus your fee, after everything already in flight on that account (payouts, transfers, other conversions and fees waiting to be paid).Convert a smaller amount, or wait for more money to land.
CONVERSION_RATE_UNAVAILABLE503No exchange rate could be read right now, including the rate needed to size a customer's GBP or EUR conversion against the maximum.Retry shortly; contact us if it persists.
CONVERSION_BALANCE_UNAVAILABLE503The balance of the account you convert from could not be read right now.Retry shortly with the same idempotencyKey.
CONVERSIONS_UNAVAILABLE503Conversions are temporarily unavailable. Nothing about your request is wrong, and nothing moved.Retry shortly with the same idempotencyKey; contact us with the requestId if it persists.
MONEY_MOVEMENT_PAUSED503All partner value movement is halted.Retry later; contact us if it persists.
IDEMPOTENCY_KEY_REUSED422That idempotencyKey was already used for a conversion with different details.Retry only the identical request; use a new key for a new conversion.
CONVERSION_NOT_FOUND404No conversion with that id belongs to you.Check the id.

Remittance

CodeStatusMeaningWhat to do
REMITTANCE_DISABLED503Remittance is not enabled right now, and nothing was read or written. OnLink creating a remittance partner produces it, and so does every customer call, including the Customers and Branding screens of your dashboard. The code is in the errorCode field as well as message.Contact us. Retrying will not clear it.

The customer calls (create, list, read, change and close a customer) check, in this order: remittance is enabled, your partner account exists and is a remittance account, and, for anything that writes, that it is not suspended. Creating a customer, or changing its countryOfResidence, then checks that we can open accounts in that country. Reading a customer still works while your account is suspended. In every body below the code is in errorCode as well as message.

A credential for another product (Collections or USDT Rails) never reaches those checks: the route refuses it first with 403 and error: "product_not_supported", which has no errorCode.

CodeStatusMeaningWhat to do
PRODUCT_NOT_REMITTANCE403Rare: your account stopped being a remittance account while the request was in flight. A credential of another product gets product_not_supported instead.Contact us if you expected remittance on this account.
CUSTOMER_NOT_FOUND404No customer with that id belongs to you. A customer of another partner reads the same.Check the id.
CUSTOMER_EXTERNAL_REF_TAKEN409You already have a customer with that externalRef. It is unique among your own customers.Read the existing customer with externalRef=, or use a different reference.
CUSTOMER_CLOSED409The customer is closed, and a closed customer cannot be changed.Create a new customer instead.
CUSTOMER_ALREADY_CLOSED409The customer is already closed.Nothing to do; read the customer to confirm.
CUSTOMER_UPDATE_CONFLICT409The customer changed again while your change was being applied, so nothing was changed.Read the customer, and send the change again if it still applies.
CUSTOMER_FIELD_KYC_OWNED422The change names a field you cannot set. details.field says which: type and legalName never, countryOfResidence once identity verification for the customer has started.Remove that field from the request.
CUSTOMER_RESIDENCE_NOT_SUPPORTED422The customer lives in a country we cannot open accounts for. Raised when you create a customer, and when you change countryOfResidence to such a country. The message names the country, for example Iran (IR), and details.country carries the code you sent. Nothing was created or changed.Check countryOfResidence. If it is right, this customer cannot be onboarded, so do not retry it.
NOTHING_TO_UPDATE400The change named no field to change.Send at least one field to change.
UNKNOWN_BODY_FIELD400The body of a create, change or close carries a field that call does not take. details.fields names them (up to ten). Nothing was created or changed.Remove those fields. status and legalName are never yours to send.
INVALID_CURSOR400The cursor is not one this list gave you, or it does not belong to your customers.Start again from the first page, and pass back only a nextCursor you were given.

POST /v1/customers/{id}/kyc-link does not run those checks. It refuses, in this order: REMITTANCE_DISABLED, then CUSTOMER_NOT_FOUND, then CUSTOMER_KYC_NOT_OPEN, then KYC_WIDGET_DISABLED. It makes no check of its own that your account is a remittance account or that it is suspended: your key's product and scopes are decided before the call reaches that order (product_not_supported, insufficient_scope). A refused call created no link and left the customer's earlier link working.

CodeStatusMeaningWhat to do
CUSTOMER_KYC_NOT_OPEN409The step you asked for is not open for this customer; details.status names their status. On kyc-link: only pending_kyc, needs_info and awaiting_terms customers can be sent a link. On POST …/kyc (submit): only pending_kyc and needs_info customers can be submitted. On POST …/kyc/terms-link: only kyc_in_review and awaiting_terms customers can accept the terms.Read the customer's status. A customer in review needs no identity link or resubmission; wait for the result. Do not retry until the status changes.
KYC_WIDGET_DISABLED503The verification page is not enabled in this environment, so a link to it cannot be issued. A customer waiting to accept the account terms is not affected: their link opens the terms page and is issued normally.Contact us. Retrying will not clear it.

POST /v1/customers/{id}/kyc (submit a customer's identity by API) refuses, in this order: REMITTANCE_DISABLED, CUSTOMER_NOT_FOUND, CUSTOMER_NOT_INDIVIDUAL, CUSTOMER_KYC_NOT_OPEN, a wrong detail (400), the images (422), and only then does it save the details and start the identity check. The first four are decided before the images are read, so a refused call costs no upload. A refusal before the save changed nothing. A wrong detail includes taxId: for a customer who lives in Kenya or the US it is required, so leaving it out, or sending one in the wrong format, is a 400 whose details.fields names taxId (never the value you sent). An address in a country other than the customer's countryOfResidence is a 400 naming country alone. A field the call does not take, such as idExpirationDate, is a 400 too. POST /v1/customers/{id}/kyc/terms-link refuses CUSTOMER_TERMS_ALREADY_ACCEPTED before CUSTOMER_KYC_NOT_OPEN.

CodeStatusMeaningWhat to do
CUSTOMER_NOT_INDIVIDUAL422The customer is a business. This call verifies an individual.No. Do not retry. A business is verified another way.
KYC_DOCUMENTS_INCOMPLETE422The ID front and the selfie are both required. details.missing lists the parts that were not sent: idFront, selfie.Send the missing parts, as multipart/form-data file parts.
KYC_DOCUMENT_INVALID_TYPE422A part is not a JPEG or PNG image. details.field names it. The file's own bytes decide, not the Content-Type you labelled it with, so a PDF sent as image/jpeg is refused.Send JPEG or PNG images.
KYC_DOCUMENT_TOO_LARGE422An image is over 10 MB. details.field names it when it can be told.Resend a smaller photo of the same document.
KYC_PROVIDER_UNAVAILABLE503The identity check could not be started right now. Your details were saved; nothing was submitted and the customer's status did not change.Yes. Send the same request again as it is, after a short wait. Contact us with the requestId if it persists. Each attempt counts towards the hourly limit.
CUSTOMER_TERMS_ALREADY_ACCEPTED409The customer has already accepted the account terms, so there is no link to give.Nothing to do. Read the customer's verification status to confirm termsAccepted.

A submission is limited to 6 an hour for each customer, and every attempt counts, including one that was refused. Past it the answer is 429 with the wait, in seconds, in the Retry-After header (this limit is not the plane's, so the header is not Retry-After-partner). It is a separate allowance for each of your customers. On top of it, your account may make 10 submissions a minute across all its customers, which answers 429 with the plane's usual Retry-After-partner header.

The business verification calls (POST /v1/customers/{id}/kyb, …/kyb/documents, …/kyb/directors/{directorId}/invite, PATCH …/kyb/details, …/kyb/submit and GET …/kyb) refuse, in this order: REMITTANCE_DISABLED, then CUSTOMER_NOT_FOUND (a customer of another partner reads the same, and nothing about a business application is read), then CUSTOMER_NOT_BUSINESS, then, for the calls that change something, CUSTOMER_KYC_NOT_OPEN. On these calls CUSTOMER_KYC_NOT_OPEN means the customer is not pending_kyc, needs_info or kyc_in_review (the details call also takes awaiting_terms); details.status names where it is. The read (GET …/kyb) works for a customer in any status. In every body the code is in errorCode as well as message.

CodeStatusMeaningWhat to do
CUSTOMER_NOT_BUSINESS422The customer is an individual. A business application belongs to a business customer.Use the individual verification calls for an individual, or create a business customer.
KYB_NOT_STARTED404The customer has no business application yet.Start one with POST /v1/customers/{id}/kyb.
KYB_APPLICATION_CLOSED409The application is decided (verified or rejected) and takes no more documents, invitations or submissions. The one exception: a verified application still takes a director invitation while the customer is needs_info with reason business_details_incomplete.Read the application with GET …/kyb. A rejected business cannot be retried.
KYB_DETAILS_LOCKED409The company details can no longer change: the account is being created (status kyc_in_review, reason finalising), or a creation may already have been accepted. Nothing was written. A creation that is refused outright reopens them.Read the application with GET …/kyb. If status is needs_info with reason business_details_incomplete, send the missing details again.
KYB_JURISDICTION_NOT_SUPPORTED422The company is registered in a country we do not onboard. Nothing was created.Contact us if you expected this country to work.
KYB_DIRECTOR_NOT_FOUND404No director with that id is on this customer's application. Another application's director reads the same.Take directorId from the directors in GET …/kyb.
KYB_DIRECTOR_NOT_INVITABLE422This director cannot be invited. details.reason is initiator (verified inline, not by invitation) or corporate (a company on the board is verified from documents, not an identity check).For corporate, upload the company's documents with directorId set. Do not retry the invitation.
KYB_DIRECTOR_ALREADY_VERIFIED409The director has already completed their identity check, so there is nothing to send.Nothing to do.
KYB_DIRECTOR_EMAIL_IN_USE409Another director of this application already has that email address.Use the director's own address.
KYB_DIRECTOR_ATTEMPTS_EXHAUSTED409The director used every identity-check attempt. A reviewer decides from here.Do not retry. Contact us if the director should be given another go.
KYB_DIRECTOR_INVITE_COOLDOWN429This director was invited less than a minute ago. Retry-After and details.retryAfterSeconds say how long to wait.Wait, then invite again if the email has not arrived.
KYB_DOCUMENT_REJECTED422The document was refused and nothing was stored. details.reason says why: not a PDF, JPEG or PNG by its bytes, empty, over 10 MB, a name that is too long, or 20 documents already stored.Fix the file and send it again. A missing file part reads the same.
KYB_STORAGE_UNAVAILABLE503The document could not be stored and nothing was recorded.Send the same file again.
KYB_REQUEST_REJECTED422The application refused the request for a reason with no code of its own. details.reason says why.Read details.reason; if you cannot act on it, contact us with the requestId.
KYB_UNAVAILABLE503The request could not be completed because of a temporary failure. Nothing you sent is lost, and the cause is logged.Retry with backoff. Contact us with the requestId if it persists.
VALIDATION_FAILED400The body of a …/kyb call did not pass validation. details.fields lists every broken field as { field, message } (a field inside an object or a list by its path, such as physicalAddress.postalCode or owners[0].ownershipPercentage); the message names the rule, never the value you sent. On POST …/kyb, the consent you attest is named by its path: consent (absent), consent.consentVersion (not the current terms version), consent.customerConsentedAt (not an ISO 8601 time with a zone, in the future, or older than 30 days: the message says which) and consent.partnerAttestation (not true). Nothing was created.Fix each named field and send the call again.

POST /v1/customers/{id}/accounts (open a customer's KES, USD, GBP or EUR account) refuses, in this order, before anything is opened: REMITTANCE_DISABLED, CUSTOMER_ACCOUNTS_DISABLED, CUSTOMER_ACCOUNT_CURRENCY_UNSUPPORTED, for GBP and EUR CUSTOMER_ACCOUNT_CURRENCY_DISABLED, then CUSTOMER_NOT_FOUND, PARTNER_NOT_FOUND, PARTNER_SUSPENDED, CUSTOMER_NOT_VERIFIED and, for GBP and EUR, a second check that answers the same CUSTOMER_ACCOUNT_CURRENCY_DISABLED (or, if that check itself fails for a moment, CUSTOMER_ACCOUNT_UNAVAILABLE, which you can retry). GET /v1/customers/{id}/accounts runs only REMITTANCE_DISABLED and CUSTOMER_NOT_FOUND: reading keeps working while your account is suspended and while opening is switched off.

CodeStatusMeaningWhat to do
CUSTOMER_ACCOUNTS_DISABLED503Opening customer accounts is not enabled in this environment. Reading accounts, accounts that already exist and their deposits keep working. Nothing was opened.Contact us. Retrying will not clear it.
CUSTOMER_ACCOUNT_CURRENCY_UNSUPPORTED422The currency is not one customer accounts open in. details.supported lists them: KES, USD, GBP and EUR, in upper case.Use a currency in details.supported.
CUSTOMER_ACCOUNT_CURRENCY_DISABLED503A GBP or EUR account cannot be opened yet, and every POST for one is refused the same way, a repeat for an account that already exists included. Nothing in your request changes it. Nothing was opened or changed, and accounts that already exist keep working and can still be read with GET.Not until OnLink enables that currency in this environment (GBP and EUR are enabled separately). Posting the same request again will not clear it before then. Retry after that, and contact us with the requestId if it persists. The code is the same whatever the reason, so there is no other action to take.
CUSTOMER_NOT_VERIFIED409Accounts open only for a verified customer. details.status names the customer's status.Finish verifying the customer, then open the account.
CUSTOMER_ACCOUNT_UNAVAILABLE503The account could not be opened just now. Nothing a caller can change caused it. For GBP and EUR this includes a momentary failure of the check that the currency is enabled, which is not the same as CUSTOMER_ACCOUNT_CURRENCY_DISABLED.Yes. Post the same request again after a short wait. We never open a second account of the same currency, but an attempt we could not confirm stays pending until it settles. Contact us with the requestId if it persists.

A USD account whose customer has no US bank details is not an error: it opens with 201 or 200, and the reason is in namedAccount.reason of the body, not in an error code. A EUR account is the same: when its euro bank details are not available (the customer is not approved for them, or issuing them failed or was closed) it still opens with 201 or 200, and the reason, including EUR_DETAILS_UNAVAILABLE, is in namedAccount.reason of the body, never in an error code. A EUR account with no international route is not an error either: it opens, shows its local route in depositRoutes, and says in depositRoutesNote that international transfers in EUR are not available yet. See Open accounts for your customers.

DELETE /v1/customers/{id} (and the portal's close) closes a customer together with its accounts, and refuses, before anything is closed, while an account is being opened, deposits are under review or still being credited, an account is frozen or dormant, a transfer, payout, conversion or fee is still in flight (or moved while the close ran), or an account holds money. After the usual REMITTANCE_DISABLED, PARTNER_NOT_FOUND, PARTNER_SUSPENDED, CUSTOMER_NOT_FOUND and CUSTOMER_ALREADY_CLOSED, the refusals come in this order. Each names its own cause, because the next step differs.

CodeStatusMeaningWhat to do
CUSTOMER_ACCOUNT_OPENING409An account of the customer is still being opened (details.currencies names it), so it cannot be closed yet. Nothing was closed.Yes. Wait until the account is active, then close the customer again.
CUSTOMER_HAS_HELD_DEPOSITS409Deposits for the customer are under review (details.deposits counts them). Nothing was closed.Contact us to have them released or returned. Retrying will not clear it.
CUSTOMER_ACCOUNT_FROZEN409An account of the customer is frozen or dormant (details.currencies names it, details.state says which). It cannot be read for a balance, so it can never be shown empty. Nothing was closed.No. Contact us to have the account reviewed. Retrying will not clear it.
CUSTOMER_HAS_MOVEMENTS_IN_FLIGHT409A transfer, payout, conversion or fee of the customer is still moving (details counts each kind: internalTransfers, payouts, conversions, feeLegs; never ids). Nothing was closed.Yes. Wait until they finish, then close again. A SWIFT or RTGS payout can take several days; if anything else is still in flight after an hour, contact us.
CUSTOMER_HAS_BALANCE409An account of the customer holds money. details.currencies names the accounts that do. Nothing was closed.Move it out first, then close again: a payout (POST /v1/customers/{id}/transfers) or an internal transfer to your own account (POST /v1/internal-transfers), which carries no OnLink fee and can bring the balance to exactly zero. Closing needs every balance at zero. If you cannot move it, contact us to arrange returning it.
CUSTOMER_BALANCE_UNAVAILABLE503A balance could not be read, so it cannot be known to be empty. A balance we cannot read is never treated as zero. Nothing was closed.Yes. Try again shortly.
CUSTOMER_DEPOSITS_IN_FLIGHT409A deposit for the customer has arrived and is still being credited (details.deposits). Nothing was closed. A frozen or dormant account is refused first, because its deposits never clear.Yes. Wait a few minutes, then close again. If it persists past an hour, contact us.
CUSTOMER_ACCOUNT_CLOSE_UNCONFIRMED503The customer's US bank details could not be confirmed switched off. The customer was not closed, but its US bank details may already be off.Yes. Try the same close again; a repeat is safe and finishes the job.

A close can also be refused after the customer's US bank details were switched off (a deposit arrived in the meantime, or the switch-off of a second account failed). The customer stays open, with the refusal's own code above, but its US bank details may already be off until the close is repeated: resolve the refusal and close again, which finishes the job.

Partner fees

A remittance partner can attach its own fee, partnerFee: { amount, currency }, to a movement of a customer's money (an internal transfer, a payout or a conversion). OnLink bounds that fee per currency: it may be at most the lower of a share of the amount moved (rounded down to the minor unit, so the customer is never over-charged by a rounding step) and a fixed ceiling, both set for your account. A currency with no fee terms set has a ceiling of zero, so every fee above "0.00" in it is refused until OnLink sets your terms; a fee of "0.00", or no partnerFee, is always accepted and charges nothing. A fee exactly at the ceiling is accepted. Every refusal below is returned before anything is debited: a refused call moved no money and created nothing.

POST /v1/internal-transfers, POST /v1/customers/{id}/transfers and POST /v1/customers/{id}/conversions take a partnerFee and return these three codes. On a conversion the fee is in the currency you convert from, so details.currency and the currency you send are that one. The fee is judged inside the call, after your partner account is locked, so a change to your terms can never land between the check and the money.

CodeStatusMeaningWhat to do
PARTNER_FEE_OVER_CAP422The fee is above what your terms allow on this amount. details.cap is the largest fee that would have been accepted, details.currency its currency, details.capBps and details.capAbsolute the two limits it is the lower of (a limit of zero allows no fee at all: the cap is the lower of the two, so a zero in either one makes it 0.00).Send a fee of at most details.cap. When details.cap comes back as zero, read the two limits. Both details.capBps and details.capAbsolute zero: no fee terms are set for that currency yet. Exactly one of them zero: your terms do not allow a fee in that currency. In both cases contact us, because no amount you send will carry a fee. Both non-zero: your terms are set and the amount is too small to carry a fee (a share of a tiny amount rounds down to nothing), so send "0.00".
PARTNER_FEE_CURRENCY_MISMATCH422The fee is not in the currency of the amount moved. details.expected is the currency it must be in.Send the fee in details.expected.
PARTNER_FEE_AMOUNT_INVALID422The fee amount is not a non-negative decimal string with at most 2 decimal places.Send an amount such as "1.50", or "0.00" for no fee.

Internal transfers

POST /v1/internal-transfers and GET /v1/internal-transfers/{id}. Every refusal below is returned before anything is reserved or created: a refused call moved no money and left no transfer. The partner fee codes above apply too, along with REMITTANCE_DISABLED, MONEY_MOVEMENT_PAUSED, IDEMPOTENCY_KEY_REUSED, CUSTOMER_NOT_FOUND (also another partner's customer), PARTNER_NOT_FOUND and PARTNER_SUSPENDED.

CodeStatusMeaningWhat to do
CUSTOMER_NOT_ACTIVE409A customer end is not verified (suspended, closed, or still in verification). details.status says where it is and details.side (from or to) which end. It is also how a transfer you already confirmed ends if a customer was suspended or closed before it was sent: it fails with this failureCode and nothing moves.Resolve that customer's status (read it with GET /v1/customers/{id}), then send a new transfer.
MONEY_MODE_MISMATCH409The two accounts do not hold the same kind of money: live and sandbox money cannot be moved into each other. A partner fee is paid into your own account, so when you attach one your own account must be the same kind too.Move money only between accounts of the same kind.
ACCOUNT_NOT_READY409An account end cannot send or receive. details.side, details.currency and details.reason say which and why: not_allocated (no account in that currency), suspended, closed, or name_unconfirmed (a destination with no confirmed name yet).Open the account (POST /v1/customers/{id}/accounts), or have the suspension reviewed, then try again. A suspended or closed account does not clear by waiting.
ACCOUNT_NOT_READY503The same refusal for an account that is still being opened (reason activating). A 503 carries no details: the message names the end and the currency, and retryAfterSeconds says when to retry.Retry after retryAfterSeconds; the account is on its way.
PARTNER_FEE_ACCOUNT_UNAVAILABLE409A partnerFee was attached but your own account in details.currency cannot receive it right now.Send the transfer with a fee of "0.00", or contact us.
PARTNER_FEE_NOT_APPLICABLE422A partnerFee above "0.00" was attached to a transfer FROM your own account. The fee is charged to a customer's account and paid to yours.Send the transfer with a fee of "0.00".
INTERNAL_TRANSFER_SAME_ACCOUNT422from and to are the same account.Name two different accounts.
INTERNAL_TRANSFER_INSUFFICIENT_BALANCE422The sending account's balance, less what other transfers in flight already reserve, does not cover the amount plus the partner fee.Send a smaller amount, or fund the account first. Read the balance on GET /v1/customers/{id}/accounts.
INTERNAL_TRANSFER_NOT_FOUND404No transfer with that id belongs to you. Another partner's transfer reads the same.Check the id from the create response.
INTERNAL_TRANSFER_NOT_CONFIRMABLE409The code was right, but the transfer is no longer waiting for it: details.status says what became of it (usually expired).Read the transfer. If it expired, create a new one: nothing was reserved or moved.

Customer payouts

POST /v1/customers/{id}/transfers and GET /v1/customers/{id}/transfers/{transferId} answer with the codes of Transfers, with the three partner fee codes, and with the refusals of a customer's money below. Every refusal is returned before anything is reserved or created: a refused call moved no money and left no payout. The call checks, in this order, REMITTANCE_DISABLED, PARTNER_TRANSFERS_DISABLED, MONEY_MOVEMENT_PAUSED, your partner account (PARTNER_NOT_FOUND, PARTNER_SUSPENDED), an earlier request with the same idempotencyKey, the currency and the rail, the customer (CUSTOMER_NOT_FOUND, CUSTOMER_NOT_ACTIVE), MONEY_MODE_MISMATCH, the customer's account (ACCOUNT_NOT_READY), the destination and the caps, PARTNER_FEE_ACCOUNT_UNAVAILABLE, and last the fee cap and the balance.

CodeStatusMeaningWhat to do
CUSTOMER_NOT_ACTIVE409The customer is not verified (suspended, closed, or still in verification). details.status says where it is and details.side is from. It is also the failureCode of a payout you already confirmed if the customer was suspended or closed before it was sent: nothing was sent.Resolve the customer's status (GET /v1/customers/{id}), then send a new payout.
MONEY_MODE_MISMATCH409The customer does not hold the same kind of money your payouts move: live and sandbox money cannot be mixed.Pay out from a customer of the same kind.
ACCOUNT_NOT_READY409The customer has no account that can pay in this currency. details.side (from), details.currency and details.reason (not_allocated, suspended or closed) say why. A 503 with retryAfterSeconds is an account still being opened.Open the account (POST /v1/customers/{id}/accounts), or have the suspension reviewed, then try again.
PARTNER_FEE_ACCOUNT_UNAVAILABLE409A partnerFee was attached but your own account in details.currency cannot receive it right now.Send the payout with a fee of "0.00", or contact us.
TRANSFER_NOT_FOUND404No payout of this customer has that id. A payout of your own account, of another customer or of another partner reads the same.Check the id from the create response, and the customer id in the path.
TRANSFER_INSUFFICIENT_BALANCE422The customer's account, less what other movements in flight already reserve, does not cover the amount plus OnLink's fee plus your partnerFee.Send a smaller amount, or fund the account first. Read the balance on GET /v1/customers/{id}/accounts.

Transactions

GET /v1/customers/{id}/transactions and GET /v1/transactions. Both are reads: a refused call read nothing. They answer REMITTANCE_DISABLED, CUSTOMER_NOT_FOUND (a customer that is not yours reads the same as one that does not exist) and INVALID_CURSOR (a malformed cursor; one that names no row of yours returns an empty page, not an error). An unknown type or status, or a from or to that is not a date, is the ordinary 400 Validation failed on: <fields>. The call checks the range and the cursor before it looks anything up, so a malformed request never tells you whether a customer id exists.

CodeStatusMeaningWhat to do
DATE_RANGE_INVERTED400from is later than to. It is refused rather than answered with an empty page, so a swapped pair is never read as "no transactions". from equal to to is a valid, empty window.Swap the two values. A date on its own is a whole day in East Africa Time, not an instant, and two dates are compared as days: from=2026-11-11 with to=2026-11-10 is refused.

Sandbox simulations

These come from the three sandbox-only routes that act as if money arrived, POST /v1/simulations/collections/{id}/deposits, POST /v1/simulations/orders/{id}/usdt-receipt and POST /v1/simulations/customers/{customerId}/deposits. Outside the sandbox those routes answer a plain 404, exactly like a path that does not exist, so you never see these codes there.

CodeStatusMeaningWhat to do
SIMULATION_AMOUNT_INVALID400The amount is not a positive decimal with the number of places the route allows. You normally meet this refusal first as Validation failed on: amount; this is the same rule.No. Send a decimal string: at most 2 places and no more than 10000.00 for a collection or a customer account, at most 6 for USDT.
SIMULATION_CURRENCY_NOT_SUPPORTED409Deposits into a GBP account cannot be simulated in the sandbox. The simulator works; no retry changes the answer for this account.No. Simulate on a USD account instead.
COLLECTION_NOT_OPEN409The collection is not open, so there is nothing for a payment to settle. Usually it was already paid, or it expired.No. Read the collection to see its status, or open a new one.
COLLECTION_NOT_PROVISIONED409The collection has no deposit instructions yet, so a payment has nowhere to land.Not yet. Read the collection until its deposit instructions appear, then retry. Contact us if they never do.
ORDER_NOT_FOUND404No order with that id belongs to you.No. Check the id.
ORDER_TX_HASH_NOT_ATTACHED409The sell order has no transaction hash attached, so a deposit has nothing to match.Not yet. Attach the hash with PATCH /v1/orders/{id}, then retry.
ORDER_USDT_COLLECTED_AUTOMATICALLY409The USDT for this order is collected from your customer wallet for you, so there is no deposit to simulate.No. Read the order; it moves on without a simulated deposit.
CUSTOMER_NAMED_ACCOUNT_NOT_FOUND409The customer has no active USD account with its own US bank details, so a payment has nowhere to land. It was never opened, is still opening, or was closed. A 404 on this route means the sandbox cannot simulate, so this is a 409.Not yet. Open a USD account for the customer, wait until its bank details are active, then simulate again.
CUSTOMER_NOT_SIMULATED409The customer moves real money, so a payment cannot be simulated into it. Either it was created before sandbox money was simulated, or real money is enabled for your account, which makes every new customer a real-money one. The sandbox itself is working: only this customer is refused.No, not for this customer. Create a new customer, open its USD account, then simulate with that one. If the new customer is refused too, contact us: real money is enabled for your account and we switch it back first.
SIMULATION_NOT_CONFIGURED503The simulation cannot run for this object right now. For a collection, the usual cause is that it was created before sandbox money was simulated, while sandbox crediting is enabled; otherwise it is ours to fix.For a collection: create a new one and simulate that. Otherwise yes, after we fix it; contact us with the requestId.
SIMULATION_UPSTREAM_UNAVAILABLE503We could not complete the simulated payment, and nothing is known to have happened.Yes. Retry shortly. For a USDT deposit, repeat the amount you sent the first time.

ORDER_NOT_SELL_SIDE and ORDER_NOT_AWAITING_USDT (see Orders) also come from the USDT deposit route, with the same meaning: the order is a buy order, or it is no longer waiting for a deposit.

Confirmations

CodeStatusMeaningWhat to do
CONFIRMATION_NOT_FOUND404No confirmation with that id belongs to you.Check the id from the 202 response.
CONFIRMATION_CODE_INVALID422The code is wrong (details.attemptsRemaining).Ask your registered person for the code again; do not guess.
CONFIRMATION_LOCKED403Too many wrong codes (details.retryAfterSeconds).Wait, then request a new code. Contact us to have the lock cleared sooner.
CONFIRMATION_EXPIRED409The code's 5-minute window passed.Request a new code with /resend.
CONFIRMATION_ALREADY_VERIFIED409This confirmation was already accepted.Read the transfer; nothing more to confirm.
CONFIRMATION_CANCELLED409The instruction was cancelled before it was confirmed.Create a new transfer if still wanted.
CONFIRMATION_RESEND_TOO_SOON429The resend ladder has not elapsed (retryAfterSeconds, Retry-After).Wait the stated seconds.
CONFIRMATION_CONTACT_MISSING503Your partner account has no confirmation contact registered.Ask us to set one; nothing can be confirmed until then.
CONFIRMATION_WEBHOOK_NOT_CONFIGURED409Confirmation codes go to your webhook (the default), and you have no usable one: details.reason is no_webhook_url_configured, webhook_url_failed_validation (the saved URL is not an https address we can reach) or no_webhook_secret_configured. Nothing was created, and the code is not sent to your confirmation contact instead.Save a working webhook URL in the partner portal (Developers), or ask us to move your account to contact delivery. Then retry. See Auto-confirm instructions.
CONFIRMATION_DELIVERY_UNAVAILABLE503We cannot push confirmation codes to webhooks from our side. Your webhook settings are not the cause (that is CONFIRMATION_WEBHOOK_NOT_CONFIGURED), and a retry does not clear it. Nothing was created.Contact OnLink support.

Confirmation codes carry extra context

CONFIRMATION_CODE_INVALID carries details.attemptsRemaining; CONFIRMATION_LOCKED and CONFIRMATION_RESEND_TOO_SOON carry a wait in seconds; CONFIRMATION_WEBHOOK_NOT_CONFIGURED carries details.reason.

A waived account may get no confirmation at all

When OnLink has enabled confirmation waiving for your account, a create can return status: "confirmed" with no confirmation object. There is nothing to confirm, and a confirm call against such a payout answers CONFIRMATION_ALREADY_VERIFIED. In production, a waived account whose API key has no IP allowlist is still asked for a code, and its confirmation block carries waiverNotApplied: "key_without_ip_allowlist" on the first response only (a repeat of the same request returns the stored payout without it); ask us to add an IP allowlist to that key. If the account also has no working webhook (or, on contact delivery, no confirmation contact), there is no code to send, so the create is refused CONFIRMATION_WEBHOOK_NOT_CONFIGURED (409) or CONFIRMATION_CONTACT_MISSING (503) and nothing is created. When the cause is the missing allowlist, that refusal also carries details.waiverNotApplied: "key_without_ip_allowlist". See When confirmation is waived.

Withdrawal addresses

Returned by POST /v1/wallets/{id}/confirm when the address is yours and has already moved past the step this call performs, so there is nothing left to confirm. Both carry details.status (the address's current status) and details.nextStep (a sentence saying what to do).

CodeStatusMeaningWhat to do
WALLET_ALREADY_CONFIRMED409Your approver's confirmation was already recorded. details.status is pending_onlink_approval (awaiting OnLink approval, not yet usable for delivery) or active (already usable).No. Do not register the address again and do not confirm again. Read GET /v1/wallets to follow its status; only active can receive value.
WALLET_REVOKED409The address was revoked, which is terminal. details.status is revoked.No. Register a different address if you need one.

A code that is merely expired, cancelled or used up still answers 403, as does an id that is not one of your wallets (see Refusals that read as sentences); only your own wallets get the more specific 409.

Refusals that read as sentences

These come back in message as a sentence, not a short code, so match them verbatim or on their opening words. Where a value is shown in angle brackets, it is filled in with yours.

Quotes and orders

MessageStatusWhat it meansWhat to do
Provide exactly one of kesAmount or usdtAmount.400A quote takes one amount, not both and not neither.No. Send one.
<field> must be a positive decimal string with at most <n> decimal places.400An amount is not a decimal string, is negative, or has too many places.No. Send the amount as a string, e.g. "10000.00".
<field> must be greater than zero.400An amount is zero.No.
Amount is too small to quote at the current rate.400The amount rounds to nothing on the other side of the trade.No. Quote a larger amount.
partnerReference must not be empty.400An order was created with a blank partnerReference.No. Send your own reference.
expectedUsdtAmount must be a positive decimal string with at most 6 decimal places.400The optional assertion on a buy order is malformed.No. Pass the quote's usdtAmount verbatim, or omit it.
payoutAccountId not found.404No payout account with that id belongs to you.No. Read GET /v1/payout-accounts and pick one of those.
Order not found.404No order with that id belongs to you. Another partner's order reads exactly the same.No. Check the id.
partnerReference is already used by a buy order. / …by a sell order.409A reference names one order across both sides: it was already used on the other side.No. Use a fresh reference for this side.
A live rate is not available. Quotes are not issued on a degraded rate source.503We will not quote when we cannot stand behind the rate.Yes. Retry shortly.
A usable rate is not available right now.503The same, found while pricing.Yes. Retry shortly.
A USDT deposit address has not been allocated for your account yet.503Your account has no USDT deposit address yet. Also returned by GET /v1/funding, where the message begins with this sentence and carries more text after it.No. Contact us; retrying will not clear it.

Wallets and approvers

A withdrawal address is registered, confirmed by one of your approvers with a one-time code (an approver is registered with POST /v1/admins), then approved by us.

MessageStatusWhat it meansWhat to do
Unsupported chain '<chain>'. Only tron is supported.400Only Tron addresses can be registered today.No. Send chain: "tron".
Unsupported asset '<asset>'. Only USDT is supported.400Only USDT addresses can be registered today.No. Send asset: "USDT".
Address is not a valid tron address (base58check, checksum verified).400The address fails its checksum. We refuse here because a mistyped address is an unrecoverable loss.No. Copy the address again from its source.
Register an administrator (POST /v1/admins) before adding a withdrawal address — approval codes are sent to a registered administrator.409There is nobody to send the approval code to.Register an approver, then register the address.
Incorrect approval code.400The code does not match.Ask for the code again; do not guess.
Too many incorrect codes. This approval code has been cancelled.403The attempts for this code are used up.Register the same address again to have a new code.
This approval code is no longer usable., usually followed by Register the same address again to have a new code sent.403The code expired, was cancelled, or is for a wallet that is not one of yours. We do not say which on purpose. A wallet of yours that is already confirmed or revoked gets a 409 instead (see Withdrawal addresses).Register the same address again to have a new code.
Wallet not found.404No wallet with that id belongs to you.No. Check the id.
Administrator not found., from DELETE /v1/admins/{id}404No approver with that id belongs to you.No. Check the id.
Administrator email must not contain whitespace. / Administrator email is not a valid address. / Administrator email must be on the <domain> domain.400On POST /v1/admins: the email is malformed, or is not on your organisation's domain.No. Fix the address.

Anything else

MessageStatusWhat it meansWhat to do
Validation failed on: <fields>400The named body or query fields failed validation.No. Fix the named fields.
Validation failed (uuid is expected)400A path id is not a UUID.No. Check the id.
Request payload is too large413The body is larger than we accept.No. Send a smaller body.
Failed to record rejection for …503We could not record a refusal on an order we had already created.Yes. Read the order before creating another one.

What is worth retrying

  • 429 — yes, after the interval in the Retry-After-partner header.
  • 5xx and network timeouts — yes, with backoff, and reuse the same partnerReference. That is what makes a retry safe: the same reference returns the existing order rather than creating a second.
  • Everything else — no. A 4xx means the request will be refused the same way until something changes.

On this page