API接口示例
话费购买
请求示例:
Account=13712345678&Account1=&AccountPassword=&AccountType=&BuyNum=1&ChargeWay=&CustomerID=10099&CustomerIp=&CustomerSalePrice=30.8&Game=&Method=Product.ApiBuy&OrderNo=210322134934111000009667&Para1=&Para2=&Para3=&Para4=&Para5=&Para6=&ProductID=10789&ReturnUrl=&Server=&ServerValue=&Zone=&ZoneValue=&Sign=9CBD6E2F0B6CC9CC3439A7041D596E04
加密原文示例:
Account=13712345678&Account1=&AccountPassword=&AccountType=&BuyNum=1&ChargeWay=&CustomerID=10099&CustomerIp=&CustomerSalePrice=30.8&Game=&Method=Product.ApiBuy&OrderNo=210322134934111000009664&Para1=&Para2=&Para3=&Para4=&Para5=&Para6=&ProductID=10789&ReturnUrl=&Server=&ServerValue=&Zone=&ZoneValue=&key=6f70386d762b354d2e452c679dc27f4a
响应示例:
下单失败
{"Status":{"Code":"fail","Msg":"请求非法,签名错误"}}
下单成功
{"Status":{"Code":"success","Msg":"订单已提交,正在处理中"},"Data":[{"iOrderStatus":"3","OrderID":"450e0430-65f0-4a81-9ec3-e7e26f572376","SaleOrderNo":"210413160135871000007620","SaleDate":"2021-04-13 16:01:37"}]}
订单查询
请求示例:
CustomerID=10099&Method=SaleOrder.OrderInfo&OrderNo=210322134934111000009666&Sign=9CBD6E2F0B6CC9CC3439A7041D596E04
加密原文示例:
CustomerID=10099&Method=SaleOrder.OrderInfo&OrderNo=210322134934111000009666&key=6f70386d762b354d2e452c679dc27f4a
响应示例:
查询失败
{"Status":{"Code":"fail","Msg":"无该订单信息"}}
查询成功
{"Status":{"Code":"success","Msg":null},"Data":[{"OrderNo":"210322134934111000009666","ProductID":"10789","SaleDate":"2021-04-13 16:01:38","SaleNum":"1","Status":"1","ProcessNote":"充值成功[运营商凭证:2021041322450410134]"}]}
回调通知
请求示例:
OrderNo=MjEwMzIyMTM0OTM0MTExMDAwMDA5NjY3&OrderStatus=MQ==&OrderMessage=tqm1pc3qs8mjrLPk1rXS0bW91cs=&sign=a9f64e16400edf35fc98108c3fb3b51b
加密原文示例:
OrderMessage=订单完成,充值已到账&OrderNo=210322134934111000009667&OrderStatus=1&key=6f70386d762b354d2e452c679dc27f4a
客户余额查询
请求示例:
CustomerID=10099&Method=Customer.CustomerInfo&Sign=9CBD6E2F0B6CC9CC3439A7041D596E04
加密原文示例:
CustomerID=10099&Method=Customer.CustomerInfo&key=6f70386d762b354d2e452c679dc27f4a
响应示例:
查询失败
{"Status":{"Code":"fail","Msg":"客户编号不存在"}}
查询成功
{"Status":{"Code":"success","Msg":null},"Data":[{"PID":"10099","Balance":"50160674.923","CompanyName":"某某网络有限公司1"}]}