---
title: "Update an invoice line item"
method: PATCH
path: "/v1/finance/invoices/{invoiceId}/lineItems/{lineItemId}"
tags: ["Invoices"]
---

# Update an invoice line item

`PATCH /v1/finance/invoices/{invoiceId}/lineItems/{lineItemId}`

Update the details of a single line item (required scope finance:write)

## Path parameters

- `invoiceId` integer, required
- `lineItemId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- UpdateInvoiceLineItemModel — represents a model for updating an invoice line item
  - `quantity` number, double — The quantity of the invoice line item<br/><br/>Optional: Omit to retain current value
  - `description` string — Description of the invoice line item<br/><br/>Optional: Omit to retain current value
  - `taxId` integer, nullable — Tax identifier (must exist and not be deleted for customer). Nullable<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `unitCost` number, double, nullable — Unit cost (nullable, non-negative)<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `unitSellingPrice` number, double — Unit selling price (non-negative)<br/><br/>Optional: Omit to retain current value
  - `nominalCodeId` integer, nullable — Nominal code identifier (must exist and not be deleted for customer)<br/><br/>Optional: Omit to retain current value or provide null to unset
  - `departmentCodeId` integer, nullable — Department code identifier (must exist and not be deleted for customer)<br/><br/>Optional: Omit to retain current value or provide null to unset

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/bigchange/apis/bigchange-dx.md) · [All operations](https://skmtc.net/bigchange/apis/bigchange-dx/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigchange/bigchange-dx/revisions/916e669fc527/schema)
