Apply unit cost bulk update

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

Apply confirmed unit-cost updates from a validated CSV upload.

Operation ID: apply_unit_cost_bulk_update_api_v1_inventory_products_unit_costs_apply_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

updatesarray · UnitCostBulkUpdateRowInputrequiredUnitCostBulkUpdateRowInput

Rows with new_unit_cost_cents set and validated via preview.

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
dataUnitCostBulkApplyResponse

400Bad Request - Invalid input

422Validation Error - Invalid data format