View basket
view_basketUse this to show what is in the customer's teas.co.uk basket, with the live subtotal and a delivery estimate. Prices and stock are read again on every call. basket_id is only for hosts that do not identify the customer: pass the one an earlier basket tool returned. A basket is kept for 35 days after its last change. An unknown basket_id, or a basket never filled, comes back empty (no lines, no delivery price) rather than as an error. To add products use add_to_basket, to change quantities use update_basket, and to pay use checkout_link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basket_id | No | Only for hosts that do not identify the user: the basket_id returned by an earlier basket tool in this conversation. Leave it out otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Number of items in the basket. | |
| lines | Yes | ||
| delivery | Yes | ||
| messages | Yes | Anything that could not be added or changed, in plain words. | |
| subtotal | No | Pounds including VAT, before delivery. | |
| basket_id | No | Present only when the host did not identify the user: pass it to later basket tools. | |
| subtotal_text | Yes |