Shopify sales breakdown
get_sales_breakdownShopify's own Total sales breakdown for the current period: gross sales, discounts, returns, net sales, shipping and taxes — the same lines, with the same definitions, as the merchant's Shopify admin. Use this whenever the question is about revenue in the merchant's own terms, or when they say our number disagrees with Shopify. IMPORTANT: netSales is Shopify's revenue figure and EXCLUDES tax and shipping; orderTotal is the order-total basis the rest of Nuira still reports and INCLUDES both, which is why the two differ — say so rather than picking one silently. Returns count in the period the refund was issued, not the period of the order it reverses. When complete is false, some orders in the range predate these figures and every line understates: say that instead of quoting the totals as final. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the last 30 days, which is not that month.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period. | |
| salesChannel | No | Only online orders (the web shop) or only point-of-sale orders; omit for every channel. When the operator says 'solo web', 'online only' or 'sin POS', send online — and keep sending it for the rest of the conversation. |