Overview
Accounts represent your financial containers - where your money lives. Your Finance App supports multiple account types, each serving different purposes in your financial life.Multiple Account Types
Wallets, Savings, Investments, and Credit Cards in one place
Multi-Currency
Each account has its own currency (ARS, USD, EUR)
Savings Goals
Set target amounts and track progress for savings accounts
Real-Time Balance
Automatic balance updates with every transaction
Account Types
Your Finance App supports four types of accounts:WALLET
WALLET
Your everyday spending account. Use it for:
- Daily expenses
- Bill payments
- Regular income deposits
SAVINGS
SAVINGS
Accounts for setting aside money for specific goals:
- Emergency fund
- Vacation savings
- Large purchases
INVESTMENT
INVESTMENT
Track your investment portfolios:
- Stock accounts
- Crypto wallets
- Retirement accounts
CREDIT_CARD
CREDIT_CARD
Manage credit card balances:
- Track spending on credit
- Monitor credit utilization
- Plan repayments
Creating an Account
Create a new account with POST/accounts:
Request Parameters
Account name (e.g., “Main Wallet”, “Emergency Fund”)
Account type:
WALLET, SAVINGS, INVESTMENT, or CREDIT_CARDCurrency code:
ARS, USD, or EURHex color code for visual identification (e.g., #10B981)
Icon name (default: “wallet”)
Target amount for savings goals (SAVINGS accounts only)
Target date for reaching savings goal (ISO date string)
Response
New accounts always start with a balance of 0. Use the deposit endpoint or create income transactions to add funds.
Savings Goals
Set targets for SAVINGS accounts to track progress:Progress Calculation: Progress = (current balance / target amount) × 100, capped at 100%.
Listing Accounts
Get all your accounts with GET/accounts:
Balance Tracking
Account balances update automatically when you:- Create a transaction
- Update a transaction
- Delete a transaction
- Transfer between accounts
- Make a deposit
Currency Rules
Each account has a fixed currency that cannot be changed:Single Currency Per Account
Single Currency Per Account
Once created, an account’s currency is permanent. This ensures:
- Clear transaction history
- Accurate balance calculations
- No currency conversion confusion
Transaction Currency Validation
Transaction Currency Validation
All transactions on an account must match its currency:Error: “No puedes crear una transacción en USD en una cuenta configurada en ARS.”
Transferring Between Accounts
Move money between your accounts with POST/accounts/transfer:
Transfer Rules
Same Currency Required
Same Currency Required
Source and target accounts must have the same currency. Cross-currency transfers are not yet supported.
Sufficient Funds
Sufficient Funds
The source account must have enough balance to cover the transfer amount.
Automatic Transactions
Automatic Transactions
Transfers create two transactions:
- TRANSFER (outgoing) from source account
- INCOME (incoming) to target account
Atomic Operation
Atomic Operation
The entire transfer succeeds or fails as one unit. You’ll never have money disappear.
Transfer Response
Depositing Funds
Add funds to an account (useful for testing) with POST/accounts/:id/deposit:
The deposit endpoint is primarily for testing. In production, create regular income transactions instead.
Updating Accounts
Update account properties with PATCH/accounts/:id:
- Name
- Color
- Icon
- Target amount (for SAVINGS accounts)
- Target date (for SAVINGS accounts)
- Default status
Default Account
Mark one account as default for quick access:- Quick transaction creation in mobile apps
- Automatic transaction assignment
- Dashboard primary view
Deleting Accounts
Delete an account with DELETE/accounts/:id:
Deletion Rules
Cannot Delete Default
Cannot Delete Default
You cannot delete an account marked as default. Set another account as default first.
Transactions Remain
Transactions Remain
Deleting an account doesn’t delete its transactions. They remain in the database for historical records.
Hard Delete
Hard Delete
Unlike categories and transactions, accounts are hard-deleted (permanently removed).
Best Practice: Before deleting an account, transfer its balance to another account to maintain accurate net worth.
Best Practices
Separate Currencies
Separate Currencies
Create one account per currency you use regularly. This makes tracking and reporting easier.
Name Descriptively
Name Descriptively
Use clear names like “USD Savings” or “Daily ARS Wallet” instead of “Account 1”.
Set Realistic Goals
Set Realistic Goals
For savings accounts, set achievable target amounts based on your income and timeline.
Use Colors Consistently
Use Colors Consistently
Group related accounts with similar colors (e.g., all USD accounts in blue).
Review Regularly
Review Regularly
Check your account balances weekly to catch any unexpected changes.
