• 中石化、中石油接口文档源码分享


    • 油卡充值接口

    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

    次回调。

  • 相关阅读:
    Tomcat context.xml配置详解
    文心一言Plugin实战来了,测试开发旅游攻略助手
    Java NIO的Buffer缓冲区和Channel通道详细总结
    03-Redis 凭什么这么快
    solidity入门
    【HomeKit】HAT User Manual教程
    CMake教程-第 12 步:打包调试和发布
    文档图片阴影去除
    SpringSecuity和Shiro区别
    Java反射机制
  • 原文地址:https://blog.csdn.net/weixin_47458273/article/details/124884388