Skip to main content

Get Sales History

POST 

/api/inventory-forecasting/sales-history

Get aggregated sales history for products grouped by time period.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

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

OK

Response Headers
    Content-Type