Preview import

POST/api/v1/inventory/import/preview

After reviewing the AI analysis, confirm column mappings and sheet selections. Returns a full preview of locations, products, and inventory levels to be created.

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

file_idstringrequired
selected_sheetsarray · stringrequired
sheet_mappingsarray · SheetMappingConfirmationrequiredSheetMappingConfirmation
4 fields
sheet_namestringrequired
mappingobjectrequired

Map of standard field name → 0-based column index.

data_start_rowinteger
exclude_rowsarray · integer
location_decisionsarray · LocationDecisionLocationDecision
5 fields
detected_namestringrequired
actionstring

One of: create, match, skip

existing_location_idstring
location_namestring
location_typestring

Responses

201Successful Response

successboolean
messagestring
codestring
dataPreviewResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error - Invalid data format