create_order
Turn an active reservation into a confirmed order, deducting units from stock after salesperson confirmation. Supports cash, card, or installment payments.
Instructions
Turn an active reservation into a confirmed order, discounting the units from stock. This writes to the database; confirm with the salesperson before calling it.
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": {
"reservation_code": "<reservation_code>",
"payment_method": "<payment_method>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | No | Required when payment_method is INSTALLMENTS. | |
| payment_method | Yes | ||
| reservation_code | Yes |