> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clawdot.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# retail_checkout

> 预览

预览。商品和地址都选好后，action=preview 刷新商品、算实付，出确认页；确认页那一项的 ref 就是建收款单用的 confirm\_ref（10 分钟有效）。

## 工具说明（与线上 tools/list 同源）

```text theme={null}
先调 create_task 拿 task_id，再带着它调本工具。
零售第三组：商品和地址都选好后，action=preview 刷新商品、算实付，出确认页；确认页那一项的 ref 就是建收款单用的 confirm_ref（10 分钟有效）。
```

## 参数

| 字段 | 类型 | 必填 | 说明 |
| - | - | - | - |
| `task_id` | string | 是 | create\_task 返回的 task\_id |
| `action` | string | 是 | 取值：preview；各动作做什么见上面的说明。 |
| `context` | object | 是 | utterance（必填）：用户这一轮的原话。phone 只在回 consent\_required 要手机号时带：\{"phone": "\<用户的手机号>"}，同样的参数重调这一步；只用来发起授权，不保存 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.