Pay out from a customer account
Send a customer’s money to a bank account or mobile wallet over the same rails as your own payouts, confirm it with a code, and attach your own fee.
A customer payout sends money out of one of your customers' accounts to a bank
account or a mobile wallet. It is the same instruction as a payout from your own
account (Send money from your KES account),
with the same rails, the same destination rules, the same confirmation code and the
same fee sheet. What changes is whose money it is: the customer's account is debited,
the customer must be verified, and you may add a fee of your own.
These calls are on a Remittance account and need their own scopes:
customer_transfers:write to send and customer_transfers:read to read a payout back.
A key that holds only customer_accounts:* or transfers:* is refused
403 insufficient_scope, and errorCode names the scope it lacks. See
Products and scopes.
Every customer belongs to you alone. Another partner's customer id reads exactly like one that does not exist.
1. Choose a rail
Each currency is paid out over a fixed set of rails, and the customer must hold an
account in that currency (open one with
POST /v1/customers/{id}/accounts).
| Currency | Rails |
|---|---|
KES | mpesa, pesalink, rtgs, eft |
USD | rtgs, eft, swift |
GBP | swift only |
EUR | swift only |
A currency sent over a rail that does not take it is 422
TRANSFER_RAIL_CURRENCY_UNSUPPORTED (details.rail, details.currency). A
swift payout in USD, GBP or EUR pays an account in that same currency: a
swift.accountCurrency that names another one is refused the same way, with
details.destinationCurrency. Nothing is converted on the way out. A GBP or EUR
payout counts against your ceilings at its KES equivalent, valued at the mid-rate of the
pair when you create it and rounded up (see
Caps and limits):
nothing has to be set on your account for that, and when the pair's rate cannot be read
right now it is refused 503 TRANSFER_DAILY_CAP_RATE_UNAVAILABLE and the payout is not
created: retry later, and contact support if it persists. The destination
fields for each rail are in
Choose a rail and its destination.
2. Create the payout
POST /v1/customers/{customerId}/transfers
Content-Type: application/jsonThe body is exactly the body of POST /v1/transfers, plus an optional partnerFee:
{
"rail": "swift",
"destination": {
"accountNumber": "00000000123456",
"accountName": "Amina Wanjiru",
"bankName": "Example Bank plc",
"swift": {
"bic": "NWBKGB2L",
"bankCity": "London",
"bankCountry": "United Kingdom",
"chargeType": "OUR",
"accountCurrency": "USD"
}
},
"paymentPurposeId": "SALA",
"senderAddress": "1 Kenyatta Ave, Nairobi",
"amount": { "currency": "USD", "value": "250.00" },
"partnerFee": { "amount": "1.50", "currency": "USD" },
"partnerReference": "ACME-PAYOUT-000123",
"idempotencyKey": "payout-2026-11-19-000123"
}A GBP payout is the same body with the currency fields changed. The destination account
must be a GBP account, and the payout is swift:
{
"rail": "swift",
"destination": {
"accountNumber": "00000000123456",
"accountName": "Amina Wanjiru",
"bankName": "Example Bank plc",
"swift": {
"bic": "NWBKGB2L",
"bankCity": "London",
"bankCountry": "United Kingdom",
"chargeType": "OUR",
"accountCurrency": "GBP"
}
},
"paymentPurposeId": "SALA",
"senderAddress": "1 Kenyatta Ave, Nairobi",
"amount": { "currency": "GBP", "value": "250.00" },
"idempotencyKey": "payout-2026-11-19-000124"
}amount.valueis a decimal string in whole currency units, with at most two decimal places and greater than zero. Never a JSON number.partnerFeeis optional: see Your fee.partnerReferenceis your own reference, echoed on every read and in the webhook.idempotencyKeyis required. A retry with the same key and the same request returns the original payout in whatever status it has reached; the same key with a different request is409 TRANSFER_IDEMPOTENCY_CONFLICT. Any field the call does not take is400 UNKNOWN_BODY_FIELD.
The write is limited to ten a minute per partner.
The answer is 202. Nothing has moved yet:
{
"id": "bd9f1e6a-0000-4000-8000-000000000010",
"status": "awaiting_confirmation",
"customerId": "a9c1d2e3-0000-4000-8000-000000000020",
"rail": "swift",
"amount": { "currency": "USD", "value": "250.00" },
"fee": { "currency": "USD", "value": "28.00" },
"partnerFee": { "currency": "USD", "value": "1.50" },
"destination": {
"accountNumber": "00000000123456",
"accountName": "Amina Wanjiru"
},
"nameVerification": "unavailable",
"partnerReference": "ACME-PAYOUT-000123",
"createdAt": "2026-11-19T08:00:00.000Z",
"confirmation": {
"id": "df9f1e6a-0000-4000-8000-000000000030",
"channel": "email",
"deliveredTo": "o***@partner.co.ke",
"expiresAt": "2026-11-19T08:15:00.000Z",
"resendAvailableAt": "2026-11-19T08:00:15.000Z"
}
}fee is the fee OnLink charges for the rail, the published one, and partnerFee is
your own. Both are taken from the customer's account, in the payout's currency,
and both are in the response.
The amount, fee and partnerFee are reserved on the customer's account from the
moment the payout is created until it ends, so they cannot be spent twice: a later
payout, internal transfer or conversion from the same account is checked against the
balance less what is reserved. If the payout fails, the reservation is released.
3. Confirm it
A customer payout is instructed by your integration and confirmed with a
one-time code, exactly like a payout from your own account. The code goes to your
webhook as confirmation.code_issued by default (or, on contact delivery, to your
registered confirmation contact), and you post it back. With webhook delivery and no
usable webhook the payout is refused 409 CONFIRMATION_WEBHOOK_NOT_CONFIGURED and
nothing is created:
POST /v1/confirmations/{confirmation.id}See Send money from your KES account
for the call and the resend. The answer is the payout at status: confirmed, and it runs
at once. A payout whose code is never verified ends expired and
confirmation.expired is sent; nothing was moved. A partner account
OnLink has enabled confirmation waiving for, on a key with an IP allowlist, gets the
payout back already confirmed with no confirmation block.
The customer is checked again when the payout runs. If it was suspended or closed
after you confirmed, the payout ends failed with failureCode CUSTOMER_NOT_ACTIVE
before anything is sent to the bank.
4. Read it, and the webhook
GET /v1/customers/{customerId}/transfers/{transferId}The status moves awaiting_confirmation, confirmed, executing, processing, then
ends settled, failed or expired (the same statuses as
a payout from your own account).
A payout that is not this customer's, including one of your own account or of another
customer, is 404 TRANSFER_NOT_FOUND. A closed customer's payouts stay readable.
You are told when a payout ends with one event,
customer.transfer.updated, with
data.status settled or failed. A customer payout never produces transfer.settled
or transfer.failed: those two are for payouts from your own account. An expired code is
announced by confirmation.expired.
When a payout fails after the bank took the money, the bank returns it to the customer's
account. That return is not announced as a deposit: you receive
customer.transfer.updated with status: "failed" and no
customer.deposit.received, so a deposit handler never credits your customer twice.
Silence is not failure. A payout that is neither settled nor failed after it was
confirmed is one OnLink has not yet been able to resolve. Read it with
GET; never send a second one.
5. Your fee
A partnerFee is your fee on paying out a customer's money. It is taken from the
customer's account and paid to your own account, after the payout settles.
{ "partnerFee": { "amount": "1.50", "currency": "GBP" } }currencymust equal the currency of the amount.- It is at most the lower of a share of the amount and a ceiling, both set for your
account. With no terms set for your account, or a share or a ceiling of zero, only
"0.00"is accepted (the same as sending none). Over the limit is422 PARTNER_FEE_OVER_CAP, anddetails.capis the largest fee that would have passed (0.00when either limit is zero, or when the amount is too small for the share to reach one minor unit). - The customer's account must hold the amount, OnLink's fee and your fee.
- Your fee is paid only if the payout settles. If the payout fails or expires, no fee is taken, and the reservation is released.
- Your own account in the currency must be able to receive it, or the create is refused
409 PARTNER_FEE_ACCOUNT_UNAVAILABLE: send"0.00", or contact us. - The response and the webhook show it as
partnerFee; it is not part offee.
6. When creating is refused
Nothing is created, reserved or moved on any of these. A malformed body (400) is
refused first; after that each refusal has its own code, so you know what to fix:
| Status | Code | What to do |
|---|---|---|
503 | REMITTANCE_DISABLED | Remittance is not enabled right now. Contact us; retrying will not clear it. |
503 | PARTNER_TRANSFERS_DISABLED | Outbound payouts are not enabled for your account. Contact us. |
503 | MONEY_MOVEMENT_PAUSED | Moving money is paused for a short time. Retry later. |
409 | PARTNER_SUSPENDED | Your partner account is not active. Contact us. |
409 | TRANSFER_IDEMPOTENCY_CONFLICT | The key was used for a different request. Use a new key. |
422 | TRANSFER_RAIL_CURRENCY_UNSUPPORTED | The rail does not pay that currency. See the table above. |
404 | CUSTOMER_NOT_FOUND | Check the id. A customer of another partner reads the same. |
409 | CUSTOMER_NOT_ACTIVE | The customer is not verified. details.status says where it is and details.side is from. |
409 | MONEY_MODE_MISMATCH | Live and sandbox money cannot be moved into each other. Use a customer of the same kind as your payouts. |
409 | ACCOUNT_NOT_READY | The customer has no usable account in the currency. details.reason says why. Open or review the account, then try again. |
503 | ACCOUNT_NOT_READY (activating) | The account is still being opened. Retry after retryAfterSeconds. |
422 | TRANSFER_DESTINATION_INVALID | Fix the field named in details.field. |
422 | TRANSFER_NAME_MISMATCH | Check the account holder's name with your payee. |
422 | TRANSFER_EXCEEDS_PER_ORDER_CAP and …_DAILY_CAP | The payout is over your per-instruction ceiling or would break your rolling 24-hour total. See Caps and limits. |
503 | TRANSFER_DAILY_CAP_RATE_UNAVAILABLE | The exchange rate for this currency pair could not be read right now, so the payout cannot be counted against your ceilings. It was not created: retry later, and contact support if it persists. |
409 | PARTNER_FEE_ACCOUNT_UNAVAILABLE | Your own account cannot receive the fee. Send "0.00", or contact us. |
422 | PARTNER_FEE_OVER_CAP and the other fee codes | The fee is over the cap, in another currency, or malformed. |
422 | TRANSFER_INSUFFICIENT_BALANCE | The customer's account, less what other movements reserve, does not cover the amount plus both fees. |
A payout already accepted can still fail later, and then customer.transfer.updated
tells you why with failureCode; that is not a refusal of the create. Every code is in
Errors.
Move money between your customers
Move one currency from your own account to a customer, from a customer to you, or from one customer to another, confirm it with a code, and attach your own fee.
Convert a customer balance
Convert a customer’s GBP, EUR or USD to KES, or KES to any of them, at your rate, attach your own fee, and know exactly what the customer was paid.