# PATCH /invoices/:invoice_id/line-items/:line_id

**Resource:** [Invoices](./invoices.md)  
**MCP tool:** `update_invoice_line_item`  
**Scopes:** `invoices:write`  
**Write operation:** yes

Update one line item on a native invoice. line_total and invoice totals recompute when pricing fields change.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `invoice_id` | path | string | yes |  |
| `line_id` | path | string | yes |  |
| `description` | body | string | no |  |
| `quantity` | body | number | no |  |
| `unit_price` | body | number | no |  |
| `discount_percent` | body | number | no |  |
| `tax_amount` | body | number | no |  |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/invoices/:invoice_id/line-items/:line_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"description":"...","quantity":"...","unit_price":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`