兑换系统开放接口


订单查询

<h3>订单查询</h3> <p><strong>URL:</strong> /v1/openapi/order/info</p> <p><strong>Type:</strong> POST</p> <p><strong>Content-Type:</strong> application/json; charset=utf-8</p> <p><strong>Description:</strong> 订单查询</p> <p><strong>Request-headers:</strong></p> <table> <thead> <tr> <th>Header</th> <th>Type</th> <th>Description</th> <th>Required</th> <th>Since</th> </tr> </thead> <tbody> <tr> <td>businessId</td> <td>string</td> <td>业务ID,由平台提供</td> <td>true</td> <td>-</td> </tr> <tr> <td>nonce</td> <td>string</td> <td>随机字符串,需保证每次请求不同</td> <td>true</td> <td>-</td> </tr> <tr> <td>timestamp</td> <td>string</td> <td>时间戳,毫秒值</td> <td>true</td> <td>-</td> </tr> <tr> <td>sign</td> <td>string</td> <td>签名值</td> <td>true</td> <td>-</td> </tr> <tr> <td>signType</td> <td>string</td> <td>签名方式:SHA256-RSA、MD5。默认:SHA256-RSA</td> <td>false</td> </tr> </tbody> </table> <p><strong>Body-parameters:</strong></p> <table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> <th>Required</th> <th>Since</th> </tr> </thead> <tbody> <tr> <td>orderCode</td> <td>string</td> <td>平台订单号</td> <td>false</td> <td>-</td> </tr> <tr> <td>bizCode</td> <td>string</td> <td>商家订单号</td> <td>false</td> <td>-</td> </tr> </tbody> </table> <p><strong>Request-example:</strong></p> <pre><code>curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'businessId:55' -H 'nonce:55' -H 'timestamp:1628757969177' -H 'sign:55' -i /v1/openapi/order/info? --data '{ &amp;quot;orderCode&amp;quot;: &amp;quot;33976&amp;quot;, &amp;quot;bizCode&amp;quot;: &amp;quot;33976&amp;quot; }'</code></pre> <p><strong>Response-fields:</strong></p> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> <th>Since</th> </tr> </thead> <tbody> <tr> <td>status</td> <td>int32</td> <td>状态码</td> <td>-</td> </tr> <tr> <td>message</td> <td>string</td> <td>返回消息</td> <td>-</td> </tr> <tr> <td>data</td> <td>object</td> <td>数据对象</td> <td>-</td> </tr> <tr> <td>└─orderCode</td> <td>string</td> <td>平台订单号</td> <td>-</td> </tr> <tr> <td>└─bizCode</td> <td>string</td> <td>业务方订单号</td> <td>-</td> </tr> <tr> <td>└─mobile</td> <td>string</td> <td>手机号</td> <td>-</td> </tr> <tr> <td>└─settlementPrice</td> <td>number</td> <td>结算金额</td> <td>-</td> </tr> <tr> <td>└─orderStatus</td> <td>int32</td> <td>订单状态</td> <td>-</td> </tr> <tr> <td>└─orderMessage</td> <td>string</td> <td>订单状态消息</td> <td>-</td> </tr> <tr> <td>└─orderFailStatus</td> <td>int32</td> <td>订单异常状态</td> <td>-</td> </tr> <tr> <td>└─orderFailMessage</td> <td>string</td> <td>订单异常状态消息</td> <td>-</td> </tr> <tr> <td>└─productName</td> <td>string</td> <td>产品名称-短信签名</td> <td>-</td> </tr> <tr> <td>└─productType</td> <td>int32</td> <td>产品类型:流量、话费、短信、直充卡券、券码(可上传券码)、福利、还信用卡、加油卡、支付</td> <td>-</td> </tr> <tr> <td>└─spec</td> <td>number</td> <td>规格-金额、流量等</td> <td>-</td> </tr> <tr> <td>└─account</td> <td>string</td> <td>账号:加油卡、银行卡等</td> <td>-</td> </tr> <tr> <td>└─accountAttachValues</td> <td>string</td> <td>附加信息值</td> <td>-</td> </tr> <tr> <td>└─dealCompleteTime</td> <td>string</td> <td>充值完成时间</td> <td>-</td> </tr> <tr> <td>└─createTime</td> <td>string</td> <td>下单时间</td> <td>-</td> </tr> <tr> <td>└─orderVoucher</td> <td>string</td> <td>充值凭证</td> <td>-</td> </tr> <tr> <td>└─extData</td> <td>string</td> <td>扩展参数,下单时传的extData</td> <td>-</td> </tr> <tr> <td>└─type</td> <td>int</td> <td>券码类型</td> <td>1-兑换URL,2-卡号卡密</td> </tr> <tr> <td>└─couponInfo</td> <td>Array</td> <td>券码集合</td> <td>卡号卡密会加密,需自行解密</td> </tr> <tr> <td>cardNo</td> <td>String</td> <td>卡号(不存在卡号时则为null)</td> </tr> <tr> <td>cdkey</td> <td>String</td> <td>卡密or短链</td> </tr> <tr> <td>validityDate</td> <td>date</td> <td>有效截止期</td> </tr> </tbody> </table> <p><strong>Response-example:</strong></p> <pre><code>{ &amp;quot;status&amp;quot;: 572, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;orderCode&amp;quot;: &amp;quot;33976&amp;quot;, &amp;quot;bizCode&amp;quot;: &amp;quot;33976&amp;quot;, &amp;quot;mobile&amp;quot;: &amp;quot;17780120049&amp;quot;, &amp;quot;settlementPrice&amp;quot;: 561, &amp;quot;orderStatus&amp;quot;: 84, &amp;quot;orderMessage&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;orderFailStatus&amp;quot;: 721, &amp;quot;orderFailMessage&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;productName&amp;quot;: &amp;quot;昊然.金&amp;quot;, &amp;quot;productType&amp;quot;: 223, &amp;quot;spec&amp;quot;: 590, &amp;quot;account&amp;quot;: &amp;quot;35ojo2&amp;quot;, &amp;quot;accountAttachValues&amp;quot;: &amp;quot;4f4bv7&amp;quot;, &amp;quot;dealCompleteTime&amp;quot;: &amp;quot;2021-08-12&amp;quot;, &amp;quot;createTime&amp;quot;: &amp;quot;2021-08-12&amp;quot; } }</code></pre>

页面列表

ITEM_HTML