create_reorder
Raise a purchase order to replenish a SKU at a warehouse, returning an existing open order instead of duplicating it when retried.
Instructions
Raise a purchase order to replenish a SKU at a warehouse. Safe to retry: if an open PO already exists for the line it is returned with duplicate=true instead of creating another.
Args:
sku: SKU ID such as "SKU-107".
warehouse_id: Warehouse ID ("WH-BLR"), code or city.
qty: Units to order; 0 = automatic (tops stock up to 2x reorder point, min standard reorder qty).
Returns:
{"status": "ok", "duplicate": bool, "purchase_order": {id, qty, supplier, expected_by, ...}, "message"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| sku | Yes | ||
| warehouse_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||