---
title: "Update Invoice Item"
method: PATCH
path: "/invoices/{invoice_id}/items/{item_id}"
---

# Update Invoice Item

`PATCH /invoices/{invoice_id}/items/{item_id}`

Update an existing item in the invoice.

## Path parameters

- `invoice_id` number, required
- `item_id` number, required

## Request body

- object
  - `quantity` number — Quantity
  - `price` number — Price per unit
  - `discount` object — Discount object
    - `type` 'percentage' | 'value', required — Discount type. "percentage" — percent, "value" — absolute value.
    - `percentage` number, required — Percentage value
    - `amount` number, required — Amount value
    - `sponsor` 'staff' | 'company', required — "staff" — Employee wages calculation is based on the amount after discount. This way the company discount decreases the piecework employee wages. "company" — Employee commissions will be calculated from amount before discount. This way the company discount won't affect the employee commissions.
  - `warranty` object — Warranty object
    - `period` number, required — Warranty period
    - `unit` 'days' | 'months', required — Warranty unit of measure
  - `tax_ids` number[] — List of tax IDs
  - `comment` string — Comment text
  - `comment_visibility` 'private' | 'public' — Comment visibility

## Response `200`

---

[API](https://skmtc.net/roapp/apis/ro-app-public-api-v2.md) · [All operations](https://skmtc.net/roapp/apis/ro-app-public-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roapp/ro-app-public-api-v2/revisions/85de4353ed28/schema)
