Bank Record Model and Fee Schedule
The records, payment lifecycle, fee schedule and deployment configuration behind the banking service interface.
LP-3042: Bank Record Model and Fee Schedule
Abstract
The Lux bank platform is a multi-currency banking system providing accounts, payments, foreign exchange, compliance, and KYC from a single Go binary. LP-3040 specifies the API surface it serves. This LP specifies what sits behind that surface: the record model and its ownership rules, the payment lifecycle, the fee schedule, and the deployment configuration.
There is one route set for banking and it is LP-3040's /v1/bank/... catalog. Nothing here introduces a second one.
Records
Every account-scoped record carries an owner; the server matches it against the authenticated principal on every read and write.
| Record | Fields | Access |
|---|---|---|
accounts | owner, entityName, entityType, currency, status, kycStatus, riskRating, dailyLimit | owner-scoped list/view |
beneficiaries | account, name, bankName, iban, swiftBic, country, verified | account.owner-scoped |
transactions | account, beneficiary, type, direction, amount, currency, status, reference, providerTransactionId | account.owner-scoped |
balances | account, currency, available, held | superuser only |
wallets | account, currency, walletId, status | account.owner-scoped |
conversions | account, sellCurrency, buyCurrency, sellAmount, buyAmount, rate, quoteId, status | account.owner-scoped |
documents | account, type, file, status, reviewedBy, reviewNote | account.owner-scoped |
fees | transaction, type, amount, currency | superuser only |
audit_log | account, actor, action, detail | superuser only, immutable |
sessions | user, token, expiresAt | user-scoped |
Amounts are integers in minor units. Responses carry decimals so the client knows how to render (2 for most fiat, 0 for JPY, 6 for crypto).
Payment Lifecycle
A payment moves through the LP-3040 status machine:
pending -> processing -> completed
pending -> failed | cancelled
processing -> failed | cancelled
Each transition does work:
- pending — validate balance, KYC and limits, then hold funds atomically
- processing — detect the rail (SEPA / FPS / ACH / SWIFT / Interac) and forward to the forex service, which executes through its provider adapter
- completed — provider webhook releases the hold and debits the balance
- failed / cancelled — the hold is reversed
Every transition is written to the immutable audit log. No other transition is accepted.
Fee Schedule
| Account type | Rate (bp) | Wire | SEPA | FPS | ACH | Interac |
|---|---|---|---|---|---|---|
| Individual | 50 | $25 | €5 | £0 | $0 | C$1.50 |
| Business | 30 | $25 | €5 | £0 | $0 | C$1.50 |
Volume discounts apply to the basis-point rate: 5 bp off above $100k/month, 10 bp off above $500k/month, 15 bp off above $1M/month.
Membership plans published at GET /v1/bank/plans (LP-3040) override the entity-type transaction limits; the published plan ladder is the single pricing source for every surface that renders plans.
Configuration
| Variable | Required | Description |
|---|---|---|
FOREX_SERVICE_URL | Yes | Forex service endpoint |
COMPLIANCE_SERVICE_URL | Yes | Compliance service endpoint |
WEBHOOK_HMAC_SECRET | Yes | HMAC key for webhook authentication, from KMS |
BANK_SANDBOX | No | Selects seeded sandbox rails (default on) |
BANK_ISSUER | No | Selects the card issuer adapter |
SMTP_HOST | No | Notification SMTP host |
SMTP_PORT | No | SMTP port (default 587) |
SMTP_USER | No | SMTP username |
SMTP_PASS | No | SMTP password, from KMS |
SMTP_FROM | No | Sender address |
Secrets are read from KMS. None of them are ever written to an environment file or committed.
Reference
| Resource | Location |
|---|---|
| Banking service interface | LP-3040 |
| Regulated platform architecture | LP-3041 |
| ISO 4217 | Currency codes |
| ISO 20022 | Financial messaging (SEPA, SWIFT) |
| PSD2 | EU Payment Services Directive |
Copyright
Copyright (c) 2026 Lux Industries Inc. All rights reserved.
Licensed under the MIT License.