Skip to main content

Create Purchase Orders from Forecast

POST 

/api/inventory-forecasting/purchase-orders

Create purchase orders from forecast results. Creates a ForecastScheduleRun to track the creation.

Authentication: Requires Bearer token.

approval_status: draft (default) or approved — if approved, auto-approves the PO after creation.

submit_to_supplier: if true, submits the PO to the supplier after creation.

fore cast_config is optional but recommended for tracking — stores a snapshot of the config used.

Also syncs backorder coverage for all new PO lines.

Returns 422 if no valid orders provided.

Request

Responses

Successful response