My sales statistics
shop.merchant.statsRetrieve merchant sales statistics for a date range, including quotes, paid orders, fees, refunds, disputes, top products, and SLA counts, with optional daily or weekly grouping.
Instructions
Your own sales statistics (needs stats:read), the test SKU excluded: quotes -> paid -> closed, gross/net/fee, average order, refunds, disputes, top-20 products, by rail, by agent (client name/version, user-agent family, 8-char wallet hash prefix), webhook success % and p95, overdue SLA counts, the Base fee receivable (owed, invoiced, open fee invoices). Optional from/to (ISO 8601, default last 30 days, at most 366), group day|week. format=csv returns one row per paid order with tx_hash (payer as hash prefix only). Cached for 60 s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| group | No | ||
| format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| csv | No | ||
| from | No | ||
| group | No | ||
| funnel | No | ||
| series | No | ||
| by_rail | No | ||
| fee_usd | No | ||
| net_usd | No | ||
| refunds | No | ||
| webhook | No | ||
| by_agent | No | ||
| disputes | No | ||
| gross_usd | No | ||
| sla_overdue | No | ||
| top_products | No | ||
| avg_order_usd | No | ||
| fee_receivable | No | ||
| subscriptions_active | No |