• 中石化/中石油 油卡充值接口API文档分享


    • 油卡充值接口

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

    • 电费充值接口

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

  • 相关阅读:
    锐捷网络NBR700G 信息泄露漏洞复现 [附POC]
    RocketMq消息持久化(一)——存储架构设计概述
    喜获殊荣!迅镭激光获评“2023年苏州市质量奖”!
    Idea下载及配置
    采购实用技巧,5个瓶颈物料的采购方法
    7、如何使用Flink中的窗口(Window算子)
    记一次奇怪的SpringBoot多项目Mapper无法自动载入的错误
    JUC并发编程面试题(自用)
    Python自动化测试selenium指定截图文件名方法
    SolidWorks 入门笔记03:生成工程图和一键标注
  • 原文地址:https://blog.csdn.net/weixin_47458273/article/details/131090265