Developers
Example
API reference
Account Types
get
/v1/account-typesList account types
account_types.listread tokenidempotent
The five account types, with the side each one's balance grows on and the code prefix its accounts must carry. The same for every ledger.
Parameters
limit integer · query | Page size, 1–200. |
cursor string | null · query | The next_cursor of the previous page. |
X-Organization-Id string | null · header |
Returns 200 · AccountTypeList
data | |
has_more boolean · required | |
next_cursor string | null · required |
curl -X GET "https://api.lumaledger.app/v1/account-types" \
-H "Authorization: Bearer $LUMALEDGER_TOKEN"Objects
AccountType
A kind of account: which side of the books it sits on, and which side increases it.
Fields
code_prefixes array of string · required | What an account code of this type must start with (accounts.create). |
id integer · required | |
name string · required | asset, liability, equity, income or expense. Accounts name their type by this, as type. |
normal_balance string · required | debit or credit: the side that increases it. |
AccountTypeList
A page of account types, in id order.
Fields
data | |
has_more boolean · required | |
next_cursor string | null · required |