Driver payouts by bank transfer (Saudi SARIE)
Built: 2026-11-02. Written for operators and for whoever maintains the code.
Careem and Bank AlBilad pay Saudi captains straight to any local bank IBAN over SARIE, SAMA's instant transfer system. RideKit now supports the same way of paying drivers:
- every IBAN is checked properly before a payout is accepted;
- payouts go to the bank as one bulk file that the bank pays line by line;
- a driver can turn on a nightly cash-out;
- the wallet shows how cash fares net against what the app paid.
Checked IBANs
A withdrawal (or the nightly cash-out) to an IBAN is refused unless:
- the length is right for the IBAN's country (Saudi Arabia: 24 characters);
- the mod-97 check digits match (ISO 13616), which catches nearly every mistyped character;
- it is from the market's country in an IBAN market. A Saudi payout goes
to an
SA…IBAN.
The driver app checks as the driver types:
- a mistake shows in red, for example "This IBAN doesn't add up: check for a mistyped character";
- a Saudi IBAN that is valid shows its bank in green, for example "✓ Al Rajhi Bank", read from the IBAN's bank code.
Paying by bank file
- Admin → Providers → Bank batch file. Enter the account payouts are paid
from:
- account holder (your company, as the bank knows it);
- IBAN;
- the bank's BIC, for example
RJHISARI.
- Admin → Payouts. The Bank batch file card shows how many payouts
are waiting and their total. Press Create bank file:
- every requested payout to an IBAN goes into one ISO 20022
pain.001.001.03file, which downloads; - each payout moves to processing on the manual rail.
- every requested payout to an IBAN goes into one ISO 20022
- Upload the file in your bank's corporate portal (bulk / payroll transfer). In Saudi Arabia the bank pays each line over SARIE.
- When the bank confirms, press Mark paid on the batch. Every payout in it is paid and settles in the ledger. Download is available again at any time.
What the file holds:
- one credit transfer per payout, for the amount after the payout fee;
- the driver's name and IBAN;
- the payout id as the end-to-end reference, so the bank statement matches back to payouts.
Names are written in Latin letters only, as banks require. A name written only in Arabic script comes out empty or short in the file. The IBAN is what routes the money.
Check with your bank. Most Saudi banks take
pain.001.001.03for bulk transfers. A few use their own CSV layout. Upload one small batch first and confirm the result before relying on it.
Nightly cash-out
In the withdraw sheet, a driver can turn on Cash out every night, using the account in the form. Then:
- around 02:00 in the market's time zone, their whole withdrawable balance is requested to that account;
- the request uses the same limits, fee and ledger as a withdrawal they tap themselves;
- a night is skipped if the balance is under the minimum, or if they withdrew in the last 12 hours;
- the wallet shows "Nightly cash-out on · Al Rajhi Bank ••7519".
These payouts are then paid like any other: in the next bank file, or by the operator's payout rail.
Netting cash fares
On a cash trip the driver keeps the fare and the app keeps nothing, so the commission is owed back. That is netted against the balance. The wallet explains it under the balance:
Last 30 days: the app paid you SAR 40.00; cash you kept from riders, SAR 25.00, comes off your balance.
"Cash kept" covers cash fares and change given to riders' wallets.
Not covered
- A direct SARIE or bank API connection. The file is uploaded by hand. A bank API (Bank AlBilad, Al Rajhi) would be a payout provider plugin.
- Per-bank file layouts other than pain.001.
For maintainers
| Area | Files |
|---|---|
| IBAN rules (pure) | backend/src/payouts/iban.ts (ibanProblem, ibanChecksumOk, saudiBank), applied in payout-beneficiary.ts |
| Bank file (pure) | backend/src/payouts/bank-batch.ts (pain001) |
| Batches | payouts/bank-batch.service.ts; GET/POST /payouts/bank-batches, GET /payouts/bank-batches/:id/file, POST /payouts/bank-batches/:id/paid (payout.approve) |
| Nightly cash-out | payouts/auto-payout.service.ts; GET/PUT /payouts/auto |
| Netting | PayoutService.eligibility → netting |
| Storage | Migration 1700000134000-PayoutBankBatches.ts |
| Credentials | provider bank_batch (debtorName, debtorIban, debtorBic), Admin → Providers |
| Admin | components/payouts/BankBatchCard.tsx on the Payouts page |
| Driver | src/lib/iban.ts; wallet sheet IBAN check, nightly toggle, netting line |
| Tests | payouts/sarie-payouts.spec.ts, driver lib/iban.test.ts |