Build my basket
build_basketCreates a new anonymous IMPOSSIBREW Shopify cart for a one-time or subscription purchase (frequency) and returns its checkout link (Shop Pay or card on impossibrew.co.uk). The cart is not linked to any customer account. Suits any request to buy, order, try or subscribe. Subscriptions are cancel-any-time and, exactly like the website, earn welcome gifts by box count: 2 boxes 1 free glass, 3 boxes 2 glasses, 4 boxes 2 glasses plus a T-shirt. A T-shirt size (S-4XL) is needed only when the result says need_shirt_size. Prices, discounts and gifts are Shopify's exact live readback. A one-time result also shows the same beers on subscription, with the saving and gifts. It does not place an order or take payment: the customer completes checkout on impossibrew.co.uk.
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": {
"items": "<items>"
},
"name": "build_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| frequency | No | ||
| shirtSize | No |