Add Affiliate Code
add_affiliate_codeExtend an affiliate to another ticket tier — adds the tier to their promo code with its own discount and optional commission. Requires event_id + affiliate_id + ticket_class_id + discount; you must be a host.
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": {
"event_id": "<event_id>",
"affiliate_id": "<affiliate_id>",
"ticket_class_id": "<ticket_class_id>",
"discount_type": "<discount_type>",
"discount_value": "<discount_value>"
},
"name": "add_affiliate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | ||
| affiliate_id | Yes | ||
| discount_type | Yes | ||
| discount_value | Yes | ||
| commission_type | No | ||
| ticket_class_id | Yes | ||
| commission_value | No |