ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 订单查询 ***** 支付宝官方LOT指令接入指南文档 https://opendocs.alipay.com/mini/multi-platform/crtlbn ## 发送指令报文 ``` {"target": "ix","content": {"out_trade_no": "200811312654531058355","method": "order_query"}} ``` | 字段 | 说明 | | --- | --- | | target | 固定ix | | content | 指令内容 | | content->method | 固定值:order_query | | content->out_trade_no | 查询的订单号 平台返回的单号 | ## 返回指令报文 ``` {"content":{"code":100,"msg":"付款成功","out_trade_no":"200811312654531058355","pay_type":"wx","status":1,"total":0.01,"transaction_id":"4200000585202008119117306418","type":"order_query"},"target":"ix"} ``` | 字段 | 说明 | | --- | --- | | target | 固定ix | | content | 指令内容 | | content->type | 指令类型: pay支付 order_query订单查询 close订单关闭 msg错误提醒 | | content->total | 支付金额 单位:元| | content->out_trade_no | 平台订单号 可使用当前单号查询支付结果 | | content->transaction_id | 官方订单号 (支付成功订单返回) | | content->pay_type | 支付类型 wx微信 ali支付宝 yl云闪付 | | content->status | 支付状态 -1未支付或支付失败 0支付中 1支付成功 2已退款 3等待输入密码 4已撤销或已关单 | | content->code | 状态码 100成功 400失败 | | content->msg | 支付提示 |