Dashboard

Get product wise sales

Get sales count grouped by product. Analyzes products JSONB array from orders and returns count per product. Excludes System Generated orders. Supports optional date range filtering.

get/dashboard/product-wise-sales

Request

Query parameters

startDatestring
Example:2026-01-01

Start date for filtering (ISO 8601 format)

endDatestring
Example:2026-01-13

End date for filtering (ISO 8601 format)

utmSourcestring
Example:google

Optional UTM source filter (exact match after TRIM). Use "notSet" for orders with no UTM source (NULL, empty, or whitespace).

Response

Product wise sales retrieved successfully

totalSalesnumber required

Total sales across all products

dataProductSalesDto[] required

Product-wise sales data

Changes

No recorded changes to this operation across all 7 revisions of this API.