---
title: "Get line items"
method: GET
path: "/api/v2/line_items"
tags: ["Line Items"]
---

# Get line items

`GET /api/v2/line_items`

List line items.

## Query parameters

- `filter` union — Filter schema for `line_item` list endpoints — pass a single condition or a logical group.
  - object — A logical filter group — combine multiple conditions with the `$op` operator.
    - `$op` 'or' | 'and', required — Logical operator combining conditions in this group. `or` matches records satisfying any condition; `and` requires all conditions to match.
  - FilterLineItem — Available filter parameters for querying invoice line items.
    - `discount` union — Filter by discount percentage range.
      - Discount — unresolved $ref
      - object — Filter operators for discount.
        - `not_eq` Discount — unresolved $ref
        - `contains` Discount — unresolved $ref
        - `eq` Discount — unresolved $ref
        - `not_contain` Discount — unresolved $ref
    - `updater_id` union — Filter by the person who last updated the line item.
      - UpdaterId — unresolved $ref
      - object — Filter operators for updater_id.
        - `not_contain` UpdaterId — unresolved $ref
        - `not_eq` UpdaterId — unresolved $ref
        - `eq` UpdaterId — unresolved $ref
        - `contains` UpdaterId — unresolved $ref
    - `service_id` union — Filter by the associated service.
      - object — Filter operators for service_id.
        - `eq` ServiceId — unresolved $ref
        - `not_eq` ServiceId — unresolved $ref
        - `contains` ServiceId — unresolved $ref
        - `not_contain` ServiceId — unresolved $ref
      - ServiceId — unresolved $ref
    - `invoice_id` union — Filter by the associated invoice.
      - object — Filter operators for invoice_id.
        - `eq` InvoiceId — unresolved $ref
        - `not_eq` InvoiceId — unresolved $ref
        - `not_contain` InvoiceId — unresolved $ref
        - `contains` InvoiceId — unresolved $ref
      - InvoiceId — unresolved $ref
    - `expense_id` union — Filter by the associated expense.
      - ExpenseId — unresolved $ref
      - object — Filter operators for expense_id.
        - `not_contain` ExpenseId — unresolved $ref
        - `eq` ExpenseId — unresolved $ref
        - `contains` ExpenseId — unresolved $ref
        - `not_eq` ExpenseId — unresolved $ref
    - `service_type_id` union — Filter by the service type of the associated service.
      - ServiceTypeId — unresolved $ref
      - object — Filter operators for service_type_id.
        - `not_contain` ServiceTypeId — unresolved $ref
        - `eq` ServiceTypeId — unresolved $ref
        - `not_eq` ServiceTypeId — unresolved $ref
        - `contains` ServiceTypeId — unresolved $ref
    - `creator_id` union — Filter by the person who created the line item.
      - CreatorId — unresolved $ref
      - object — Filter operators for creator_id.
        - `not_contain` CreatorId — unresolved $ref
        - `not_eq` CreatorId — unresolved $ref
        - `eq` CreatorId — unresolved $ref
        - `contains` CreatorId — unresolved $ref
    - `tax_name` union — Filter by tax name applied to the line item.
      - TaxName — unresolved $ref
      - object — Filter using explicit operator syntax.
        - `not_eq` TaxName — unresolved $ref
        - `eq` TaxName — unresolved $ref
        - `not_contain` TaxName — unresolved $ref
        - `contains` TaxName — unresolved $ref
    - `company_id` union — Filter by client company (via the associated invoice).
      - CompanyId — unresolved $ref
      - object — Filter operators for company_id.
        - `not_contain` CompanyId — unresolved $ref
        - `contains` CompanyId — unresolved $ref
        - `not_eq` CompanyId — unresolved $ref
        - `eq` CompanyId — unresolved $ref
    - `id` union — Filter by the line item's unique ID.
      - Id — unresolved $ref
      - object — Filter operators for id.
        - `contains` Id — unresolved $ref
        - `eq` Id — unresolved $ref
        - `not_eq` Id — unresolved $ref
        - `not_contain` Id — unresolved $ref
    - `tax_value` union — Filter by tax rate percentage range.
      - TaxValue — unresolved $ref
      - object — Filter operators for tax_value.
        - `not_eq` TaxValue — unresolved $ref
        - `not_contain` TaxValue — unresolved $ref
        - `eq` TaxValue — unresolved $ref
        - `contains` TaxValue — unresolved $ref
    - `unit_id` union — Filter by the billing unit (e.g. hour, day, piece).
      - object — Filter operators for unit_id.
        - `not_contain` UnitId — unresolved $ref
        - `not_eq` UnitId — unresolved $ref
        - `eq` UnitId — unresolved $ref
        - `contains` UnitId — unresolved $ref
      - UnitId — unresolved $ref
- `sort` string[]

## Headers

- `X-Organization-Id` string, required

## Response `200`

Collection line item

---

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