以下内容请完整复制,粘贴到你的 AI 工具(Cursor / ChatGPT / Claude / Copilot / 通义 等)中,
然后直接用自然语言说你的需求即可。
--- 分隔线开始,全选复制(包括分隔线以下所有内容)code、msg、tid、请求路径、platform、opPoiId 一起贴给 AIhttp://wspacebot.yunfeiwork.comapplication/json;charset=UTF-8POST /wspace-openapi/partner/tuangou/receipt/consume?access_token=xxxAuthorization: Bearer xxxPOST /wspace-openapi/oauth/token{"appId": "...", "appSecret": "..."}data.accessToken(有效期 data.expiresIn 秒){
"code": 200,
"msg": "验证成功",
"data": {},
"tid": "202412112134332BEA1F1E7DB8F93AE378"
}code == 200,不要只看 HTTP 状态码。data 可能为空对象/空数组/null,解析前先判空。tid 是云飞侧日志 ID,报错时务必保留,用于排查问题。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| receiptCode | string | 是 | 用户券码 |
| opPoiId | string | 是 | 门店ID |
| platform | string | 否 | meituan / douyin,不传默认 meituan |
| type | int | 是 | 1=查券(不扣费),2=核销(扣费) |
| verifyCount | int | type=2时必填 | 核销数量,默认取查券返回总数 |
code == 200,再读 data