RideKit
Docs/Reference/Drivers' monthly income statements (Saudi HRDF income support)

Drivers' monthly income statements (Saudi HRDF income support)

Built: 2026-11-02. Written for operators and for whoever maintains the code.

Saudi Arabia's Human Resources Development Fund (HRDF) tops up a ride-hailing driver's month by 40% of their app income, up to SAR 3,000, for up to 24 months. The programme launched on 30 September 2025. The income figures reach HRDF through the transport authority's data link, and a driver can dispute a month's figure with each app they drive for.

So RideKit now gives every driver one income statement per month:

  • Closed after the month ends, and never changed afterwards. A database trigger refuses any edit to its figures and any delete. What the driver sees is what was reported.
  • Fingerprinted. A SHA-256 hash of its figures, shown as a short reference ("Ref B841972443"). The driver, the operator and the regulator can check they hold the same statement.
  • Disputable. The driver adds a note; the operator answers it.

Legal note. The support rate, cap and duration are HRDF's and can change. The app shows them only as an estimate ("HRDF decides the amount"). Confirm the current rules and the data link's format with HRDF and the authority before relying on the export.

What a statement holds

All figures are read off the ledger for the market's calendar month (Riyadh midnight to midnight):

Figure Where it comes from
Trips Ride fares credited to the driver in the month
Fares The fares before commission and fleet share
Commission The platform's commission on those fares
Fleet share A fleet owner's share, for a driver in someone else's car
Tips Tips credited in the month
Incentives Operator credits (adjustments) in the month
Income The driver's own fares + tips + incentives

A trip belongs to the month it was settled in. A ride that ends at 23:58 on the 31st and settles at 00:01 is in the next month. Operators answering a "missing trip" dispute should check the next month first.

Setting it up

The market setting incomeStatements holds:

Setting Saudi Arabia default
enabled on
support { label: "HRDF", pctBps: 4000, capMinor: "300000" } (40%, up to SAR 3,000)

support may be null; the app then shows no estimate. Other markets are off until enabled.

What happens

Every hour, once the market's month has turned, the previous month is closed: one statement for every driver the ledger paid in it. Closing is idempotent. A statement that exists is never touched, and a month closes once.

Admin → Tax → Monthly income statements:

  • pick a month to see every driver's statement: trips, fares, commission, income, the support estimate, the reference and any dispute;
  • Close {month}: close a finished month now instead of waiting for the hourly job (needs the tax.issue permission);
  • Export CSV: the server's own file, one row per driver with the national ID (from the approved Saudi ID document), the figures in minor units, the hash, and whether a dispute is open;
  • Answer the driver on an open dispute (needs tax.issue).

Driver app → Menu → Monthly statements (shown only where statements are on):

  • This month so far, marked "Not closed yet: the figures can still change until the month ends", with the support estimate;
  • Every closed month, with its reference;
  • Share: the month as CSV, through the phone's share sheet;
  • Dispute: a note of 5 to 500 characters, such as "Two trips on 28 October are missing". The month then shows "Disputed — waiting for an answer", and later the operator's answer.

Correcting a month

A statement is never edited. If a dispute is upheld, post a wallet adjustment for the driver (Admin → Drivers → wallet). It lands in the current month and appears on that month's statement, under Incentives. Say so in the answer to the dispute.

Not covered

  • Sending to the authority. The export is the file. There is no automatic submission to the Future Work Company or the transport authority's data link. The regulator link (compliance/) carries trips, not monthly income.
  • PDF. Drivers share a CSV; there is no PDF statement.
  • The 24-month limit. HRDF tracks how many months a driver has been paid. The app does not.

For maintainers

Area Files
Rules (pure) backend/src/payouts/income-statement.ts: monthBounds, statementHash, supportEstimate, CSV row, market section
Service payouts/income-statement.service.ts: figures (ledger), closeMonth, hourly closePreviousMonth, driver and admin views, dispute, resolve
API Driver: GET /driver/income-statements, GET /driver/income-statements/:month/csv, POST /driver/income-statements/:month/dispute. Admin: GET /admin/income-statements?month=, GET /admin/income-statements/export?month=, POST /admin/income-statements/close, PATCH /admin/income-statements/:id/resolve
Storage Migration 1700000133000-IncomeStatements.ts: driver_income_statements with the immutability trigger, and income_statement_months
Admin components/tax/IncomeStatementsReport.tsx on the Tax page
Driver app/(app)/statements.tsx; the menu row appears when statements are on
Tests payouts/income-statement.spec.ts
source: docs/income-statements.md (ships identically in the product zip)