---
title: "Update Sales Order Line Item"
method: PATCH
path: "/v2/salesOrders/{salesOrderId}/lineitems/{salesOrderLineItemId}"
tags: ["salesorder"]
---

# Update Sales Order Line Item

`PATCH /v2/salesOrders/{salesOrderId}/lineitems/{salesOrderLineItemId}`

Update a line item for a specific sales order

## Path parameters

- `salesOrderId` string, uuid, required
- `salesOrderLineItemId` string, uuid, required

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLWawiRestContractsModelsV1SalesOrderUpdateSalesOrderLineItem — Model Class: UpdateSalesOrderLineItem
  - `itemId` string, uuid
  - `name` string — Name of the position.
  - `sKU` string — SKU of the sales order line item.
  - `quantity` number — The quantity of the line item.
  - `salesUnit` string — The sales unit of the line item.
  - `salesPriceNet` number — The net sales price of the item. Only net or gross price can be entered. The other price will then be calculated.
  - `salesPriceGross` number — The gross sales price of the item. Only net or gross price can be entered. The other price will then be calculated.
  - `discount` number — The discount of the line item.
  - `purchasePriceNet` number — The purchase price of the item.
  - `taxRate` number — The tax rate of the line item.
  - `notice` string — Notice for the line item.

## Response `204`

## Other responses

- `400` — The sent data is invalid.
- `401`
- `402` — No licence available or the app has not been authorised by JTL.
- `404` — No line item with the given ID exists

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/versions/f979b1ea6951/schema)
