Create Draft PO from Planning
POST/api/reporting/inventory-planning/create-po
Creates a draft purchase order from reorder suggestions in the inventory planning report.
Authentication: Requires Bearer token
Required fields:
- supplier_id: integer (must exist)
- product_ids: array of integers (min 1, must exist)
Optional fields:
- quantities: object keyed by product_id with integer values (min 1)
- use_adjusted_qty: boolean (default: true) — use the adjusted reorder qty
- order_status: 'draft' | 'open' (default: 'draft')
- destination_warehouse_id: integer (must exist)
Request
Responses
- 200
Successful response