Accounts - List
List accounts for the selected business. Supports search by account number/name and filtering by type, usage, visibility, and tags.
Path Parameters
Business slug that scopes this request. If you do not have one yet, call common_accessible_businesses_list and pick a slug from the response.
Query Parameters
If set to true, it will return accounts that are selected to be shown in the UI.
If set to true, it will return accounts that have at least one entry.
Filter accounts by exact numeric account number.
Filter accounts by minimum numeric account number. Use together with number_lte for a bounded account range.
Filter accounts by maximum numeric account number. Use together with number_gte for a bounded account range.
A page number within the paginated result set.
Number of results to return per page.
A search term.
The following fields are searched:
| field | match mode |
|---|---|
number | prefix |
name | contains |
Filter accounts by account type enum values (for example ASS_PAY, LIA_DUE, REV_SAL, EXP).
ASS- VastaavaaASS_DEP- Poistokelpoinen omaisuusASS_VAT- ArvonlisäverosaatavaASS_REC- SiirtosaamisetASS_PAY- Pankkitili / käteisvaratASS_DUE- MyyntisaatavatLIA- VastattavaaLIA_EQU- Oma pääomaLIA_PRE- Edellisten tilikausien voittoLIA_DUE- OstovelatLIA_DEB- VelatLIA_ACC- SiirtovelatLIA_VAT- ArvonlisäverovelkaREV- TulotREV_SAL- Liikevaihtotulot (myynti)REV_NO- Verottomat tulotEXP- MenotEXP_DEP- PoistotEXP_NO- Vähennyskelvottomat menotEXP_50- Puoliksi vähennyskelpoiset menotEXP_TAX- VerotiliEXP_TAX_PRE- Ennakkoverot
Response Body
application/json
curl -X GET "https://example.com/v1/business/string/account/"{ "count": 123, "next": 2, "prev": 1, "size": 30, "results": [ { "id": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "number": "string", "padded_number": 0, "name": "string", "name_translations": [ { "key": "string", "value": "string" } ], "header_id": 0, "header_path": [ "string" ], "description": "string", "type": "ASS", "default_vat_code": 1, "default_vat_rate": 0.1, "default_vat_rate_label": "standard", "opening_balance": 0.1, "is_shown": true } ]}