Start or change an order
start_orderFor customers: build a priced draft order at one shop, or price a draft again with changes. A draft is private and reserves nothing: it reaches the seller only through place_order. Send the whole list of items each time; order names the draft to change. It checks stock, the day and the time as the storefront does, and returns the draft with its total. A name that matches several things, or a day with several times, is needs_choice.
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": {
"shop": "<shop>",
"items": "<items>",
"request_id": "<request_id>"
},
"name": "start_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | No | When it is picked up or delivered, on the shop's clock: a time get_product lists, or a day. For example "2026-12-05T10:00" or "2026-12-05"; the reply echoes the weekday. | |
| drop | No | For products sold in drops: the drop by name or id, when more than one is open. | |
| name | No | The buyer's name for the seller, required when their Confita account has none. | |
| note | No | A note for the seller from the buyer. | |
| shop | Yes | The shop by slug, id (shp_...) or name. | |
| items | Yes | Everything in the order: the whole list each time. | |
| order | No | A draft's id (ord_...) to change instead of starting a new one. | |
| phone | No | A phone number for the seller, kept only when `name` is sent too. | |
| coupon | No | A coupon code the buyer has. | |
| answers | No | Answers to get_shop `questions`. | |
| getting_it | No | Left out, pickup. | |
| request_id | Yes | Unique per call; the same id again returns the first result. | |
| pickup_place | No | The pickup place by name or id, when the shop has several and the time does not set it. | |
| delivery_zone | No | The delivery zone by name or id, when the shop has several; the street address is never sent here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| due | No | ||
| next | No | ||
| sent | No | ||
| shop | No | ||
| error | No | ||
| items | No | ||
| quote | No | ||
| total | No | ||
| number | No | ||
| pickup | No | ||
| status | No | ||
| window | No | ||
| choices | No | ||
| deposit | No | ||
| missing | No | ||
| outcome | No | ||
| discount | No | ||
| ordering | No | ||
| subtotal | No | ||
| timezone | No | ||
| untrusted | No | ||
| getting_it | No | ||
| confirmation | No | ||
| delivery_fee | No | ||
| payment_status | No | ||
| seller_discount | No |