GET
/
api
/
external
/
v2
/
supplier_invoices
/
{supplier_invoice_id}
/
categories
List categories of a supplier invoice
curl --request GET \
  --url https://app.pennylane.com/api/external/v2/supplier_invoices/{supplier_invoice_id}/categories \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
  "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"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

supplier_invoice_id
integer
required

Query Parameters

cursor
string

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.

Example:

"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"

limit
integer

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

Required range: 1 <= x <= 100
Example:

20

Response

The list of categories of the supplier invoice

has_more
boolean
required

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

Example:

true

next_cursor
string | null
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:

"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"

items
object[]
required