Preview unit cost bulk update

POST/api/v1/inventory/products/unit-costs/preview

Validate parsed CSV rows and preview cost changes before applying.

Operation ID: preview_unit_cost_bulk_update_api_v1_inventory_products_unit_costs_preview_post·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.

Request body

rowsarray · UnitCostBulkUpdateRowInputrequiredUnitCostBulkUpdateRowInput

Rows from the uploaded CSV after client-side parsing.

4 fields
row_numberintegerrequired

1-based row number from the spreadsheet.

skustringrequired

Variant SKU.

variant_idstring

Optional variant UUID; when set, used instead of SKU matching.

new_unit_cost_centsinteger

New unit cost in cents. Omit or null to skip the row.

Responses

201Successful Response

successboolean
messagestring
codestring
dataUnitCostBulkPreviewResponse

400Bad Request - Invalid input

422Validation Error - Invalid data format