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

updates array · UnitCostBulkUpdateRowInput requiredUnitCostBulkUpdateRowInput

Rows with new_unit_cost_cents set and validated via preview.

4 fields
row_number integer required

1-based row number from the spreadsheet.

sku string required

Variant SKU.

variant_id string

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

new_unit_cost_cents integer

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

Responses

201 Successful Response

updated_count integer required
skipped_count integer required
error_count integer required
errors array · string

400 Bad Request - Invalid input

422 Validation Error - Invalid data format