Skip to Content
TMBillOpen API

Report filters

The same filters as the Backoffice reports, on every sales endpoint.

Parameters

ParameterValuesNotes
store_idstring, requiredOne store per call
from, toYYYY-MM-DD, requiredBusiness dates, inclusive, at most 31 days
order_statefulfilled (default), cancelled
order_typebilling type ids, e.g. 1,4Up to 20
time_from, time_toHH:MM store timeWraps past midnight when time_from > time_to
group_bysummary: day, hour, order_type; items: item, category
categorycategory names, comma separatedItems only, up to 20

Recipes (Backoffice report → API call)

Backoffice reportCall
Day-end / daily sales/sales/summary?group_by=day
Hourly sales/sales/summary?group_by=hour
Sales by order type (dine-in, takeaway, delivery)/sales/summary?group_by=order_type
Item-wise sales/sales/items?group_by=item
Category-wise sales/sales/items?group_by=category
Payment mode report/sales/payments
Cancelled ordersany of the above with order_state=cancelled
Late-night sales (22:00 to 02:00)time_from=22:00&time_to=02:00

Invalid filters are rejected with 400 invalid_parameter and the field that is wrong, before any data is read.

On this page