sales_summary
Compute ticket-sales totals for an event, including revenue by order state, ticket counts, and optional per-item or per-subevent breakdowns, with PII excluded.
Instructions
Ticket-sales figures for one event: revenue and counts per order state, no PII.
pretix has no aggregate-stats endpoint, so this paginates the event's orders and adds
them up here. On a large event it is slow — one HTTP round trip per 100 orders —
and it stops after SALES_SCAN_CAP orders (default 5000). The scan block in the
result reports how many orders were read and whether the cap truncated the window; a
truncated result is a partial answer, so narrow it with subevent if that happens.
tickets counts non-canceled positions of paid and pending orders. revenue is
order totals grouped by state, plus a refunded bucket summed from completed
refunds. Set by_item / by_subevent for per-product / per-date breakdowns
(paid and pending only). Amounts are decimal strings in the event's currency.
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": {
"event": "<event>"
},
"name": "sales_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| by_item | No | ||
| subevent | No | ||
| by_subevent | No |