佳诺虚充业务API接口文档

代理开放接口文档


查询商品

<p>[TOC]</p> <h5>接口地址</h5> <ul> <li><code>http://120.26.223.111:9090/v1/QueryProduct</code></li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Service</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>下单命令(签名)</td> <td>QueryProduct 查询产品固定值</td> </tr> <tr> <td style="text-align: left;">UserId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>帐号 ID(签名)</td> <td>注意不是登陆名</td> </tr> <tr> <td style="text-align: left;">BizType</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>业务类型(签名)</td> <td>固定填写:  ECARD</td> </tr> <tr> <td style="text-align: left;">Time</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>时间戳(签名)</td> <td>1970-1-1  ( UTC)  到现在的总秒数 10位</td> </tr> <tr> <td style="text-align: left;">Sign</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>签名值</td> <td>参见签名算法</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code>{ &amp;quot;UserId&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;Service&amp;quot;: &amp;quot;QueryProduct&amp;quot;, &amp;quot;BizType&amp;quot;: &amp;quot;ECARD&amp;quot;, &amp;quot;Time&amp;quot;: &amp;quot;1706162975&amp;quot;, &amp;quot;Sign&amp;quot;: &amp;quot;f4312cf3a15e5f38ad4fa41bbf34f9fc&amp;quot; }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>消息代码</td> <td>成功返回 0,  出错返回对应的错误码</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">String</td> <td>消息文本</td> </tr> <tr> <td style="text-align: left;">ProductData</td> <td style="text-align: left;">JSONArray</td> <td>产品列表</td> </tr> </tbody> </table> <h6>ProductData数据</h6> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">agentProductPrice</td> <td style="text-align: left;">BigDecimal</td> <td>代理产品价格(元)</td> </tr> <tr> <td style="text-align: left;">productStatus</td> <td style="text-align: left;">int</td> <td>产品状态</td> <td>99 上架 其余状态均是下架状态</td> </tr> <tr> <td style="text-align: left;">productId</td> <td style="text-align: left;">String</td> <td>产品编码</td> </tr> <tr> <td style="text-align: left;">price</td> <td style="text-align: left;">BigDecimal</td> <td>产品官方价格(元)</td> </tr> <tr> <td style="text-align: left;">productName</td> <td style="text-align: left;">String</td> <td>产品名称</td> </tr> </tbody> </table> <h5>返回参数示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;ProductData&amp;quot;: [{ &amp;quot;agentProductPrice&amp;quot;: null, &amp;quot;productStatus&amp;quot;: 99, &amp;quot;productId&amp;quot;: &amp;quot;test&amp;quot;, &amp;quot;price&amp;quot;: 11.00, &amp;quot;productName&amp;quot;: &amp;quot;腾讯体育&amp;quot; }, { &amp;quot;agentProductPrice&amp;quot;: null, &amp;quot;productStatus&amp;quot;: 99, &amp;quot;productId&amp;quot;: &amp;quot;ECT25&amp;quot;, &amp;quot;price&amp;quot;: 11.00, &amp;quot;productName&amp;quot;: &amp;quot;小米电视影视会员月卡&amp;quot; }] }</code></pre>

页面列表

ITEM_HTML