Earnings history
get_earnings_historyRetrieve earnings records per service and collection over a selected period in USD to track how one service's balance changed.
Instructions
Earnings records per service and collection over a period, in USD. Use it to see how one service's balance moved; for daily totals use get_earnings_daily.
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": {
"period": "<period>"
},
"name": "get_earnings_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | week, month, year or all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| earnings | Yes | CashPilot /api/earnings/history |