Skip to Content
Trips Enjoy
System Workflows

Money

The settlement pipeline — double-entry ledger, weekly Monday payouts, invoice retries, daily reconciliation and the finance digest.

Money moves on rails: every booking posts to a double-entry ledger, payouts run Mondays at 06:00, invoice numbering retries three times before finance review, and a daily reconciliation at 08:00 Cairo time catches whatever the gateway disagrees about. This is the engine view of state machine 7.9 (Settlement); the finance role surface is UF-ADM-13.

Delivery phase: P2 (daily ledger reconciliation), P4 (weekly payouts), P5 (full accounting and invoices).

Trigger and actors

  • Trigger: a paid booking, a completed trip, a refund, or the weekly clock.
  • Actors: the ledger; the payout run; the invoice service; the reconciliation job; finance.

Diagram

Timers and rules

StepTimer (verbatim)Rule trace
LedgerDouble-entry ledger with event types booking_paid, refund, coupon, deal_cost, commission, gateway_fee, plan_charge, payout, invoice, settlement, reversalFR-ACC-01
Commissionplaceholder "10 percent of the base trip price, configurable per market and per deal type"D-15, OD-15, FR-NEG-05
Payout cadence"weekly payout runs on Mondays at 06:00" through Stripe Connect Express, bank transfer or a local providerFR-ACC-03, BRD 5.2, D-28
Negative balance"netted against the next payout in the same currency, and no payout runs while it is negative"FR-ACC-03, D-173
HoldsPayouts held during a lab-test pauseD-175
Invoice numbering"numbering retries 3 times, then the case goes to finance review"; issued invoices are never edited, credit notes reference themFR-ORG-07, D-179 to D-181
Invoice typeB2B when a tax number is present, else B2CFR-ORG-07, BRL-28, D-180
ReconciliationGateway settlement reports compared with the ledger daily; exceptions listedFR-PAY-05, D-29
Finance digest"A finance exceptions digest goes out daily at 08:00 Cairo time"; dashboards warn when data is more than 26 hours oldFR-ACC-09, D-176, D-250
Settlement closureClosed when "Every line paid" and "No open dispute"FR-ACC-05, BR-ACC-06, D-174
CurrenciesThe market comes from the country; switches follow the market; rounding and display per marketFR-MKT-02, FR-MKT-04, FR-MKT-05
Tenant isolationEvery ledger line is tenant-scoped with the owning organizationFR-ORG-01
Invoices across partiesInvoices for every party pair — traveler, organization, supplier, platformFR-ACC-08
Revenue reportingPlan revenue reported for financeFR-SUB-06
Exports"expire after 7 days", "ready within 15 minutes"FR-ACC-06, D-249, D-177

Stories

  • As a finance operator, I want payouts to run themselves every Monday with negative balances netted, so that my week starts with exceptions, not with manual runs. (FR-ACC-03, D-28)
  • As an organization owner, I want a daily digest of money exceptions at a known hour, so that problems surface before callers do. (FR-ACC-09, D-176)
  • As an auditor, I want issued invoices immutable with credit notes as the only correction, so that the trail never rewrites history. (D-181)
  • As a driver, I want my payout held — not lost — during a lab pause, so that resolving paperwork restores the money. (D-175)

On this page