# PATCH /referrals/:referral_id/commissions/:payment_id

**Resource:** [Referrals](./referrals.md)  
**MCP tool:** `update_referral_commission`  
**Scopes:** `referrals:write`  
**Write operation:** yes

Update a commission instalment (amount, status, due_date, paid_date, notes). Setting status to paid auto-stamps paid_date when none is supplied.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `referral_id` | path | string | yes |  |
| `payment_id` | path | string | yes |  |
| `amount` | body | number | no |  |
| `status` | body | string | no |  |
| `due_date` | body | string | no |  |
| `paid_date` | body | string | no |  |
| `notes` | body | string | no |  |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/referrals/:referral_id/commissions/:payment_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"amount":"...","status":"...","due_date":"..."}'
```

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