Skip to content

Accounting ​

Endpoints for managing journal entries, chart of accounts, accounting periods, and account determination rules.

Journal entries ​

List entries ​

GET /journal-entries
ParameterTypeDescription
pagenumberPage (default: 1)
limitnumberRecords per page (default: 50)
startDatestringStart date (YYYY-MM-DD)
endDatestringEnd date (YYYY-MM-DD)
statusstringposted, draft, reversed
entryTypestringautomatic, manual, reversal

Get entry by ID ​

GET /journal-entries/:id

Create manual entry ​

POST /journal-entries
json
{
  "date": "2026-04-16",
  "description": "Accounting adjustment",
  "lines": [
    {
      "chartOfAccountId": 1,
      "debit": 1000.00,
      "credit": 0,
      "lineDescription": "Debit to cash"
    },
    {
      "chartOfAccountId": 2,
      "debit": 0,
      "credit": 1000.00,
      "lineDescription": "Credit to revenue"
    }
  ]
}

Balance validation

Total debits must equal total credits. Otherwise the API returns a 400 error.

Post draft entry ​

POST /journal-entries/:id/post

Reverse entry ​

POST /journal-entries/:id/reverse

Creates a new entry with inverted debits/credits and marks the original as reversed.

Print entry ​

POST /journal-entries/:id/print

Returns a PDF of the journal entry.


General ledger ​

Query ledger ​

GET /journal-entries/ledger
ParameterTypeDescription
chartOfAccountIdnumberChart of account ID
startDatestringStart date
endDatestringEnd date

Chart of accounts ​

List accounts ​

GET /chart-of-accounts

Create account ​

POST /chart-of-accounts

Update account ​

PUT /chart-of-accounts/:id

Removing chart accounts ​

Only from the web app; API keys cannot use DELETE on the chart of accounts.

Import default chart ​

POST /chart-of-accounts/import-default

Accounting periods ​

List periods ​

GET /accounting-periods

Create period ​

POST /accounting-periods

Close period ​

POST /accounting-periods/:id/close

Reopen period ​

POST /accounting-periods/:id/reopen

Account determination rules ​

List rules ​

GET /account-determination-rules

Create / update rule ​

POST /account-determination-rules

Resolve account ​

POST /account-determination-rules/resolve

Automatic journal entries ​

Entries are automatically created for these events:

EventEntry type
Create sales invoice (01, 113)A/R + Revenue + Tax
Create purchase invoice (103, 105, 106)Expense + Tax + A/P
Confirm purchase doc. (auto-capture flow)Deferred until confirmation
Register paymentBank/Cash + A/R or A/P
Cancel documentReversal of original entry
Cancel paymentReversal of payment entry