国家电网 电费充值接口文档

  • 电费充值接口

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"}}

猜你喜欢

转载自blog.csdn.net/weixin_47458273/article/details/131419411