网关URL:https://router.wikeyun.cn/rest/Oil/addCard参数名,下面我们就来聊聊关于加油充值卡怎么充值的?接下来我们就一起去了解一下吧!

加油充值卡怎么充值的(关于加油卡充值卡接口)

加油充值卡怎么充值的

三、油卡充值接口1、添加充值卡

网关URL:https://router.wikeyun.cn/rest/Oil/addCard

参数名

类型

必填

参数说明

store_id

字符串

店铺ID

card_num

字符串

充值卡号

name

字符串

姓名

phone

字符串

手机号

user_num

字符串

身份证

card_type

整数

0中石化 1中石油

2、编辑充值卡

网关URL:https://router.wikeyun.cn/rest/Oil/editCard

参数名

类型

必填

参数说明

card_id

字符串

卡ID

card_num

字符串

充值卡号

name

字符串

姓名

phone

字符串

手机号

user_num

字符串

身份证

card_type

整数

0中石化 1中石油

3、油卡详情/删除

删除URL:https://router.wikeyun.cn/rest/Oil/delCard

详情URL:https://router.wikeyun.cn/rest/Oil/cardInfo

参数名

类型

必填

参数说明

card_id

字符串

卡ID

2、充值下单请求(post 表单提交)

网关URL:https://router.wikeyun.cn/rest/Oil/pushOrder

参数名

类型

必填

参数说明

store_id

字符串

店铺ID

cardId

整数

充值卡ID,来自创建接口

order_no

字符串

充值订单号

amount

整数

充值金额(500)

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

,