### Mark an invoice paid

`POST /api/v1/users/{id}/invoices/{invoiceId}/pay`

Records the invoice as settled and stamps paid_on. This is bookkeeping: it does not move money between wallets.

- 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. |

#### Note

Marking an invoice paid and taking a payment are different operations. This one changes a status; a deposit changes a balance. Doing one does not do the other.

