GET
/
api
/
external
/
v2
/
commercial_documents
/
{commercial_document_id}
/
invoice_line_sections
List invoice line sections for a commercial document
curl --request GET \
  --url https://app.pennylane.com/api/external/v2/commercial_documents/{commercial_document_id}/invoice_line_sections \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
  "items": [
    {
      "id": 444,
      "title": "Section #1",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
      "rank": 1,
      "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

commercial_document_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

sort
string
default:-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

200
application/json

Returns the list of invoice line sections for a commercial document

The response is of type object.