Sales totals for a store
Scope: `sales:read`. Read replica; range at most 31 days.
Scope: sales:read. Read replica; range at most 31 days.
apiKeyAuthorizationBearer <tmb_live_<prefix>_<secret> or tmb_test_<prefix>_<secret>>Scopes (set per key, narrowed by the merchant's grant): stores:read, stores:write, menu:read, orders:read, orders:write, rider:write, sales:read, customers:pii, mcp:use (the key may be used on the MCP endpoint POST /mcp; by default one MCP-enabled app per merchant account).
store_id*stringfrom*stringdateto*stringInclusive; at most 31 days after from.
dateorder_state?stringWhich orders to report: fulfilled (sales, default) or cancelled (cancellation report). Complimentary orders are always reported apart (free_total, free_count).
"fulfilled""fulfilled""cancelled"order_type?stringComma-separated billing type values (up to 20), e.g. 1 (Dine In), 2 (Takeaway), 4 (Zomato). Values are store-configured; see group_by=order_type.
^\d{1,6}(,\d{1,6}){0,19}$length <= 140time_from?stringTime-of-day window start, store local HH:MM (meal slots, shifts). Needs time_to. If time_from > time_to the window wraps past midnight (e.g. 22:00-02:00).
^([01]\d|2[0-3]):[0-5]\d$time_to?stringTime-of-day window end, exclusive, store local HH:MM. Needs time_from.
^([01]\d|2[0-3]):[0-5]\d$group_by?stringday and hour rows are zero-filled (hour = store local hour 00-23); order_type = billing type value
"day""day""hour""order_type"limit?integer1 <= value <= 10050cursor?stringOpaque; pass next_cursor from the previous page with the same other parameters. null next_cursor = last page.
length <= 512Summary rows
application/json- response
group_by*string"day""hour""order_type"currency*CurrencyISO 4217
as_of*stringData freshness; when this result was read from the store data
date-timefinal*booleanfalse when the range includes any of the last 3 days in store local time (late syncs and edits can still change them)
next_cursor*string|nullrows*array<>curl -X GET 'https://openapi.tmbill.com/v1/sales/summary?store_id=string&from=2019-08-24&to=2019-08-24'{ "group_by": "day", "currency": "INR", "as_of": "2019-08-24T14:15:22Z", "final": true, "next_cursor": "string", "rows": [ { "key": "string", "order_count": 0, "gross_sales": "string", "gross_sales_coverage": 0, "subtotal": "249.00", "discount": "249.00", "net_sales": "249.00", "tax": "249.00", "aggregator_tax": "249.00", "inclusive_tax": "249.00", "exclusive_tax": "249.00", "charges": "249.00", "charges_tax": "249.00", "round_off": "249.00", "total": "249.00", "tips": "249.00", "free_total": "249.00", "free_count": 0, "currency": "INR" } ]}