话费慢充

v2.0


充值提交接口

<p>&gt; POST <a href="https://gitee.com/link?target=http%3A%2F%2F%25E5%259F%259F%25E5%2590%258D%2Fyrapi.php%2Findex%2Frecharge"><a href="http://域名/api/index/recharge">http://域名/api/index/recharge</a></a></p> <h3><a href="https://gitee.com/dayuanren/rechargev2doc/blob/master/V2.md#%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E"></a>接口说明</h3> <p>&gt; 提交充值订单</p> <h3><a href="https://gitee.com/dayuanren/rechargev2doc/blob/master/V2.md#%E8%AF%B7%E6%B1%82%E4%BD%93request-body"></a>请求体(Request Body)</h3> <table> <thead> <tr> <th>参数名称</th> <th>数据类型</th> <th>示例</th> <th>不为空</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>out_trade_num</td> <td>string</td> <td>GG5822222266</td> <td>true</td> <td>商户订单号,由商户自己生成唯一单号。(同一商户,不能存在相同单号订单,相同订单号不能提单)</td> </tr> <tr> <td>product_id</td> <td>number</td> <td>68</td> <td>true</td> <td>产品ID(代理后台查看)</td> </tr> <tr> <td>mobile</td> <td>string</td> <td>18866667777</td> <td>true</td> <td>充值号码(手机号、电费户、qq号等)</td> </tr> <tr> <td>notify_url</td> <td>string</td> <td><a href="https://gitee.com/link?target=http%3A%2F%2Fwww.abc.com"><a href="http://www.abc.com">http://www.abc.com</a></a></td> <td>true</td> <td>回调地址,用于接收充值状态回调</td> </tr> <tr> <td>userid</td> <td>string</td> <td>10001</td> <td>true</td> <td>商户ID,通过客服或代理后台获取</td> </tr> <tr> <td>amount</td> <td>number</td> <td>100</td> <td>false</td> <td>面值,(不传不校验)如果产品的面值与此参数不同,提单驳回</td> </tr> <tr> <td>price</td> <td>number</td> <td>94.8</td> <td>false</td> <td>最高成本,(不传不校验)如果产品成本超过这个值,提单驳回</td> </tr> <tr> <td>area</td> <td>string</td> <td>广东</td> <td>false</td> <td>电费省份/直辖市,如:四川、北京、上海,仅电费带此参数</td> </tr> <tr> <td>ytype</td> <td>string</td> <td>1</td> <td>false</td> <td>电费验证三要素,1-身份证后6位,2-银行卡后六位,3-营业执照后六位,仅南网电费带此参数</td> </tr> <tr> <td>id_card_no</td> <td>string</td> <td>123456</td> <td>false</td> <td>身份证后6位/银行卡后6位/营业执照后6位,仅南网电费带此参数</td> </tr> <tr> <td>city</td> <td>string</td> <td>广州</td> <td>false</td> <td>地级市名,仅部分南网电费带此参数,是否带此参数需咨询渠道方</td> </tr> <tr> <td>param1</td> <td>string</td> <td>*</td> <td>false</td> <td>扩展参数,后台查看提交的产品类目是否需要提交此参数</td> </tr> <tr> <td>param2</td> <td>string</td> <td>*</td> <td>false</td> <td>扩展参数,后台查看提交的产品类目是否需要提交此参数</td> </tr> <tr> <td>param3</td> <td>string</td> <td>*</td> <td>false</td> <td>扩展参数,后台查看提交的产品类目是否需要提交此参数</td> </tr> <tr> <td>sign</td> <td>string</td> <td>JCXHF8S66BO6MPG5JNW2DGEJ9SB3F7ST</td> <td>true</td> <td>签名;签名规则见“签名说明”</td> </tr> </tbody> </table> <pre><code class="language-html">请求示例: out_trade_num=ABC1111&amp;amp;product_id=11&amp;amp;mobile=18899998888&amp;amp;notify_url=http://www.abc.com/yuanren&amp;amp;userid=10001&amp;amp;sign=GZWDK8X7TGJFA8N8O9HILQ6WSI46C8FJ</code></pre> <h3>响应体</h3> <p>● 响应数据格式:JSON,当“http状态非200”或者“响应体无数据时”可能是服务器或其他链路出现故障,无法准确判定是否成功下单,请通过订单查询或者人工方式再次确认状态。</p> <table> <thead> <tr> <th>参数名称</th> <th>类型</th> <th>示例</th> <th>不为空</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>errno</td> <td>string</td> <td>*</td> <td>true</td> <td>错误码,0代表成功,非0代表提交失败</td> </tr> <tr> <td>errmsg</td> <td>string</td> <td>*</td> <td>true</td> <td>错误描述</td> </tr> <tr> <td>data</td> <td>object</td> <td>*</td> <td>true</td> <td>errno=0时 返回数据</td> </tr> <tr> <td>⇥ order_number</td> <td>string</td> <td>*</td> <td>true</td> <td>系统定单号</td> </tr> <tr> <td>⇥ mobile</td> <td>string</td> <td>*</td> <td>true</td> <td>充值手机号</td> </tr> <tr> <td>⇥ product_id</td> <td>string</td> <td>*</td> <td>true</td> <td>产品ID</td> </tr> <tr> <td>⇥ total_price</td> <td>string</td> <td>*</td> <td>true</td> <td>消费金额</td> </tr> <tr> <td>⇥ out_trade_num</td> <td>string</td> <td>*</td> <td>true</td> <td>商户订单号</td> </tr> <tr> <td>⇥ title</td> <td>string</td> <td>*</td> <td>true</td> <td>充值产品说明</td> </tr> </tbody> </table> <pre><code class="language-html">响应示例: { &amp;quot;errno&amp;quot;: 0, &amp;quot;errmsg&amp;quot;: &amp;quot;下单成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;order_number&amp;quot;: &amp;quot;XYZ111111&amp;quot;, &amp;quot;mobile&amp;quot;: &amp;quot;18866667777&amp;quot;, &amp;quot;product_id&amp;quot;: 10001, &amp;quot;total_price&amp;quot;: &amp;quot;95.00&amp;quot;, &amp;quot;out_trade_num&amp;quot;: &amp;quot;ABC1111&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;100元话费&amp;quot;, } } </code></pre>

页面列表

ITEM_HTML