---
title: "Get a list of lines items for a sales order, regardless of type"
method: POST
path: "/api/sales-orders/{salesOrderId}/line-items/list"
tags: ["Sales Order Line Item"]
---

# Get a list of lines items for a sales order, regardless of type

`POST /api/sales-orders/{salesOrderId}/line-items/list`

## Path parameters

- `salesOrderId` string, required

## Response `200`

List of all line items for the given sales order id

- SalesOrderLineItemDto[]
  - `id` string, required — Unique id associated to this entity.
  - `lineItemId` string, nullable — The line item id (if applicable).
  - `type` 'part' | 'shipping' | 'tax' | 'discount' | 'fee' | 'refund', required — Sales order line item type
  - `price` number, double, required — The line item price.
  - `discountedPrice` number, double, nullable — The line item discounted unit price (if applicable).
  - `name` string, nullable — Verbose name for this entity.
  - `description` string, nullable — Line item description.
  - `quantity` number, double — The line item quantity
  - `externalReferences` object, nullable — Arbitrary key-value-pair like data that can be used to later on search for this line item.
  - `accountingCodeId` string, nullable — Accounting code key identifier. Please reference /api/accounting-codes endpoint.
  - `isTaxable` boolean, required — Dictate if this line item is taxable.
  - `subTotal` number, double, required — Total line item cost, including applicable discounts
  - `preDiscountSubTotal` number, double, required — Total line item cost, before discounts
  - `isPercentageDiscount` boolean, nullable — Indicates whether FulcrumProduct.PublicApi.Dto.SalesOrder.SalesOrderLineItemDto.DiscountAmount discount is percentage based (else, it's an absolute amount).
  - `discountAmount` number, double, nullable — The amount of the discount.
  - `customFields` object, nullable — Custom fields that have been defined for the sales order part line item;
  - `number` integer — Line number
  - `accountingDetails` CommonAccountingDetailsDto, required — An object that contains all accounting details.
    - `classId` string, nullable — Item class identifier. Please reference /api/item-classes endpoint.
    - `incomeAccountId` string, nullable — Income account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `assetAccountId` string, nullable — Asset account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `expenseAccountId` string, nullable — Expense account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.
    - `cogsAccountId` string, nullable — COGS account (chart of accounts) key identifier. Please reference /api/chart-of-accounts endpoint.

## Other responses

- `404` — The sales order did not exist

---

[API](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi.md) · [All operations](https://skmtc.net/fulcrumpro/apis/fulcrum-publicapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fulcrumpro/fulcrum-publicapi/versions/1b5649cff14a/schema)
