v1

latestOpenAPI 3.0.12026-07-141671231.8 MB
Ledger Entry Lines

List categories of a Ledger Entry line

List categories of a Ledger Entry line

ℹ️ This endpoint requires one of the following scopes: ledger_entries:readonly, ledger_entries:all

get/api/external/v2/ledger_entry_lines/{ledger_entry_line_id}/categories

Path parameters

ledger_entry_line_idinteger required

Existing Ledger Entry line (id)

Query parameters

cursorstring
Example:MjAyNS0wMS0wOVQwODoyNDozOC44MTI0NTha

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

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

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

The list of categories of the Ledger Entry line

has_moreboolean required

Indicates whether additional results are available beyond this set. Use this flag to determine if another request is needed.

next_cursorstring nullable required

Cursor to retrieve the next set of results. Include this value in the cursor parameter of your next request to fetch subsequent items. A null next_cursor in the response indicates no further results.

Example response

{
  "items": [
    {
      "id": 421,
      "label": "HR - Salaries",
      "weight": "0.25",
      "category_group": {
        "id": 229
      },
      "analytical_code": "CODE123",
      "created_at": "2023-08-30T10:08:08.146343Z",
      "updated_at": "2023-08-30T10:08:08.146343Z"
    }
  ],
  "has_more": true,
  "next_cursor": "MjAyNS0wMS0wOVQwODoyNDozOC44MTI0NTha"
}