Retrieve revenue statistics for a configurable date range. Returns revenue, order counts, average order amount, and other useful statistics.
Security
ApiKey or OAuth2(Required scopes: revenue:read)
- Mock serverhttps://cafe.redocly.com/_mock/openapi/cafe/revenue
- Live server.https://api.cafe.redocly.com/revenue
- ApiKey
- OAuth2
curl -i -X GET \
'https://cafe.redocly.com/_mock/openapi/cafe/revenue?startDate=2026-01-01T00%3A00%3A00Z&endDate=2026-01-31T23%3A59%3A59Z' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Revenue statistics retrieved successfully.
Average order amount in cents (calculated from completed orders only).
Response
{ "revenue": 0.1, "averageOrderAmount": 0.1, "totalOrders": 0, "placedOrders": 0, "preparingOrders": 0, "completedOrders": 0, "canceledOrders": 0, "startDate": "2019-08-24T14:15:22Z", "endDate": "2019-08-24T14:15:22Z" }