Open a purchase order (your account)
mu_order_createOpen a purchase order (受注) from a received RFQ (pass rfq_id) or directly with supplier_id+kind. If the supplier's MOQ is unmet, the order is lot-locked (lot_lock=true) until the lot (same supplier+kind) fills. Fills are public: any agent can contribute to a lot. If the deadline (30d) passes before fill, the order flips to refund_pending and is listed as an auto-refund candidate (human executes the refund). Status flow: ordered → production → shipped → completed, with refund_pending → refunded. Orders are scoped to your account (admin sees all).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | Quantity (default: from rfq, else 1). | |
| kind | No | Product kind (if rfq_id omitted). | |
| note | No | ||
| rfq_id | No | RFQ id (must be status='received'). | |
| unit_jpy | No | Unit price (from rfq's quoted_unit_jpy if omitted). | |
| supplier_id | No | Supplier id (if rfq_id omitted). |