Create purchase order from import

POST/api/v1/inventory/po-import/apply

Create a draft purchase order from confirmed line items and vendor. Unmatched SKUs require variant_id overrides or must be skipped.

Operation ID: apply_po_import_api_v1_inventory_po_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_idstringrequired
vendor_idstringrequired
po_numberstringrequired
namestringrequired
descriptionstring
line_decisionsarray · POLineDecisionPOLineDecision
3 fields
row_numberintegerrequired
actionstring

One of: include, skip

variant_idstring

Override variant UUID for unmatched/ambiguous lines.

selected_sheetsarray · stringrequired
sheet_mappingsarray · POSheetMappingConfirmationrequiredPOSheetMappingConfirmation
4 fields
sheet_namestringrequired
mappingobjectrequired

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

data_start_rowinteger
exclude_rowsarray · integer

Responses

201Successful Response

successboolean
messagestring
codestring
dataPOApplyResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error - Invalid data format