Affiliates
onelence_list_affiliatesAffiliate partners with referral and coupon codes, clicks, conversions and conversion rate, all time unless start or end is passed; with start, compare=previous_period adds the period before. Pass site for one site; without it, every site in the workspace. Metrics are null when attribution could not be read. For partner Decisions use onelence_list_decisions with type=affiliate.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "onelence_list_affiliates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Count up to this date (inclusive) or ISO 8601 date-time. Without end, there is no upper bound. | |
| site | No | Only partners on this site. Without it, the whole workspace. | |
| limit | No | Items to return (default 25). | |
| start | No | Count clicks and conversions from this date (YYYY-MM-DD) or ISO 8601 date-time. Without start, there is no lower bound; without either, all time. | |
| cursor | No | next_cursor from the previous call, for more. | |
| status | No | For example active or paused. | |
| compare | No | previous_period adds each partner's clicks and conversions in the same-length window right before start, with the percent change (default none). Needs start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| more | No | How to fetch the next page, when has_more. | |
| note | Yes | ||
| limit | Yes | ||
| active | Yes | ||
| object | Yes | ||
| window | Yes | ||
| has_more | Yes | ||
| comparison | Yes | ||
| next_cursor | Yes |