Chart of accounts
Categories and balance sheet accounts.
Paths are relative to https://evenbooks.org/api/v1. How keys, errors, paging and versions work is in the guide; the whole reference is also an OpenAPI 3.1 document.
Administrator key marks endpoints that need a key with the admin role, Write access those a read-only key can’t call, and Idempotent those that accept an idempotency key.
List accounts
/accountsThe chart of accounts, by code. Archived accounts are left out unless includeArchived=true. withBalances=true adds each account’s balance from posted entries, in its natural direction (debit minus credit for assets and expenses, credit minus debit for the rest).
Parameters
includeArchivedboolean · QueryBooleanquerywithBalancesboolean · QueryBooleanquery
Response 200
array of AccountDto
Errors 400 · 401 · 403 · 404 · 409 · 429
Create an account
/accountsAdds a category or balance sheet account in the company’s currency. A parentId must be an account of the same type. For an income or expense account, scheduleCLine also sets its Schedule C line for the current tax year.
Request body
CreateAccountInput
codestringrequirednamestringrequiredtypestring · AccountTyperequiredOne of:
assetliabilityequityincomeexpenserolestring or nullOne of:
bankcredit_cardowner_equityowner_drawsparentIdstring · Uuid or nulldescriptionstring or nullscheduleCLinestring or null
Response 200
AccountDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Change an account
/accounts/{id}Omitted fields stay as they are. isActive: false archives the account; built-in system accounts cannot be archived. A new parent must have the same type. Needs version from the last read (409 version_conflict otherwise).
Parameters
idstring (uuid)path · required
Request body
UpdateAccountInput
versionintegerrequiredcodestringnamestringdescriptionstring or nullparentIdstring · Uuid or nullisActiveboolean
Response 200
AccountDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Schemas
The types these endpoints take or return, by name. Type names above link here.
AccountDto
idstringcodestringnamestringtypestring · AccountTypeOne of:
assetliabilityequityincomeexpenserolestring · AccountRole or null19 possible values
accounts_receivablecustomer_depositssales_tax_payableundeposited_fundsbankcredit_cardopening_balance_equityowner_equityowner_drawsretained_earningssales_discountsbad_debtbank_feesuncategorized_incomeuncategorized_expenseroundingadvance_paymentsprocessor_clearingprocessor_feesparentIdstring or nulldescriptionstring or nullcurrencystringisActivebooleanisSystembooleanversionintegerbalancestring · DecimalStringoptional
AccountRole
string
19 possible values
accounts_receivable customer_deposits sales_tax_payable undeposited_funds bank credit_card opening_balance_equity owner_equity owner_draws retained_earnings sales_discounts bad_debt bank_fees uncategorized_income uncategorized_expense rounding advance_payments processor_clearing processor_fees
AccountType
string
One of: asset liability equity income expense
DecimalString
decimal string
string
QueryBoolean
boolean
Uuid
string (uuid)