Step 2 of 2 to order, for a basket check_order has allowed: checks the same order again and returns the link the customer pays on, on the bakery's own domain. The same order sent again within 15 minutes gets the same link back; an empty basket gets no link. Toast: a Pinoyshki page that shows the order while it finishes the cart on Toast (with the staff tip and the pickup day and time), then takes them to Toast's checkout (good for a week; opened after its pickup time it remakes the cart for the next pickup time). Catering: it checks the order again and opens Shopify's checkout with the date, time and pickup or delivery filled in (good for a week). No payment happens here. If a rule is broken it returns the problems instead of a link.
View input schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"minItems": 1,
"maxItems": 60,
"description": "What to order. Use item names exactly as get_menu or search_menu gave them.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Item name from the menu."
},
"size": {
"type": "string",
"description": "Catering sizes: 'full' (default), 'dozen', 'half dozen' or 'individual' (bite-size). Same-day items are always 'full'."
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 500
},
"note": {
"type": "string",
"description": "Optional note for this line, like a cake inscription."
},
"if_unavailable": {
"type": "string",
"enum": [
"closest",
"remove",
"cancel"
],
"description": "Toast orders, piroshki and pinoyshki only: what the bakery does if this one is sold out when the order is made. 'closest' (default) swaps in the closest piroshki, 'remove' leaves it out, 'cancel' cancels the order. Worth asking for a scheduled day, since the counter menu changes."
},
"backups": {
"type": "array",
"maxItems": 3,
"items": {
"type": "string"
},
"description": "Toast orders, with if_unavailable 'closest': up to 3 counter-menu piroshki or pinoyshki the customer would take instead, in order of preference."
},
"combo": {
"type": "string",
"enum": [
"small",
"large",
"none"
],
"description": "Toast orders, piroshki and pinoyshki, when the pickup time is in combo hours (Tue to Fri, 11 am to 4 pm): 'small' = fries + a 12oz drink, 'large' = large fries, borscht + a drink, 'none' = the customer said no. check_order offers it (combo_offer) with each item's prices and drinks."
},
"combo_drink": {
"type": "string",
"description": "The combo's drink, as check_order listed it (like '12oz Coke' or 'Small Juice'). Default: any 12oz soda."
},
"cake": {
"type": "object",
"description": "Only on the decorated cake (see cake_options): what was decided with the customer. Leave out what is not decided yet.",
"properties": {
"guests": {
"type": "integer",
"minimum": 1,
"description": "How many people; picks the size."
},
"size": {
"type": "string",
"description": "A size from cake_options, like '10-15'."
},
"flavor": {
"type": "string",
"description": "One of cake_options' premade flavors, or the custom flavor asked for (vanilla, red velvet, ube...), which goes to the bakery to confirm."
},
"recipient": {
"type": "string",
"description": "Who it is for (with their age, for a birthday)."
},
"occasion": {
"type": "string"
},
"design": {
"type": "string",
"description": "The design concept the customer agreed to."
},
"inscription": {
"type": "string",
"description": "What it says, or 'none'."
},
"allergens": {
"type": "string",
"description": "Allergies or dietary needs, or 'none'."
},
"candles": {
"type": "boolean"
},
"card": {
"type": "boolean",
"description": "A card to go with the cake."
}
},
"additionalProperties": false
}
},
"required": [
"name",
"quantity"
]
}
},
"channel": {
"type": "string",
"enum": [
"today",
"catering"
],
"description": "Optional. 'today' = the counter menu on Toast: same day, or a scheduled pickup up to 14 days ahead (up to 6 full-size, pickup only, paid on Toast); 'catering' = ordered 3 or more days ahead, paid on Shopify. Left out, the basket and date decide: catering is preferred from 3 days out when every item is on the catering menu."
},
"fulfillment": {
"type": "string",
"enum": [
"pickup",
"delivery"
],
"description": "Default pickup. Delivery is catering, week-ahead only."
},
"date": {
"type": "string",
"description": "The date as YYYY-MM-DD ('today' also works). Work it out from the customer's words using today's date in Seattle (Pacific time). If their words could mean two dates, like 'next Friday' said earlier in the same week, ask them which before calling. Needed for catering and for a Toast pickup on a later day."
},
"time": {
"type": "string",
"description": "12-hour time like '1:00 pm'. Needed for catering and for a Toast pickup on a later day."
},
"zip": {
"type": "string",
"description": "Delivery ZIP code (delivery is within 15 miles)."
},
"utensils": {
"type": "boolean",
"description": "Catering: include utensils. Default true."
},
"notes": {
"type": "string",
"description": "Optional note for the bakery."
},
"staff_tip": {
"type": "integer",
"minimum": 0,
"maximum": 50,
"description": "Toast orders: the tip for the bakery staff in whole dollars, shared by the staff who bake, pack and hand over the order. 0 (the default) unless the customer picks one; offer $1, $3 or $5 or any whole amount."
},
"customer_name": {
"type": "string",
"description": "Optional: the name the order is for."
},
"customer_phone": {
"type": "string",
"description": "Optional: a phone number for the bakery."
},
"customer_email": {
"type": "string",
"description": "Optional: an email for the bakery."
}
},
"required": [
"items"
],
"additionalProperties": false
}