GUIDES / REPORTING

Reporting.

Pull sales, returns, payments and inventory into your own dashboards, accounting or BI tools. Each report family has its own permission, so a dashboard key never needs order or register access.

Available reports

GET /reports/salesreports:sales:readCompleted sales with whole-window totals.
GET /reports/sales/summaryreports:sales:readTotals only.
GET /reports/sales/timeseriesreports:sales:readTotals by hour, day, week or month (group_by, timezone).
GET /reports/top-productsreports:sales:readBest-selling products in the window.
GET /reports/stores/performancereports:sales:readSales by permitted store.
GET /reports/returnsreports:returns:readCompleted returns with totals; /returns/summary for totals only.
GET /reports/paymentsreports:payments:readSuccessful payments with totals by method; never card details.
GET /reports/inventoryreports:inventory:readCurrent stock by variant; /inventory/low-stock for low stock only.

Requesting a window

Every report needs a permitted store_id. Windows use from (inclusive) and to (exclusive) in UTC, default to the last 7 days and can span at most 90 days. For longer histories, request consecutive windows. See Pagination and sync for paging.

curl "$SIMPLE_API_BASE_URL/api/v1/public/reports/sales?store_id=$STORE_ID&from=2026-10-01T00:00:00Z&to=2026-10-08T00:00:00Z&limit=100" \
  --header "Authorization: Bearer $SIMPLE_API_KEY"

Reading the numbers

{
  "data": [{ "id": "…", "occurred_at": "2026-10-03T14:21:09Z", "amount": "42.50", "method": null, "status": "completed" }],
  "summary": { "count": 318, "total": "12840.75", "currency": "USD",
               "from": "2026-10-01T00:00:00.000Z", "to": "2026-10-08T00:00:00.000Z" },
  "page": { "has_more": true, "next_cursor": "…" }
}
  • Money and quantities are decimal strings ("42.50"); parse them with a decimal type, not floating point.
  • summary totals cover the whole window, not just the page you are reading.
  • Sales only include completed, paid orders, so pending online orders appear once they are completed.
  • Inventory is a current snapshot, not a historical balance; record it on a schedule if you need history.