充值接口
<h4>简要描述</h4>
<ul>
<li>
<p>充值下单的操作为异步请求,报文返回成功,则表示平台接收到此消息,具体充值是否成功或者校验出错,则需要我方发起异步通知,或者下游发起查询请求来判断</p>
</li>
<li>
<p>请求URL:<code>http://host:port/recharge/api/recharge.html</code></p>
</li>
<li>请求方法:POST</li>
<li>请求头:
Content-Type:application/json;charset=utf-8
accept: application/json;charset=utf-8</li>
</ul>
<h5>请求参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>privateKey</td>
<td>是</td>
<td>string</td>
<td>代理商私钥(平台提供)</td>
</tr>
<tr>
<td>encryptionData</td>
<td>是</td>
<td>string</td>
<td>DES加密参数,加密参数如下</td>
</tr>
</tbody>
</table>
<h5>DES加密参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>goodsNo</td>
<td>是</td>
<td>string</td>
<td>商品编号</td>
</tr>
<tr>
<td>goodsQuantity</td>
<td>是</td>
<td>Integer</td>
<td>商品数量</td>
</tr>
<tr>
<td>goodsType</td>
<td>否</td>
<td>Integer</td>
<td>商品类型</td>
</tr>
<tr>
<td>merchantNo</td>
<td>是</td>
<td>string</td>
<td>代理商编号</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>Long</td>
<td>(网易点数:50点数==5元,以此内推,上传点数即可)其他正常传入金额</td>
</tr>
<tr>
<td>rechargeNumber</td>
<td>是</td>
<td>string</td>
<td>充值邮箱</td>
</tr>
<tr>
<td>serialNumber</td>
<td>是</td>
<td>string</td>
<td>上传你的订单号唯一且不能重复</td>
</tr>
<tr>
<td>timestamp</td>
<td>是</td>
<td>Long</td>
<td>时间戳</td>
</tr>
<tr>
<td>version</td>
<td>是</td>
<td>String</td>
<td>版本(固定上传1)</td>
</tr>
</tbody>
</table>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>int</td>
<td>响应状态码</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>响应信息</td>
</tr>
<tr>
<td>version</td>
<td>int</td>
<td>响应状态码</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>响应数据</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>
{&quot;status&quot;:200,&quot;msg&quot;:&quot;操作成功&quot;,&quot;version&quot;:1,&quot;data&quot;:null}
</code></pre>
<h5>status状态码表</h5>
<table>
<thead>
<tr>
<th>状态码</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>请求成功</td>
</tr>
<tr>
<td>500</td>
<td>系统异常</td>
</tr>
<tr>
<td>8001</td>
<td>商户号不存在</td>
</tr>
<tr>
<td>8002</td>
<td>商户验证失败</td>
</tr>
<tr>
<td>8003</td>
<td>商户秘钥重置失败</td>
</tr>
<tr>
<td>8004</td>
<td>商户资金账户错误</td>
</tr>
<tr>
<td>8005</td>
<td>非法的请求地址(绑定IP地址后,如果是非该IP地址请求)</td>
</tr>
<tr>
<td>8006</td>
<td>账户余额不足</td>
</tr>
<tr>
<td>8007</td>
<td>商品不存在</td>
</tr>
<tr>
<td>8019</td>
<td>请求太过频繁</td>
</tr>
<tr>
<td>8020</td>
<td>缺少必要参数或参数值不合法</td>
</tr>
<tr>
<td>8030</td>
<td>服务器接收的请求已满</td>
</tr>
<tr>
<td>8026</td>
<td>订单不存在</td>
</tr>
<tr>
<td>8027</td>
<td>订单面值与商品金额不符合</td>
</tr>
</tbody>
</table>