Apply import

POST /api/v1/inventory/import/apply

Execute the confirmed import: create locations, products, variants, and set inventory levels. All changes happen in a single transaction.

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

file_id string required
locations array · ApplyLocationDecision ApplyLocationDecision
5 fields
name string required
action string

One of: create, match, skip

existing_location_id string
location_type string
code string
products array · ApplyProductDecision ApplyProductDecision
5 fields
name string required
category string
action string

One of: create, match, skip

existing_product_id string
variants array · ApplyVariantDecision
levels array · ApplyLevelDecision ApplyLevelDecision
6 fields
variant_name string required
variant_id string
location_name string
location_id string
on_hand number
action string

One of: set, skip

Responses

201 Successful Response

success boolean
summary ApplyResultSummary ApplyResultSummary
5 fields
locations_created integer
products_created integer
variants_created integer
levels_set integer
errors array · string

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error - Invalid data format