鼎音充值系统

API文档示例


订单提交接口(电费,抖音,游戏)

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>通过此接口提交电费,游戏或抖音充值订单</li> </ul> <h5>请求URL</h5> <ul> <li><code>地址:http://平台服务地址:9086/gameonlinepay.do</code></li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th>header</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Content-type</td> <td></td> <td>是</td> <td>string</td> <td>application/x-www-form-urlencoded</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th>参数名</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>userid</td> <td></td> <td>是</td> <td>string</td> <td>商户编号(非登录名),平台方提供</td> </tr> <tr> <td>productid</td> <td></td> <td>否</td> <td>string</td> <td>平台商品编号,可为空,为空时根据号码判断运营商, 充流量时填写对应流量商品编号</td> </tr> <tr> <td>num</td> <td></td> <td>是</td> <td>string</td> <td>订单商品数量</td> </tr> <tr> <td>areaid</td> <td></td> <td>否</td> <td>string</td> <td>游戏账户所在区编号,国网电费时传用户手机号.</td> </tr> <tr> <td>serverid</td> <td></td> <td>否</td> <td>string</td> <td>游戏账户所在服编号</td> </tr> <tr> <td>account</td> <td></td> <td>是</td> <td>string</td> <td>需充值账号(电费格式注一)</td> </tr> <tr> <td>userip</td> <td></td> <td>否</td> <td>string</td> <td>买家IP由合作商提供,南网电费此字段传身份证号(不参与签名 )</td> </tr> <tr> <td>spordertime</td> <td></td> <td>是</td> <td>string</td> <td>代理商订单时间(yyyyMMddHHmmss)如20210224134552</td> </tr> <tr> <td>sporderid</td> <td></td> <td>是</td> <td>string</td> <td>代理商系统订单号(流水号)要求不可重复,每笔只可同时提交一次</td> </tr> <tr> <td>sign</td> <td></td> <td>是</td> <td>string</td> <td>验证摘要串(注二)</td> </tr> <tr> <td>back_url</td> <td></td> <td>否</td> <td>string</td> <td>回调URL,(不参与签名 )</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>&lt;?xml version="1.0" encoding="GB2312" ?&gt; - &lt;order&gt; &lt;orderid&gt;XS090428000003&lt;/orderid&gt; &lt;productid&gt;3312&lt;/productid&gt; &lt;num&gt;1&lt;/num&gt; &lt;ordercash&gt;98.5&lt;/ordercash&gt; &lt;productname&gt;游戏直充&lt;/productname&gt; &lt;sporderid&gt;2009042800001&lt;/sporderid&gt; &lt;account&gt;13590101510&lt;/account&gt; &lt;resultno&gt;0&lt;/resultno&gt; &lt;/order&gt;</code></pre> <h5>成功返回示例的参数说明</h5> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>orderid</td> <td>string</td> <td>直充平台订单号</td> </tr> <tr> <td>productid</td> <td>string</td> <td>商品编号</td> </tr> <tr> <td>num</td> <td>string</td> <td>数量</td> </tr> <tr> <td>ordercash</td> <td>string</td> <td>订单金额</td> </tr> <tr> <td>productname</td> <td>string</td> <td>商品名称</td> </tr> <tr> <td>sporderid</td> <td>string</td> <td>商户平台订单号</td> </tr> <tr> <td>account</td> <td>string</td> <td>待充值账号</td> </tr> <tr> <td>resultno</td> <td>string</td> <td>直充结果编码 详见备注描述</td> </tr> </tbody> </table> <h5>备注</h5> <p>(注一)电费account 为一个JSON格式:<br /> {“product_type”:”3”,”userid”:”123123123”,”username”:””,”type”:”1”,”area”:”江苏”,”city”:”南京”}</p> <p>“product_type” 必填 1:话费,2:流量,3:电费,4:油卡<br /> “userid” 必填 需要充值的户号<br /> “username” 可选 南网用户传 身份证后六位<br /> “type” 可选 户号类型 : 1:住宅,2:店铺,3:企事业,4:身份证, 7:代扣银行卡 ,6:营业执照/机构代码<br /> “area” 可选 北京,江苏,广东,等省份信息<br /> “city” 可选 北京,南京</p> <p>(注二)验证摘要串规则:<br /> sign=MD5(userid=xxxx&amp;productid=xxxxxxx&amp;num=xxx&amp;areaid=xxx&amp;serverid=xxx&amp;account=xxxxx&amp;spordertime=xxxxxxx&amp;sporderid=xxxxx&amp;key=xxxxxxx).toUpperCase()<br /> 签名时key和顺序都不能错.参数值为空的时候传空字符串参与签名,不是传null.大小写敏感.<br /> 字符串内中文使用GBK字符集!<br /> userid和key 都由平台提供,请联系商务获取</p>

页面列表

ITEM_HTML