OnLink
GuidesRemittance

Events and errors by stage

For each step of a Remittance integration, the webhook events you handle and the refusals worth a branch in your code, with what each one asks you to do next.

The remittance journey has nine steps. This page lists, for each one, the events your webhook endpoint receives and the refusals your code should branch on. It is a working list, not the catalogue: every code here is in Errors with its full meaning, and every event is in Webhooks with its payload.

Two rules hold at every step:

  • A 503 names a capability that is switched off, not a fault in your request. Retrying does not change it. Tell us the code and the requestId.
  • Read the object again before you act on a missing event. Every object below can be read by its id, and the read is the truth.

Any step

CodeStatusWhat to do
REMITTANCE_DISABLED503Remittance is not enabled for you in this environment. Nothing was read or written. Contact us.
insufficient_scope403The key lacks the scope errorCode names. Issue a key that carries it; a key cannot be widened.

1. Create a customer

EventWhen
customer.createdThe customer exists, at pending_kyc.
customer.updatedYou changed the customer, or their status changed.
CodeStatusWhat to do
CUSTOMER_EXTERNAL_REF_TAKEN409You already have a customer with that externalRef. Find it and use it.
CUSTOMER_RESIDENCE_NOT_SUPPORTED422We cannot open accounts for that country. Do not onboard this customer.

2. Verify the customer

EventWhen
customer.kyc.updatedVerification moved: in review, needs info, terms, verified, rejected.
customer.kyb.documents_requestedA business customer must upload more documents.
CodeStatusWhat to do
CUSTOMER_KYC_NOT_OPEN409This step is not open at the customer's status. details.status says where they are.
KYC_WIDGET_DISABLED503The hosted page is not enabled in this environment. Verify by API, or contact us.

Guide: Manage your customers.

3. Open accounts

EventWhen
customer.account.updatedAn account opened, gained its details, or changed status.
CodeStatusWhat to do
CUSTOMER_NOT_VERIFIED409Finish verification first. details.status names the customer's status.
CUSTOMER_ACCOUNTS_DISABLED503Opening accounts is not enabled in this environment. Existing accounts still work.
CUSTOMER_ACCOUNT_CURRENCY_DISABLED503GBP or EUR is not open yet in this environment. Open the other currencies.
CUSTOMER_ACCOUNT_UNAVAILABLE503The account could not be opened just now. Post the same body again later.

Guide: Open accounts for your customers.

4. Money in

EventWhen
customer.deposit.receivedA payment was credited to the customer's account.
customer.deposit.heldA payment arrived but is held. The payload's reason says why.
customer.deposit.refundedA payment was returned to the payer. Nothing was credited.

In sandbox, where you make the payment yourself:

CodeStatusWhat to do
CUSTOMER_NOT_SIMULATED409The customer moves real money. Create a new customer in sandbox to test.
SIMULATION_CURRENCY_NOT_SUPPORTED409That account's deposits cannot be simulated. Test with a USD account.

Guide: Testing in sandbox.

5. Convert

EventWhen
customer.conversion.updatedThe conversion settled or failed.
CodeStatusWhat to do
CONVERSION_PAIR_UNSUPPORTED422That pair is not available. Convert through KES, or contact us.
FX_RATE_NOT_CONFIGURED503The pair in details.pair has no rate yet. Nothing was debited. Contact us.
CONVERSION_INSUFFICIENT_BALANCE422The account does not hold the amount plus your fee. Wait for a deposit, or convert less.
MONEY_MODE_MISMATCH409The customer holds a different kind of money (live or test) from your conversions.
PARTNER_FEE_OVER_CAP422Your fee is above your terms. details.cap is the largest fee accepted.

Guide: Convert a customer balance.

6. Move money between accounts

EventWhen
confirmation.code_issuedThe code to confirm the transfer.
internal_transfer.completedThe money moved.
internal_transfer.failedThe transfer failed. Nothing moved.
CodeStatusWhat to do
MONEY_MODE_MISMATCH409Both ends must hold the same kind of money. Choose another account.
ACCOUNT_NOT_READY409One end cannot send or receive. details.side and details.reason say which.
INTERNAL_TRANSFER_INSUFFICIENT_BALANCE422The sender does not cover the amount plus your fee.

Guide: Move money between your customers.

7. Pay out and confirm

EventWhen
confirmation.code_issuedThe code to confirm the payout.
confirmation.expiredThe code was not used in time. Create the payout again.
customer.transfer.updatedThe payout moved on, until it is final.
CodeStatusWhat to do
CONFIRMATION_WEBHOOK_NOT_CONFIGURED409Register a working webhook endpoint. details.reason says what is wrong with it.
TRANSFER_RAIL_CURRENCY_UNSUPPORTED422The rail cannot pay this currency. GBP and EUR pay out over SWIFT only.
TRANSFER_INSUFFICIENT_BALANCE422The account does not cover the amount, OnLink's fee and your partnerFee.
TRANSFER_EXCEEDS_DAILY_CAP422The payout would breach your rolling 24-hour ceiling. Try again later, or ask us.
ACCOUNT_NOT_READY409The customer has no account that can pay in this currency.
CONFIRMATION_CODE_INVALID422The code is wrong. details.attemptsRemaining says how many tries are left.
CONFIRMATION_EXPIRED409The code's window passed. Create the payout again.

Guide: Pay out from a customer account.

8. Reconcile

CodeStatusWhat to do
INVALID_CURSOR400Pass back only a nextCursor this list gave you, with the same filters.

Guide: Read your customers' transactions.

On this page