---
title: "Get Sales Order Lines Endpoint"
method: GET
path: "/v2/sales-orders/{sales_order_id}/lines"
tags: ["sales-orders"]
---

# Get Sales Order Lines Endpoint

`GET /v2/sales-orders/{sales_order_id}/lines`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/sales-orders/{sales_order_id}/lines`
- Auth: HTTP bearer

List a Sales Order's Lines

## Path parameters

- `sales_order_id` string, required

## Query parameters

- `page` integer: Page number, 0 indexed.
- `limit` integer: Number of records per page.

## Response `200`

Successful Response

- PaginatedResponseSalesOrderLineSchema
  - `data` SalesOrderLineSchema[], required: The list of records.
    - `created_at` string, date-time, required
    - `modified_at` string, date-time, nullable, required
    - `id` string, required
    - `sales_order_id` string, required
    - `line_number` integer, nullable, required
    - `number` string, nullable, required: The source-system line number or identifier displayed to users.
    - `name` string, nullable, required
    - `description` string, nullable, required
    - `line_type` string, nullable, required: The source-system line type, such as product, fee, services, charge, or comment.
    - `item` ItemSummary, required: Lightweight item for nested relationships.
      - `created_at` string, date-time, required
      - `modified_at` string, date-time, nullable, required
      - `id` string, required
      - `name` string, required
      - `sku` string, nullable, required: The stock keeping unit (SKU) for this Item.
      - `number` string, nullable, required
      - `type` 'inventory' | 'non_inventory' | 'service', required
      - `object` string, required: String representing the object's type. Objects of the same type share the same value.
    - `quantity` string, decimal, required: The quantity ordered.
    - `unit_price` string, decimal, required: The line's price per unit before explicit discounts.
    - `list_unit_price` string, decimal, nullable, required: The undiscounted list price per unit.
    - `uom` string, nullable, required: The unit of measure.
    - `discount_amount` string, decimal, required: The discount applied to this line in standard currency units.
    - `tax_amount` string, decimal, required: The tax applied to this line in standard currency units.
    - `tax_code` string, nullable, required: The tax code applied to this line.
    - `tax_inclusive` boolean, required: Whether the unit price includes tax.
    - `tax_rate` string, decimal, nullable, required: The tax rate applied to this line, expressed as a decimal fraction.
    - `subtotal` string, decimal, required
    - `net_amount` string, decimal, required
    - `total_amount` string, decimal, required
    - `expected_ship_date` string, date, nullable, required: The business date on which this line is expected to ship.
    - `transaction_start_date` string, date, nullable, required
    - `transaction_end_date` string, date, nullable, required
    - `remote_id` string, nullable, required: The line's source-system ID, when the source exposes a stable one.
    - `object` string, required: String representing the object's type. Objects of the same type share the same value.
  - `current_page` integer, required: The current page.
  - `total_records` integer, nullable, required: Total number of records.
  - `next_page` integer, nullable, required: The next page number, if one exists.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
