Account details structure
Payment account details are defined with the following structure (fromapp/lib/types.ts:64-79):
Accessing account settings
Navigate to/account to access the account details page. This page allows you to:
- Create multiple payment account profiles
- Set a default account for invoices
- Include international payment details
- Add payment instructions and notes
Adding your first payment account
Open the account form
On the Account Details page:
- If no accounts exist, click Add Account in the empty state
- If accounts exist, click + Add Account above the account list
Enter basic account information
Fill in the required fields:Account Holder Name (required)
- The name on the bank account
- Can be personal or business name
- Must match your bank records
- Example: “John Smith” or “Acme Corporation Ltd”
- Full name of your bank or financial institution
- Examples: “Barclays Bank”, “Chase Bank”, “HSBC”
- Your bank account number
- Format varies by country
- UK: Typically 8 digits
- US: Typically 9-12 digits
Add regional banking codes
Depending on your bank’s location, add the appropriate codes:Sort Code (optional)
- Used in UK and Ireland
- Format: 6 digits (XX-XX-XX)
- Identifies the specific bank branch
- Example: “20-00-00”
- Used in US, Canada, and some other countries
- Also called ABA number or transit number
- Format: 9 digits
- Identifies the financial institution
- Example: “021000021”
You typically need either a sort code (UK) or routing number (US), but not both. Include whichever is relevant for your banking region.
Add international payment details
For international payments, include:IBAN (optional)
- International Bank Account Number
- Used primarily in Europe and many other countries
- Format varies by country (up to 34 characters)
- Example: “GB82 WEST 1234 5698 7654 32”
- SWIFT code or Bank Identifier Code
- Used for international wire transfers
- Format: 8 or 11 characters
- Example: “BARCGB22” or “BARCGB22XXX”
- The currency of the account
- Free text field
- Examples: “GBP”, “USD”, “EUR”
- Helps customers understand which currency to send
Add payment instructions
Customize the payment experience:Payment Reference (optional)
- Instructions for what customers should include with payment
- Helps you identify incoming payments
- Examples:
- “Please quote invoice number”
- “Include your company name”
- “Reference: ACME-INV”
- Additional payment instructions or terms
- Appears on the invoice
- Examples:
- “Payment due within 30 days”
- “Wire transfer fees to be paid by sender”
- “For international payments, please use SWIFT transfer”
Set as default account
Check “Set as default account” to make this the default payment method on new invoices.Only one account can be default at a time.
Managing multiple payment accounts
You can create multiple payment account profiles for:- Different currencies: Separate accounts for USD, EUR, GBP, etc.
- Different banks: Business account vs. personal account
- Different payment methods: Wire transfer vs. ACH vs. international
- Client-specific accounts: Special accounts for major clients
Changing the default account
To set a different account as default:- Find the account you want to make default
- Click the star icon in the account card
- The account is marked with a “Default” badge
- The previous default is automatically unmarked
Editing payment accounts
To update an existing account:- Click the edit icon (pencil) on the account card
- The form opens with current account data
- Make your changes
- Click “Update Account” to save
updatedAt timestamp.
Editing an account does not affect existing invoices that already reference this account. They display the information that was current when the invoice was created.
Deleting payment accounts
To remove an account:- Click the delete icon (trash) on the account card
- Confirm deletion: “Delete this account profile?”
- The account is permanently removed
Database structure
Account details are stored in the database (fromapp/lib/schema.sql:73-88):
- Only 3 fields are required: account holder name, bank name, account number
- All regional and international codes are optional
is_defaultis stored as INTEGER (0 or 1) for SQLite compatibility- Text fields have no length limits
Account card display
Each account appears in a detailed card showing: Header:- Account holder name (title)
- Bank name (subtitle)
- “Default” badge if applicable
- Account Number
- Sort Code (if provided)
- Routing Number (if provided)
- IBAN (if provided, displayed in monospace font)
- SWIFT/BIC (if provided)
- Currency (if provided)
- Payment Reference (if provided, spans full width)
- Notes (if provided, spans full width)
- Star icon: Set as default (hidden for current default)
- Pencil icon: Edit account
- Trash icon: Delete account
“No account profiles yet. Add one to include payment details on your invoices.”
International payment best practices
Security considerations
The system does NOT validate bank account numbers, IBAN, or SWIFT codes for correctness. Double-check all details before saving to avoid payment delays.
Payment reference examples
Good payment reference instructions:- ✅ “Please quote invoice number as reference”
- ✅ “Include your company name and invoice date”
- ✅ “Reference format: ACME-[Invoice Number]”
- ✅ “Please use invoice number INV-XXXXX as payment reference”
- ❌ “Include reference”
- ❌ “Add details”
- ❌ “See invoice”
Common account configurations
UK Business Account
US Business Account
EU Business Account
Next steps
- Learn how to create invoices that include your payment details
- Set up your company profile for professional invoices
- Configure multi-currency support for international clients