Modules
Treasury
Money accounts (banks, petty cash) with their balance, movements and transfers.
Overview
Requires the Treasury module. Payments received, refunds, vendor payments, work order payments and expenses become movements of the account chosen when they are recorded (or the account linked to the bank, or the default account of the payment method). Accounts are set up in the dashboard.
Endpoints
| Method | Path | Permission | Description |
|---|---|---|---|
GET | /v1/treasury-accounts | read | Accounts with balance and income/expense of the period (from, to) |
GET | /v1/treasury-accounts/{id} | read | Retrieve an account |
GET | /v1/treasury-movements | read | Movements, most recent first (account_id, from, to, limit) |
POST | /v1/treasury-movements | write | Manual income or expense (as_expense also creates the expense) |
POST | /v1/treasury-transfers | write | Transfer between accounts (amount_in when currencies differ) |
Transfer Between Accounts
sourceof a movement:manual,transfer,invoice_payment,invoice_refund,bill_payment,work_order_paymentorexpense, with thedocumentit comes from- A transfer creates two movements with the same
transfer_id; with different currencies theexchange_rateis kept