revenue_summary
Retrieve revenue totals, daily results, refunds, MRR, churn, and top products for a UTC date range; call once per period to compare periods.
Instructions
Revenue for a date range (UTC, both ends inclusive): totals (orders, gross, refunds, net), each day, refunds, MRR, active subscriptions, churn and the top products. A paid order counts on the day it was paid; a refund on the day it was made. To compare periods (e.g. last week vs the week before), call this once per period.
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": {
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "revenue_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | Yes | Last day, inclusive (YYYY-MM-DD, UTC). | |
| from_date | Yes | First day, inclusive (YYYY-MM-DD, UTC). |