Go to checkout
checkout_linkUse this when the customer is ready to buy what is in their teas.co.uk basket. Leave basket_id out on hosts that identify the customer; otherwise pass the basket_id an earlier basket tool returned. Returns the basket and a secure link that opens teas.co.uk with it, where the customer signs in or creates an account, chooses delivery and pays. Each call makes a new link, valid for 7 days, and any link opens the basket as it is when opened. An empty basket returns an error asking for a product first. The assistant never sees payment details and no order is placed until the customer pays on teas.co.uk. To buy specific products without the basket, use checkout_session instead.
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. | |
| checkout_url | No | Secure link that opens this basket at teas.co.uk checkout. | |
| how_it_works | No | ||
| subtotal_text | Yes | ||
| link_valid_for | No |