On this page6 sections
Get Realtime Product Sales Breakdown
Aggregates sold product quantity and revenue filtered by server persistence timestamp (`Invoice.createdAt`), outlet scope, category, and search query.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Outlet Scope Enforcement: Results and mutations are automatically scoped to the actor's accessible outlets when the
reportsmodule restriction applies.
Request
Provide the following fields in the request payload.
start Date parameter.
end Date parameter.
outlet Id parameter.
outlet parameter.
category parameter.
query parameter.
page Index parameter.
page Size parameter.
Responses
Select a status code to inspect schema.
Success (true).
Message.
Response payload or null.
curl -X POST "https://api.invoger.com/api/reports/product-sales" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "startDate": "2026-11-01T00:00:00.000Z", "endDate": "2026-11-26T23:59:59.999Z", "category": "Beverages", "pageIndex": 0, "pageSize": 20 }'Response
{
"success": true,
"message": "Success",
"data": {
"rows": [],
"total": 0
}
}