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.
| Code | Status | What to do |
|---|
REMITTANCE_DISABLED | 503 | Remittance is not enabled for you in this environment. Nothing was read or written. Contact us. |
insufficient_scope | 403 | The key lacks the scope errorCode names. Issue a key that carries it; a key cannot be widened. |
| Event | When |
|---|
customer.created | The customer exists, at pending_kyc. |
customer.updated | You changed the customer, or their status changed. |
| Code | Status | What to do |
|---|
CUSTOMER_EXTERNAL_REF_TAKEN | 409 | You already have a customer with that externalRef. Find it and use it. |
CUSTOMER_RESIDENCE_NOT_SUPPORTED | 422 | We cannot open accounts for that country. Do not onboard this customer. |
| Event | When |
|---|
customer.kyc.updated | Verification moved: in review, needs info, terms, verified, rejected. |
customer.kyb.documents_requested | A business customer must upload more documents. |
| Code | Status | What to do |
|---|
CUSTOMER_KYC_NOT_OPEN | 409 | This step is not open at the customer's status. details.status says where they are. |
KYC_WIDGET_DISABLED | 503 | The hosted page is not enabled in this environment. Verify by API, or contact us. |
Guide: Manage your customers.
| Event | When |
|---|
customer.account.updated | An account opened, gained its details, or changed status. |
| Code | Status | What to do |
|---|
CUSTOMER_NOT_VERIFIED | 409 | Finish verification first. details.status names the customer's status. |
CUSTOMER_ACCOUNTS_DISABLED | 503 | Opening accounts is not enabled in this environment. Existing accounts still work. |
CUSTOMER_ACCOUNT_CURRENCY_DISABLED | 503 | GBP or EUR is not open yet in this environment. Open the other currencies. |
CUSTOMER_ACCOUNT_UNAVAILABLE | 503 | The account could not be opened just now. Post the same body again later. |
Guide: Open accounts for your customers.
| Event | When |
|---|
customer.deposit.received | A payment was credited to the customer's account. |
customer.deposit.held | A payment arrived but is held. The payload's reason says why. |
customer.deposit.refunded | A payment was returned to the payer. Nothing was credited. |
In sandbox, where you make the payment yourself:
| Code | Status | What to do |
|---|
CUSTOMER_NOT_SIMULATED | 409 | The customer moves real money. Create a new customer in sandbox to test. |
SIMULATION_CURRENCY_NOT_SUPPORTED | 409 | That account's deposits cannot be simulated. Test with a USD account. |
Guide: Testing in sandbox.
| Event | When |
|---|
customer.conversion.updated | The conversion settled or failed. |
| Code | Status | What to do |
|---|
CONVERSION_PAIR_UNSUPPORTED | 422 | That pair is not available. Convert through KES, or contact us. |
FX_RATE_NOT_CONFIGURED | 503 | The pair in details.pair has no rate yet. Nothing was debited. Contact us. |
CONVERSION_INSUFFICIENT_BALANCE | 422 | The account does not hold the amount plus your fee. Wait for a deposit, or convert less. |
MONEY_MODE_MISMATCH | 409 | The customer holds a different kind of money (live or test) from your conversions. |
PARTNER_FEE_OVER_CAP | 422 | Your fee is above your terms. details.cap is the largest fee accepted. |
Guide: Convert a customer balance.
| Event | When |
|---|
confirmation.code_issued | The code to confirm the transfer. |
internal_transfer.completed | The money moved. |
internal_transfer.failed | The transfer failed. Nothing moved. |
| Code | Status | What to do |
|---|
MONEY_MODE_MISMATCH | 409 | Both ends must hold the same kind of money. Choose another account. |
ACCOUNT_NOT_READY | 409 | One end cannot send or receive. details.side and details.reason say which. |
INTERNAL_TRANSFER_INSUFFICIENT_BALANCE | 422 | The sender does not cover the amount plus your fee. |
Guide: Move money between your customers.
| Event | When |
|---|
confirmation.code_issued | The code to confirm the payout. |
confirmation.expired | The code was not used in time. Create the payout again. |
customer.transfer.updated | The payout moved on, until it is final. |
| Code | Status | What to do |
|---|
CONFIRMATION_WEBHOOK_NOT_CONFIGURED | 409 | Register a working webhook endpoint. details.reason says what is wrong with it. |
TRANSFER_RAIL_CURRENCY_UNSUPPORTED | 422 | The rail cannot pay this currency. GBP and EUR pay out over SWIFT only. |
TRANSFER_INSUFFICIENT_BALANCE | 422 | The account does not cover the amount, OnLink's fee and your partnerFee. |
TRANSFER_EXCEEDS_DAILY_CAP | 422 | The payout would breach your rolling 24-hour ceiling. Try again later, or ask us. |
ACCOUNT_NOT_READY | 409 | The customer has no account that can pay in this currency. |
CONFIRMATION_CODE_INVALID | 422 | The code is wrong. details.attemptsRemaining says how many tries are left. |
CONFIRMATION_EXPIRED | 409 | The code's window passed. Create the payout again. |
Guide: Pay out from a customer account.
| Code | Status | What to do |
|---|
INVALID_CURSOR | 400 | Pass back only a nextCursor this list gave you, with the same filters. |
Guide: Read your customers' transactions.
Every step a Remittance integration takes, in the order you build it: credentials, customers, verification, accounts, money in, conversion, payout, and reconciliation, with the call, the event and the guide for each.
What a complete Remittance integration has proven in sandbox: one item per step of the journey, each one a call you made and an event you handled.