200Successful Response
Schema: SuccessEnvelope_CostHistoryResponse_
successbooleanmessagestringcodestringdataCostHistoryResponse
/api/v1/inventory/cost-historyReturn cost snapshots grouped by variant for the last N months. Powers the Landed COGS sparkline + material/freight/processing breakdown.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
monthsintegerdefault: 12Window size in months (default 12).
Schema: SuccessEnvelope_CostHistoryResponse_
successbooleanmessagestringcodestringdataCostHistoryResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject