ghl_affiliate_delete_customer
Deletes a customer or lead linked to an affiliate within a specific sub-account location, removing the affiliate customer record.
Instructions
Delete customer Delete a lead or customer for an affiliate. Endpoint: DELETE /affiliate-manager/{locationId}/affiliates/{affiliateId}/customer/{customerId} (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>"
},
"name": "ghl_affiliate_delete_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer Id | |
| locationId | Yes | Location Id | |
| affiliateId | Yes | Affiliate Id |