Skip to main content

Get Sales History

POST 

/api/inventory-forecasting/sales-history

Get aggregated sales history for products grouped by time period.

Authentication: Requires Bearer token.

Period values: week, month, quarter, year (defaults to week).

Date format: YYYY-MM-DD. start_date must be < end_date.

Returns an array keyed by product_id, each with periods array containing quantity and value per period.

Request

Responses

Successful response