啡快创建订单
工具名称
create_pickup_order
MCP Endpoint
tools/call · create_pickup_order
分类
算价与下单
做什么
用于 MOP 啡快到店自取 场景创建订单。
适用于用户已经完成算价并确认门店、商品、规格、加料和可选优惠券,
准备正式提交订单并获取 order_id、pre_payid 和 pay_url 时调用。
调用前置
请求头 x-customer-id 与 x-user-id 二选一必传;
temp_order_id 只能来自 calculate_pickup_price 的返回结果。
幂等
相同 temp_order_id 的重复请求会返回首次结果,而不是重复下单。
入参
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| store_id | string | 是 | 门店 ID,从 search_stores 获取。 |
| temp_order_id | string | 是 | 临时订单 ID,来自 calculate_pickup_price;必须原样回传。 |
| coupon_list | string[] | 否 | 优惠券 ID 列表,可选,仅传券 ID 字符串。 |
| used_star_options | StarOption[] | 否 | 使用星星抵扣,从算价接口的 canUseStar 中获取。 |
用户语义触发
"帮我下这单"、"确认下单"、"生成支付链接"。