Build an order and get a checkout link
create_cartBuild the order and get a checkoutUrl for the person. Nothing is charged and no order is placed: the person opens the link, signs in and pays. pickupType asap is only for an event happening now; preorder needs a pickupTime from get_pickup_times. If something is wrong you get a list of problems to fix. The link works for up to 2 hours.
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": {
"restaurantId": "<restaurantId>",
"eventId": "<eventId>",
"pickupType": "<pickupType>",
"items": "<items>"
},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Each line is a menu item {menuItemId, quantity} (or {menuItemId, amount} when soldBy is amount), or a combo {comboId, quantity, picks: [{comboPicklistId, menuItemId, optionAnswerIds, note}]} with one pick per picklist. | |
| eventId | Yes | From find_restaurants. Use an event with orderable true. | |
| agentName | No | Your assistant's name, e.g. Claude or ChatGPT. Shown to the restaurant in reports. | |
| pickupTime | No | For preorder: pickupTimeUtc (or unix) from get_pickup_times. | |
| pickupType | Yes | ||
| restaurantId | Yes | From find_restaurants. |