Amend order
o2c_amend_orderReplace the lines of a DRAFT order. Amendment exists only while the order is draft. After confirmation "what was confirmed" is a fixed fact the credit gate evaluated: the only permitted shrink is o2c_close_short, and growth is a new order. The passed lines replace all existing lines. Effects: order lines replaced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The new full set of lines. | |
| order_id | Yes | The draft order. An existing order id. |