Sales statistics, time series, and aggregated data
Retrieve aggregated items and modifications with pagination.
Query Routing: Automatically routes to BigQuery for historical data (>24 hours) or PostgreSQL for recent data.
Item Types:
regular_item- Normal menu items- Other types - Item modifications (extras)
Use Cases:
- Item sales reports
- Menu performance analysis
- VAT reporting
Permissions: 🔵 statistics.read
query Parameters
locationIdsComma-separated list of location IDs
startDateStart date (YYYY-MM-DD)
endDateEnd date (YYYY-MM-DD)
pagePage number
limitItems per page (max 1000)
Responses
Aggregated items data
statusRetrieve sale summary with items, extras (modifications), and tips for a date range.
Query Routing: Automatically routes to BigQuery for historical data (>24 hours) or PostgreSQL for recent data.
Response includes:
- Items sold with VAT breakdown
- Item modifications (extras) with VAT breakdown
- Total tips
- Summary totals
Permissions: 🔵 statistics.read
query Parameters
locationIdsComma-separated list of location IDs
startDateStart date (YYYY-MM-DD)
endDateEnd date (YYYY-MM-DD)
Responses
Sale summary data
statusRetrieve time series data for a specific metric across locations and date range.
Query Routing: Automatically routes to BigQuery for historical data (>24 hours) or PostgreSQL for recent data.
Available Metrics:
gmv- Gross Merchandise Valueorders_count- Number of orderssold_count- Number of items soldtips_amount- Total tips amountsaved_co2- CO2 saved (grams)pushes_sent- Push notifications sent
Target Options:
aggregated- Combine all locations into single serieslocations- Return separate series per location
Permissions: 🔵 statistics.read
query Parameters
locationIdsComma-separated list of location IDs (e.g., "100,101,102")
startDateStart date (YYYY-MM-DD)
endDateEnd date (YYYY-MM-DD)
metricMetric to retrieve
targetAggregation target
Responses
Time series data
statusRetrieve time series data for MULTIPLE metrics in a single request. Much more efficient than calling the single-metric endpoint multiple times.
Query Routing: Automatically routes to BigQuery for historical data (>24 hours) or PostgreSQL for recent data.
Available Metrics (comma-separated):
gmv- Gross Merchandise Valueorders_count- Number of orderssold_count- Number of items soldtips_amount- Total tips amountsaved_co2- CO2 saved (grams)pushes_sent- Push notifications sent
Target Options:
aggregated- Combine all locations into single serieslocations- Return separate series per location
Example: /api/v1/statistics/time-series-batch?metrics=gmv,orders_count,sold_count&locationIds=100,101&startDate=2025-01-01&endDate=2025-01-31
Permissions: 🔵 statistics.read
query Parameters
locationIdsComma-separated list of location IDs (e.g., "100,101,102")
startDateStart date (YYYY-MM-DD)
endDateEnd date (YYYY-MM-DD)
metricsComma-separated list of metrics (e.g., "gmv,orders_count,sold_count")
targetAggregation target
Responses
Time series data for multiple metrics
statusRetrieve tips for a location and date range.
Query Routing: Automatically routes to BigQuery for historical data (>24 hours) or PostgreSQL for recent data.
Response includes:
- Tips by date with VAT breakdown
- Total amounts and counts
Permissions: 🔵 statistics.read
query Parameters
locationIdLocation ID
startDateStart date (YYYY-MM-DD)
endDateEnd date (YYYY-MM-DD)
Responses
Tips data
status