---
title: "Get invoice line items by invoice Id"
method: GET
path: "/1.0/invoices/{invoiceId}/lines"
tags: ["Invoices"]
---

# Get invoice line items by invoice Id

`GET /1.0/invoices/{invoiceId}/lines`

## Path parameters

- `invoiceId` integer, required

## Query parameters

- `pageSize` number
- `pageToken` string

## Response `200`

The requested action was successfully executed.

- ExampleAPIResponseInvoiceLineItems
  - `data` InvoiceLineItemResponseEntity[] — Reflects all the default and custom fields and their values for the object searched, in an array format. If the includeFields param is utilised in the request body, it will return a customised response.
    - `invoiceLineItemId` integer — The unique identifier for the invoice line item.
    - `description` string — Description of the line item or service provided.
    - `quantity` number — The quantity of the item or service.
    - `unitPrice` number — The unit price for the item or service.
    - `amount` number — The total amount for this line item (quantity * unit price).
    - `sourceId` integer — The unique identifier of the source entity (e.g., project ID) that this line item is associated with.
    - `sourceType` 'PROJECT' — The type of source entity that this line item is associated with (e.g., PROJECT).
    - `taxCode` TaxCodePublicAPIResponseEntity — Tax code information for this line item.
      - `taxCodeId` integer — The unique identifier for the tax code
      - `taxCodeName` string — The name of the tax code
      - `taxCodeRate` number — The tax rate percentage for the tax code
      - `taxCodeAmount` number — The tax amount calculated for this tax code
    - `taxComponents` TaxComponentPublicAPIResponseEntity[] — List of tax components that make up this tax code.
      - `taxComponentId` integer — The unique identifier for the tax component
      - `taxComponentName` string — The name of the tax component
      - `taxComponentRate` number — The tax rate percentage for the tax component
      - `taxComponentAmount` number — The tax amount calculated for this tax component
      - `taxComponentType` string — The type of tax component (e.g., GST, VAT, etc.)
  - `pagination` ExamplePaginationInvoiceLineItems — Responses that return multiple objects will be paginated. The pagination params define how pages are structured and how to traverse through pages.
    - `pageSize` integer — Denotes the page size mentioned in the current request (limit). It defaults to 100 if left blank.
    - `hasMore` boolean — Tells us if there is more content.
    - `totalRecordCount` integer — Denotes the total resources matching the filters.
    - `nextPage` string — Denotes an API URL, which can be conveniently called to perform the subsequent search call to get to the next page.
    - `nextPageToken` string — Denotes a unique token that points to the next page of resources. To get results from subsequent pages, you can use the nextPageToken available in the response under pagination. This token is valid for 15 minutes.

## Other responses

- `400` — This error typically happens when the request payload contains an error. If you want to make sure that the request's parameters are named correctly and are the right data types, you can examine the request's syntax.
- `401` — You see this error when trying to access this resource without being authenticated. Check the API request header to make sure it is not empty and has a valid api-key that you acquired from the Rocketlane API Settings tab.
- `404` — If we were unable to locate the resource you were looking for or the proper API endpoint you were looking for, this error would show up.

---

[API](https://skmtc.net/rocketlane/apis/rocketlane-api.md) · [All operations](https://skmtc.net/rocketlane/apis/rocketlane-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocketlane/rocketlane-api/revisions/1e8ba619e741/schema)
