Banking API v2
A REST API for basic banking.
Register a user, open an account, move money between accounts. Auth is handled with JWT. Balances are stored as integers (pence) so there are no rounding errors, and transfers run inside a database transaction, so if something fails it rolls back instead of leaving a half-finished transfer. There are user and admin roles.
POST /transactions/transfer/{account_id} Authorization: Bearer <jwt> { "amount_pence": 5000 } 200 OK { "status": "complete", "amount_pence": 5000, "sender_balance": 12750 }