Sales summary without double counting
commerce_sales_summarySummarize gross revenue and order counts per currency and connection for a chosen period, excluding cancelled, refunded, unpaid, and confirmed duplicate orders by default.
Instructions
Gross revenue and order counts per currency and connection for a period. Confirmed imported duplicates (e.g. Base orders imported from Allegro) are excluded; potential duplicates are included but reported separately. Cancelled, refunded and (by default) unpaid orders are excluded. This is revenue, not profit; currencies are never converted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "commerce_sales_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO 8601 end. | |
| date | No | A single local calendar day, YYYY-MM-DD. Omit with no other range = today so far. | |
| days | No | Last N local days including today so far. | |
| from | No | ISO 8601 start (overrides date/days). | |
| timezone | No | IANA timezone for day boundaries, e.g. Europe/Warsaw. Defaults to the server timezone. | |
| connectionIds | No | Connection ids to include (see commerce_list_connections). Omit for all connections. | |
| includeUnpaid | No | ||
| maxPerConnection | No |