# PATCH /recurring-invoices/:recurring_invoice_id

**Resource:** [Recurring Invoices](./recurring-invoices.md)  
**MCP tool:** `update_recurring_invoice`  
**Scopes:** `recurring_invoices:write`  
**Write operation:** yes

Update a recurring invoice schedule (line items, interval, dates, toggles) OR change its status to pause/resume/stop it. status='paused' stops generating, status='active' resumes, status='stopped' ends it. Pass only the fields you want to change.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `recurring_invoice_id` | path | string | yes |  |
| `name` | body | string | no |  |
| `opportunity_id` | body | string | no |  |
| `contact_id` | body | string | no |  |
| `currency_code` | body | string | no |  |
| `reference` | body | string | no |  |
| `interval_unit` | body | string | no |  |
| `interval_count` | body | number | no |  |
| `next_run_at` | body | string | no |  |
| `end_date` | body | string | no |  |
| `max_occurrences` | body | number | no |  |
| `due_days` | body | number | no |  |
| `auto_send` | body | boolean | no |  |
| `attach_payment_link` | body | boolean | no |  |
| `status` | body | string | no |  |
| `line_items` | body | array | 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/recurring-invoices/:recurring_invoice_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","opportunity_id":"...","contact_id":"..."}'
```

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