Landed COGS history

GET/api/v1/inventory/cost-history

Return cost snapshots grouped by variant for the last N months. Powers the Landed COGS sparkline + material/freight/processing breakdown.

Operation ID: get_cost_history_api_v1_inventory_cost_history_get·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

monthsintegerdefault: 12

Window size in months (default 12).

Responses

200Successful Response

successboolean
messagestring
codestring
dataCostHistoryResponse

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject