201Successful Response
Schema: SuccessEnvelope_UnitCostBulkPreviewResponse_
successbooleanmessagestringcodestringdataUnitCostBulkPreviewResponse
/api/v1/inventory/products/unit-costs/previewValidate parsed CSV rows and preview cost changes before applying.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: UnitCostBulkPreviewRequest
rowsarray · UnitCostBulkUpdateRowInputrequiredUnitCostBulkUpdateRowInputRows from the uploaded CSV after client-side parsing.
row_numberintegerrequired1-based row number from the spreadsheet.
skustringrequiredVariant SKU.
variant_idstringOptional variant UUID; when set, used instead of SKU matching.
new_unit_cost_centsintegerNew unit cost in cents. Omit or null to skip the row.
Schema: SuccessEnvelope_UnitCostBulkPreviewResponse_
successbooleanmessagestringcodestringdataUnitCostBulkPreviewResponse