jetms-basket
ChatGPTBuild and manage the user's Just Eat delivery basket. Set the operation field: 'add' — Add a menu item. Requires seoName + itemId, plus postcode (or lat + lng) for the delivery address. If get_catalogue_item reported requires_configuration=true for the item, you MUST include answers for every required configuration step in this same call — basket(add) does NOT return the option list. Omit basketId to start a new basket; pass basketId to add another item to the basket you already started. 'view' — Show the basket: items, productIds, quantities, subtotal, delivery charge and total. Requires basketId. 'remove' — Remove one line. Requires basketId + productId taken from a 'view' response. 'clear' — Empty the basket. Use when the user changes their mind or switches restaurant. Requires basketId. Ordering: search_restaurants → get_catalogue_item → basket(add). Do NOT call basket(add) before search_restaurants has given you a seoName. Do NOT call basket(add) for a configurable item before get_catalogue_item has given you its configuration_steps. A basket belongs to exactly one restaurant — to order from a different restaurant, start a new basket by omitting basketId. All prices are in pence (GBP minor units); divide by 100 when telling the user. This tool does not place an order or take payment: give the user the checkout_url so they can review and pay on just-eat.co.uk. add/view/remove operations return a basket widget. clear returns text only.





