全国电费充值优惠接口源码
- 電費充值接口
1、添加充值卡
網關URL:https://router.wikeyun.cn/rest/Power/addCard
| 參數名 | 類型 | 必填 | 參數說明 |
| store_id | 字符串 | 是 | 店鋪ID |
| card_num | 字符串 | 是 | 充值賬號 |
| province | 字符串 | 是 | 省份,帶省字,比如江蘇省 |
| city | 字符串 | 是 | 城市,帶市字,比如南京市 |
| remark | ?????????????字符串 | 否 | 備注 |
| type | 整數 | 否 | 0國家電網?1南方電信 |
2、編輯充值卡
網關URL:https://router.wikeyun.cn/rest/Power/editCard
| 參數名 | 類型 | 必填 | 參數說明 |
| card_id | 字符串 | 是 | 卡ID |
| card_num | 字符串 | 是 | 充值賬號 |
| province | 字符串 | 是 | 省份,帶省字,比如江蘇省 |
| city | 字符串 | 是 | 城市,帶市字,比如南京市 |
| remark | ?????????????字符串 | 否 | 備注 |
| type | 整數 | 否 | 0國家電網?1南方電信 |
3、電費詳情/刪除
刪除URL:https://router.wikeyun.cn/rest/Power/delCard
詳情URL:https://router.wikeyun.cn/rest/Power/cardInfo
| 參數名 | 類型 | 必填 | 參數說明 |
| card_id | 字符串 | 是 | 卡ID |
2、充值下單請求(post 表單提交)
網關URL:https://router.wikeyun.cn/rest/Power/pushOrder
| 參數名 | 類型 | 必填 | 參數說明 |
| store_id | 字符串 | 是 | 店鋪ID |
| cardId | 整數 | 是 | 充值卡ID,來自創建接口 |
| order_no ?? | 字符串 | 是 | 充值訂單號 |
| amount | 整數 | 是 | 充值金額(100的倍數) |
| recharge_type | 整型 | 是 | 1快充?0慢充,目前請傳0 |
| notify_url | 字符串 | 是 | 異步回調地址(POST) |
失敗返回數據格式:
{"code":"1003","msg":"app_key不能為空","time":"1624868000","data":null}
成功返回數據格式:
{"code":"0000","msg":"推送成功","data":{"order_number":"xxxx"}}
???
3、回調通知
| 參數名 | 類型 | 參數說明 |
| order_no | 字符串 | 充值訂單號 |
| order_number | 字符串 | 官方訂單號 |
| status | 字符串 | 交易結果(0 待支付 1 已付 充值中 2充值成功 3充值失敗 需要退款 4退款成功 6待充值 7 已匹配) |
收到回調后,商戶必須同步返回字符串 success,否則平臺認為商戶沒有收到回調,會重復發送5
次回調。
4、查詢接口(post 表單提交)
網關URL:https://router.wikeyun.cn/rest/Power/query
| 參數名 | 類型 | 必填 | 參數說明 |
| order_number | 字符串 | 是 | 官方訂單號 |
失敗返回數據格式:
{"code":"1003","msg":"app_key不能為空","time":"1624868000","data":null}
成功返回數據格式:
{"code":"0000","msg":"獲取成功","data":{"order_number":"xxxx","status":"1","mobile":"13786517891","amount":"100","order_no":"xxxx"}}
總結
以上是生活随笔為你收集整理的全国电费充值优惠接口源码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: w10投影全屏设置_win10投影怎么全
- 下一篇: 国外给国内发短信