Accounting API
A real ledger behind your app, including cheques.
Invoices and bills, payments, post-dated cheques, journals, accounts, currencies, fiscal years and financial reports: double-entry accounting your application calls instead of builds.
90 endpoints · OpenAPI 3.1
GET /reports/trial-balance/{currency_id}/{fiscal_year_id}Authorization: Bearer <access token>User-Agent: your-app/1.0What you can call
Invoices and bills
Create, return and revoke vouchers, with items, expenses, tax and history.
- POST/voucher
- GET/vouchers
- PUT/voucher/{voucher_id}/return
- PATCH/voucher/{voucher_id}/revoke
Payments and cheques
Record payments and refunds, and move post-dated cheques through their states.
- POST/voucher/payments
- POST/voucher/refund/payments
- PATCH/voucher/{voucher_id}/post-dated/status
- PATCH/voucher/{voucher_id}/post-dated/refund/status
Journals
Your own double-entry journals next to the ones vouchers post for you.
- POST/journal
- GET/journals
- PATCH/journal/modify/{journal_id}
- PATCH/journal/{journal_id}/attachment
Accounts and groups
A chart of accounts with account groups, opening balances and balances per currency.
- POST/account-group
- POST/account
- GET/account/{account_id}/currencies
- PATCH/account/{account_id}/opening-balance
Currencies and fiscal years
Exchange rates, the open fiscal year and switching to the next one.
- GET/currencies
- GET/fiscal-year/open
- POST/fiscal-year
- PATCH/fiscal-year/{fiscal_year_id}/switch
Reports
Statements, receivables, payables, trial balance, balance sheet, income, tax and cash flow.
- GET/reports/trial-balance/…
- GET/reports/balance-sheet/…
- GET/reports/income/…
- GET/reports/cash-flow/…
How it fits together
Your applications talk to one service. Identity signs the user in, and the service posts to the ledger.
Included with every integration
Identity comes with every API: you don't build sign-in, users or permissions.
- Sign-in with a password or a one-time code
- Users, roles and permissions
- API clients with secret rotation
- Audit and usage logs
- Error codes listed per method and per field
- An OpenAPI 3.1 spec and a Postman collection
{ "success": false, "error": "NET-111", "message": "Validation error in parameters", "errors": [ { "field": "name", "code": "IDT-141" } ]}Before and after
Without Lunexa: Double-entry accounting built by your team
With the Lunexa API: Vouchers, journals and accounts ready to call
Without Lunexa: Cheque states kept in your own tables
With the Lunexa API: Post-dated status and refunds on every voucher
Without Lunexa: Financial reports written from raw rows
With the Lunexa API: Trial balance, balance sheet, income and cash flow endpoints
Without Lunexa: Sign-in, users and permissions built from scratch
With the Lunexa API: Users, roles and API clients from Identity
Build on Lunexa
Tell us what you are building and we'll set up an API client for your team.