generate_tracking_link
Generate a tracked affiliate link for a product. Requires the product UUID (returned by list_products / find_products). Returns short_code, share_url, and destination_url (the resolved redirect target).
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": {
"product_id": "<product_id>"
},
"name": "generate_tracking_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | Product UUID (required) | |
| campaign_id | No | Optional campaign UUID to associate the link with (attribution) | |
| product_short_code | No | Legacy alias for product_id — UUID only |