v1
latestOpenAPI 3.0.12026-07-144840447.2 KBCategory Groups
List category groups
This endpoint returns a list of category groups
ℹ️ This endpoint requires the following scope: categories:readonly
get/api/external/firm/v1/companies/{company_id}/category_groups
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.
Response
OK
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 989,
"label": "Types de dépenses / revenus",
"categories": {
"url": "https://app.pennylane.com/api/external/firm/v1/companies/6/category_groups/42/categories"
},
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}