Draft purchase orders from reorder suggestions

POST /api/v1/inventory/reorder/draft

Materialize reorder suggestions as draft purchase orders, one per vendor. Variants without a preferred vendor are skipped.

Operation ID: create_draft_reorders_api_v1_inventory_reorder_draft_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.

Responses

201 Successful Response

drafts array · DraftReorderResult DraftReorderResult
6 fields
order_id string
po_number string
vendor_id string required
vendor_name string
line_count integer required
estimated_total_cents integer required
drafted_count integer
skipped_unassigned integer

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

409 Conflict - Resource already exists

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object