ghl_affiliate_update_customer_state
Updates whether an affiliate's customer is disabled, letting you enable or disable customer access through the affiliate manager API.
Instructions
Update customer state Update the disabled state of a customer for an affiliate. Endpoint: PATCH /affiliate-manager/{locationId}/affiliates/{affiliateId}/customers/{customerId}/state (Version header: v3; source: v3/affiliate-manager-v3.json) Requires a Sub-Account (location) token. OAuth scopes: affiliate-manager.write
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"locationId": "<locationId>",
"affiliateId": "<affiliateId>",
"customerId": "<customerId>",
"body": "<body>"
},
"name": "ghl_affiliate_update_customer_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body (schema carried verbatim from the official OpenAPI spec). | |
| customerId | Yes | Customer Id | |
| locationId | Yes | Location Id | |
| affiliateId | Yes | Affiliate Id |