The remittance journey
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.
This page is the whole Remittance product on one page. It does not repeat the guides: it puts them in the order you build them, says what each step needs from the one before, and names the call, the webhook event and the errors that belong to each step. Follow a link when you reach a step; come back here for what comes next.
Everything on this page runs in sandbox, on a credential issued for the Remittance product. A credential for another product is refused on every call below. See Products and scopes.
The journey at a glance
flowchart LR
accTitle: The remittance journey from first credential to money out
accDescr: You start with a Remittance credential and a webhook endpoint. You create a customer, verify them on the hosted page or by API, and open their accounts once they are verified. Money reaches a customer account from a payer. From there you can convert it to another currency, move it to another customer or to your own account, or pay it out to a bank account or mobile wallet. Payouts and transfers are confirmed with a code delivered to your webhook. Every step reports back by webhook and can be read again from the transactions list.
A[Credential and webhook] --> B[Create a customer]
B --> C[Verify the customer]
C --> D[Open accounts]
D --> E[Money in from a payer]
E --> F[Convert]
E --> G[Move between customers]
E --> H[Pay out]
F --> H
G --> H
H --> I[Confirm with a code]
I --> J[Reconcile from transactions]The same journey in words:
- Get a Remittance credential and register a webhook endpoint. The webhook is not optional for this product: payout and transfer confirmation codes are delivered to it.
- Create a customer for each person or business you send money for.
- Verify the customer, on your hosted page or by API. Nothing else opens
until the customer is
verified. - Open the customer's accounts, one per currency: KES, USD, GBP or EUR.
- Money arrives in a customer account from a payer, and you hear about it by webhook.
- Convert a customer balance between a foreign currency and KES, if the payout currency differs.
- Move money between your customers, or between a customer and your own account.
- Pay out from a customer account to a bank account or mobile wallet, and confirm it with the code your webhook received.
- Reconcile from the transactions list, which holds every deposit, conversion, transfer and payout.
1. Credential and webhook
| You need | Where it is covered |
|---|---|
| A key and secret for Remittance | Credentials |
| Signed requests | Authentication |
| The scopes for each step below | Products and scopes |
| A webhook endpoint you verify | Webhooks, Verify signatures |
| A first call that works | Your first call |
The scopes this product uses are customers:read and customers:write (customers
and their verification), customer_accounts:read and customer_accounts:write
(accounts, balances and sandbox deposits) and the transfer scopes named in each
money guide. Scopes are fixed when a key is issued: ask for every scope you will
need, because a key cannot be widened later, only replaced.
Register the webhook endpoint before you create your first payout. A payout or a
transfer that needs a confirmation code is refused with
409 CONFIRMATION_WEBHOOK_NOT_CONFIGURED while no endpoint is registered.
2. Create a customer
POST /v1/customers creates a customer of type individual or business. The
type cannot change later. Give each customer your own reference in externalRef:
it is unique per partner, and reusing one is 409 CUSTOMER_EXTERNAL_REF_TAKEN.
countryOfResidence must be a country we serve, or the call is
422 CUSTOMER_RESIDENCE_NOT_SUPPORTED.
A new customer starts at pending_kyc. Event: customer.created.
Guide: Manage your customers.
3. Verify the customer
There are two ways to verify, and you can mix them across customers:
| Way | Call | Use it when |
|---|---|---|
| Hosted page | POST /v1/customers/{id}/kyc-link | You want one link that collects everything, in your branding |
| Individual, API | POST /v1/customers/{id}/kyc | You already collect the customer's details and documents |
| Business, API | POST /v1/customers/{id}/kyb and its steps | You onboard companies and their directors from your own screens |
The customer moves through kyc_in_review, and possibly needs_info or
awaiting_terms, to verified or rejected. Each change is a
customer.kyc.updated event; a business asked for more documents also gets
customer.kyb.documents_requested. A customer who reaches awaiting_terms must
accept the account terms on the hosted page before they are verified.
Guide: Manage your customers, sections 5 to 7.
4. Open accounts
POST /v1/customers/{id}/accounts with { "currency": "USD" } opens one account.
Posting the same body again is safe: it answers 200 with the account that already
exists. A customer who is not verified is 409 CUSTOMER_NOT_VERIFIED.
| Currency | What the customer gets |
|---|---|
| KES | Instructions for paying shillings in from Kenya |
| USD | US bank details in the customer's name, where available |
| GBP | The routes a payer can use to send pounds |
| EUR | SEPA bank details and the routes a payer can use |
GBP and EUR can answer 503 CUSTOMER_ACCOUNT_CURRENCY_DISABLED where they are not
open in the environment yet. Event: customer.account.updated.
Guide: Open accounts for your customers.
5. Money in
A payer sends money to the details from step 4. When it is credited, you receive
customer.deposit.received and the account balance rises. A deposit we cannot
credit yet (for example, to a suspended or closed customer) is
customer.deposit.held, with the reason in the payload.
In sandbox you make a payer yourself with
POST /v1/simulations/customers/{customerId}/deposits, for a customer you created
in sandbox with an active USD account. See
Testing in sandbox.
6. Convert
GET /v1/customers/{id}/conversions/quote shows the rate and what the customer
will receive. POST /v1/customers/{id}/conversions converts a customer balance
between GBP, EUR or USD and KES, in either direction, and answers 202. You hear
the result as customer.conversion.updated. A conversion takes no confirmation
code. Your own fee rides on it as partnerFee.
Guide: Convert a customer balance.
7. Move money between accounts
POST /v1/internal-transfers moves one currency from your own account to a
customer, from a customer to you, or from one customer to another. Both sides must
hold the same kind of money: live with live, test with test, or the call is
MONEY_MODE_MISMATCH. It is confirmed with a code, then reported as
internal_transfer.completed or internal_transfer.failed.
Guide: Move money between your customers.
8. Pay out and confirm
POST /v1/customers/{id}/transfers pays a customer's money out and answers 202
with the payout awaiting confirmation. The rail depends on the currency:
| Currency | Rails |
|---|---|
| KES | M-PESA, PesaLink, RTGS, EFT |
| USD | RTGS, EFT, SWIFT |
| GBP, EUR | SWIFT |
The code arrives on your webhook as confirmation.code_issued. Send it to
POST /v1/confirmations/{id}; an unused code ends as confirmation.expired. The
payout then reports as customer.transfer.updated until it is final. See
Auto-confirm instructions for confirming
from your own server as soon as the code arrives.
Guide: Pay out from a customer account.
9. Reconcile
GET /v1/customers/{id}/transactions lists one customer's deposits, conversions,
transfers and payouts, and GET /v1/transactions lists them across all your
customers. Filter by type, status and date, and page with the cursor. Store the id
of every object you create and match webhooks to it; read the transaction again
whenever a webhook is late or missing.
Guide: Read your customers' transactions.
Next
- Events and errors by stage: what to handle at each step, in one table per step.
- Integration checklist: what a complete sandbox integration has proven before you ask for real money.
Guides
Money in, money out, the conversion between them and USD collections: which guide you need, the stages each kind of instruction goes through, and what is true of all of them.
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.