Skip to main content

Get Sales History

POST 

/api/inventory-forecasting/sales-history

Get aggregated sales history for products grouped by time period.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

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