New order
o2c_create_orderRaise a sales order directly, without a quote. Use this for repeat business and phone orders. Anything the customer negotiated should go through a quote instead, so the agreed price has a document behind it. Effects: order created in draft.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>",
"lines": "<lines>"
},
"name": "o2c_create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The ordered lines. | |
| po_ref | No | The customer's own PO number. | |
| customer_id | Yes | Who is buying. An existing customer id. |