Invoice Line Items

List all Line Item Groups

Changed on

List all Line Item Groups

get/invoices/{invoice}/line-item-groups

Request

  • Base URL
    https://sandbox.sequencehq.com/api
  • URL
    https://sandbox.sequencehq.com/api/invoices/{invoice}/line-item-groups
  • Auth
    none declared. Required headers: Authorization

Path parameters

invoicestring required

The Invoice ID

Query parameters

beforestring

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

afterstring

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

limitinteger

Maximum number of objects to return per-page. Must be between 1 and 100 (inclusive).

sortOrder'ASC' | 'DESC'

Sort order. Default: DESC (descending, most often used for reverse chronological sorting).

Headers

Authorizationstring required

Your API credentials. Eg. Basic {credentials}.

sequence-version'2024-07-30'

Use this header to select an API version

Response

OK

Example response

{
  "items": [
    {
      "id": "941272d1-f840-4e16-b698-0cd455c81e0e",
      "invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
      "title": "Cars",
      "description": "Charges for cars",
      "index": 1,
      "netTotal": "200000.00",
      "totalTax": "10.00",
      "grossTotal": "22000.00",
      "taxCategory": {
        "id": "28227c88-6dba-455f-9b30-b9c76957e610",
        "name": "VAT"
      }
    }
  ],
  "pagination": {
    "after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
    "before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
    "totalResultSize": 10
  }
}

Changes

    • breaking

      the query request parameter sortOrder was restricted to a list of enum values

    • breaking

      for the query request parameter limit, the format changed from no format to int32

    • warning

      deleted the header request parameter Sequence-Version

    • info

      added the new optional header request parameter sequence-version

    • info

      added the new enum value ASC to the query request parameter sortOrder

    • info

      added the new enum value DESC to the query request parameter sortOrder

    • breaking

      removed the enum value ASC from the query request parameter sortOrder

    • breaking

      removed the enum value DESC from the query request parameter sortOrder

    • warning

      deleted the header request parameter sequence-version

    • info

      added the new optional header request parameter Sequence-Version

    • info

      for the query request parameter limit, the format was generalized from int32 to no format