### Edit an invoice

`PATCH /api/v1/users/{id}/invoices/{invoiceId}`

Edits a hand-created invoice. Auto-issued documents — activations, extensions, add-ons, deposits and withdrawals — are not editable through this path.

- Authentication: manager session (JWT) or API token
- Permission: `prm_users_invoices_edit` (Edit / pay user invoices)
- Risk: write
- Rate limit bucket: `t_mutate`

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Subscriber id. |
| `invoiceId` | path | integer | yes | Invoice id. |

