Account
Chart of Accounts entries. Most other endpoints reference account codes from here.
Path Parameter:
:CODE (string) — the account code in the URL pathEndpoints
GET
/accountList accounts with pagination and filters
GET
/account/:CODEGet a single account by code
POST
/accountCreate a new account
PUT
/account/:CODEUpdate a account by code
DELETE
/account/:CODEDelete a account by code
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| dockey | integer | No | Set to 0 on POST for auto-assign. Default: 0 |
| parent | integer | Yes | Parent account's dockey (integer, not the code). Valid parents: 3 (EQUITY), 18 (CURRENT ASSETS), 28 (CURRENT LIABILITIES), 60 (EXPENSES). Proven: 3. |
| code | string | Yes | Account code. Proven: "SUB-EQ". |
| description | string | Yes | Account name. Proven: "Sub of Equity". |
| acctype | string | Yes | Classification. Values: "CP", "CA", "CL", "FA", "EP", "CO", "SA", "OI", "SL", "RE", "OA". Proven: "CA". |
| specialacctype | string | No | Special type: "DC", "CC", "BA", "CH", "BS", "AD" or " ". Default: " " |
| description2 | string | No | Secondary description. Default: "" |
| tax | string | No | Default tax code for this account. Default: "" |
| cashflowtype | integer | No | Cash flow classification. Default: 0 |
| sic | string | No | SIC code. Default: "" |
Examples
POST — Create Account (full template)
POST /account
{
"dockey": 0,
"parent": 3,
"code": "SUB-EQ",
"description": "Sub of Equity",
"description2": "",
"acctype": "CA",
"specialacctype": " ",
"tax": "",
"cashflowtype": 0,
"sic": ""
}GET — Find Parent Accounts
GET /account?offset=0Notes
- parent must be the parent account's dockey integer — not the account code string.
- Include all template fields from the POST template; an empty body crashes the backend.
- To find valid parents: GET /account?offset=0 and look for accounts whose dockey appears as another account's parent value.
