LPsLux Proposals
Wallets & Identity
LP-3042

Bank Record Model and Fee Schedule

Final

The records, payment lifecycle, fee schedule and deployment configuration behind the banking service interface.

Category
Interface
Created
2026-08-26

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.

RecordFieldsAccess
accountsowner, entityName, entityType, currency, status, kycStatus, riskRating, dailyLimitowner-scoped list/view
beneficiariesaccount, name, bankName, iban, swiftBic, country, verifiedaccount.owner-scoped
transactionsaccount, beneficiary, type, direction, amount, currency, status, reference, providerTransactionIdaccount.owner-scoped
balancesaccount, currency, available, heldsuperuser only
walletsaccount, currency, walletId, statusaccount.owner-scoped
conversionsaccount, sellCurrency, buyCurrency, sellAmount, buyAmount, rate, quoteId, statusaccount.owner-scoped
documentsaccount, type, file, status, reviewedBy, reviewNoteaccount.owner-scoped
feestransaction, type, amount, currencysuperuser only
audit_logaccount, actor, action, detailsuperuser only, immutable
sessionsuser, token, expiresAtuser-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 typeRate (bp)WireSEPAFPSACHInterac
Individual50$25€5£0$0C$1.50
Business30$25€5£0$0C$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

VariableRequiredDescription
FOREX_SERVICE_URLYesForex service endpoint
COMPLIANCE_SERVICE_URLYesCompliance service endpoint
WEBHOOK_HMAC_SECRETYesHMAC key for webhook authentication, from KMS
BANK_SANDBOXNoSelects seeded sandbox rails (default on)
BANK_ISSUERNoSelects the card issuer adapter
SMTP_HOSTNoNotification SMTP host
SMTP_PORTNoSMTP port (default 587)
SMTP_USERNoSMTP username
SMTP_PASSNoSMTP password, from KMS
SMTP_FROMNoSender address

Secrets are read from KMS. None of them are ever written to an environment file or committed.

Reference

ResourceLocation
Banking service interfaceLP-3040
Regulated platform architectureLP-3041
ISO 4217Currency codes
ISO 20022Financial messaging (SEPA, SWIFT)
PSD2EU Payment Services Directive

Copyright (c) 2026 Lux Industries Inc. All rights reserved.

Licensed under the MIT License.