API Spec Index
This folder defines the contract between services for the offline NFC wallet system. It covers all HTTP endpoints exposed by the backend to terminal, gate, station, and scout clients.
API Spec is Layer 4. It depends on Tech Specs (Layer 3) for behavior rules and System Design (Layer 2) for trust model and session grant concepts.
Sections
- Overview — auth model, base URL, versioning, common errors
- Authentication — terminal token issuance
- Session Grants —
GET /api/session-grant - Policy —
GET /api/policy - Cards — registration, read, top-up, block, reissue
- Reconciliation —
POST /api/reconcile - Terminal Reports —
POST /api/terminal-report
Cross-references
- Terminal behavior rules: Tech Specs §8
- Session grant structure: Tech Specs §12
- Risk & financial limits: Tech Specs §9
- Status codes: Tech Specs §15