The affiliate's own totals, approved and in review
my_earningsClicks, referrals and rewards for this affiliate over a date range, per service and in total. Approved and in-review rewards are two separate numbers and must stay that way: a reward in review has not been approved and is not owed, because a person reviews every referral and may decide against it. Never add them together.
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": {
"locale": "<locale>"
},
"name": "my_earnings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD. Default today. | |
| from | No | First day, YYYY-MM-DD. Default 30 days ago. | |
| locale | Yes | The language the affiliate is writing in — set it from their own messages. Everything meant to be read back to them comes back in this language. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| range | Yes | ||
| totals | Yes | ||
| by_service | Yes |