create_production_order
Create a new Draft manufacturing production order for a product with a valid BOM recipe. Supports confirm and idempotency validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | Quantity to produce (positive whole integer <= 100000) | |
| sku | Yes | SKU of the finished product with a valid BOM recipe | |
| notes | No | Optional notes | |
| farmId | Yes | The unique farm ID | |
| confirm | No | Set to true to commit, false for dry-run preview | |
| dueDate | No | Optional due date (YYYY-MM-DD) | |
| idempotencyKey | Yes | Unique request idempotency key (REQUIRED) |