Revenue
get_revenueGross, refunds, fees and net revenue with charge counts and the change against the previous window, in the site's reporting currency. show daily gives net revenue per day; show by_source splits it by the source of the visit behind each payment, with what could not be attributed; show transactions lists the latest charges, refunds and disputes (a paid plan feature). Needs a connected payment provider.
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": {
"site_id": "<site_id>"
},
"name": "get_revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive, YYYY-MM-DD; default today | |
| from | No | First day, YYYY-MM-DD; overrides period | |
| show | No | summary | |
| limit | No | Transactions to list, at most 100 | |
| period | No | Window ending now; days are whole days in the timezone. Ignored when from is set. | 30d |
| site_id | Yes | site_id from list_sites; a site name, slug or domain also resolves | |
| timezone | No | IANA zone for day boundaries; default the user's |