> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transitsl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How Smart Transit works

> The four parts of the system, and how a fare becomes a payout.

## The four parts

> [card] [Web portal](https://docs.transitsl.com/web/sign-in.md)
>
> Used by SLPTA, operators, auditors and administrators to set up operators, vehicles, devices, routes, fares and trips, and to follow transactions, payouts and reports.

> [card] [POS app](https://docs.transitsl.com/pos/overview.md)
>
> Runs on the handheld card terminals carried by conductors and SmartPay agents. Collects fares by card tap or cash, checks and sells tickets, boards passengers and prints receipts.

> [card] [Public website](https://docs.transitsl.com/public/buy-a-ticket.md)
>
> Where passengers buy inter-city trip tickets, and where transport owners register themselves and their vehicles with SLPTA.

> [card] [Ticket scanner](https://docs.transitsl.com/public/ticket-scanner.md)
>
> A web page that turns a collector's own phone into a ticket scanner for inter-city boarding. It keeps working without a signal.

## How money moves

```mermaid theme={null}
flowchart LR
  P["Passenger pays<br/><small>card, cash or ticket</small>"] --> F["Fare recorded<br/><small>vehicle, route, device</small>"]
  F --> S["Split by tariff<br/><small>Operator · SLPTA · SmartPay</small>"]
  S --> A["Accrued balance"]
  A -->|"next day (T+1)"| V["Available balance"]
  V --> O["Payout approved<br/>and paid"]
```

1. **A passenger pays** on board: a SmartPay card tap, cash, or a route ticket bought earlier from an agent. Inter-city passengers buy a trip ticket in advance, online or from an agent.
2. **The fare is recorded** against the vehicle, the route, the terminal and the collector who took it.
3. **The fare is split** using the active [tariff](https://docs.transitsl.com/web/tariffs.md) for the route and vehicle type. For example, Le 10 split 80 / 15 / 5 credits Le 8 to the operator, Le 1.50 to SLPTA and Le 0.50 to SmartPay.
4. **Shares accrue** on each party's balance.
5. **Each night the accrued money becomes available** (T+1), and the system prepares one payout for each party with a payout account.
6. **An administrator approves the payout**, and the transfer is sent. See [Settlements](https://docs.transitsl.com/web/settlements.md).

### Trip tickets

An inter-city trip ticket settles when it is sold. The operator accrues the fare less its sales commission, set per operator; SmartPay accrues the commission. A ticket sold for cash by an agent is money the agent holds, and is handed in at the end of the shift.

## What every fare is tied to

```mermaid theme={null}
flowchart TB
  O[Operator] --> V[Vehicle]
  O --> D[Device / POS]
  D -->|linked to| V
  D -->|activated on| R[Route]
  R --> T["Tariff<br/><small>route + vehicle type</small>"]
  Z[Zone] --> St[Stops] --> R
```

A device can only collect fares once its operator, vehicle and route are set, and an active tariff exists for that route and the vehicle's type. See [Setting up the network](https://docs.transitsl.com/concepts/setup-order.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.