# PATCH /invoices/:invoice_id

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

Update a native invoice header (status, dates, reference, amount_paid, etc.). amount_due is recomputed. Pass only the fields you want to change.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `invoice_id` | path | string | yes |  |
| `status` | body | string | no |  |
| `due_date` | body | string | no |  |
| `reference` | body | string | no |  |
| `amount_paid` | body | number | no |  |
| `amount_credited` | 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"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"status":"...","due_date":"...","reference":"..."}'
```

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