v1
latestOpenAPI 3.0.12026-07-144840447.2 KBCategories
List categories
List categories
ℹ️ This endpoint requires the following scope: categories:readonly
get/api/external/firm/v1/companies/{company_id}/categories
Path parameters
company_idinteger required
Example:1
Existing company identifier (id)
Query parameters
cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
limitinteger
Example:20
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
filterstring
Example:[{"field": "category_group_id", "operator": "eq", "value": "42"}]
You can choose to filter items on specific fields. Available fields and values:
- id : lt, lteq, gt, gteq, eq, not_eq, in, not_in
- label : start_with, eq, in
- category_group_id : lt, lteq, gt, gteq, eq, not_eq, in, not_in
- analytical_code : eq, not_eq, in, not_in
sortstring
Example:id
You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id
Response
A list of categories
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 42,
"label": "Alimentaire",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z",
"archived_at": "2023-08-30T10:08:08.146343Z",
"category_group": {
"id": 348
},
"analytical_code": "CODE123"
}
]
}