Core concepts
Billing lifecycle
How usage becomes an immutable invoice and an explicit payment.
Railzway processes billing as a deterministic sequence:
- Accept append-only usage events.
- Aggregate events according to meter definitions.
- Resolve the effective rate and contract at event time.
- Produce rated charges and apply eligible credits.
- Preview, then finalize an immutable invoice.
- Start payment collection explicitly when required.
The engine knows what to bill. Payment integrations determine how to collect the finalized amount.