GET
/
invoices
/
{invoice}
/
line-items
Header
Path
Query
curl --request GET \
  --url https://dev.seqhq.io/api/invoices/{invoice}/line-items \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "id": "af60cab3-812d-4250-a051-0fb7133a00c7",
      "invoiceId": "cd11218d-fa00-4faa-8684-a43113d076a8",
      "title": "Ferraris",
      "description": "Red",
      "quantity": "2",
      "rate": "20000.10",
      "taxRate": "0.2",
      "servicePeriodStart": "2022-10-20T00:00:00Z",
      "servicePeriodEnd": "2022-10-24T00:00:00Z",
      "servicePeriod": {
        "startDate": "2022-10-20",
        "endDate": "2022-10-24"
      },
      "index": 2,
      "groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
      "netTotal": "51.20",
      "totalTax": "2.50",
      "grossTotal": "101.23",
      "priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
      "rateDisplay": "ABSOLUTE",
      "externalIds": [
        {
          "key": "Xero",
          "value": "123"
        }
      ],
      "revenueClassification": "EARNED",
      "creditGrantId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95"
    }
  ],
  "pagination": {
    "after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
    "before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
    "totalResultSize": 10
  }
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Path Parameters

invoice
string
required

The Invoice ID

Query Parameters

before
string

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.

after
string

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.

limit
integer

Maximum number of objects to return per-page.

sortOrder
string

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

Response

200 - application/json
items
object[]
required
pagination
object
required