# Update a customer's recipient

`PATCH /v1/platforms/{platformOrgId}/customers/{customerOrgId}/counterparties/{counterpartyId}`

**Update a customer's recipient** (Act as a platform). Changes `name`, `email`, or `category` only. It does not change the bank account or wallet.

Prerequisite: Permission `platform:customer_operate`.

Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as PATCH /v1/orgs/{orgId}/counterparties/{counterpartyId}.

Requires: organization platform; permission platform:customer_operate

## Request body

- `name` (string): Display name.
- `email` (string): Email address.
- `category` (enum): What kind of recipient this is, such as a vendor or a contractor. One of vendor, customer, contractor, employee, other.

```json
{
  "name": "Acme Robotics",
  "email": "ada@acme-robotics.example",
  "category": "vendor"
}
```

Errors: invalid_category

```bash
curl -X PATCH "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/counterparties/$COUNTERPARTY_ID" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme Robotics",
  "email": "ada@acme-robotics.example",
  "category": "vendor"
}'
```
