文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
修改指定商户密钥
更新时间:2018-04-12 16:09:16   更新人员:叶洋   文档状态:完成 #75    测试接口
摘要
修改指定商户密钥
  1. 接口基本信息
    接口名称:重置商户密钥
    请求方法:PATCH
    接口地址:merch/:merch_id/resetmkey
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    merch_id 商户id string
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    merch_id 商户id string
    code 商户代码 string
    locked 锁定状态 string 商户是否已被锁定。1为已锁定,0为未锁定。
    type 商户类型 int 1:开发模式,2:内部连接,3:开放连接
    status 启用状态 int 状态,1为启用,0为禁用
    regist_time 注册时间 string
    expiry_time 有效期至 string
    create_time 创建时间 string
    update_time 更新时间 string
    country_id 所在国 int
    province_id 所在省 int
    city_id 所在城市 int
    district_id 所在地区 int
    street_id 所在街道 int
    address 详细地址 string
    lng 经度 float
    lat 纬度 float
    merch_key 商户密钥 string
    ip_whitelist IP白名单 string
    name 商户名 string
    initials 首字母 string
    english_name 英文名 string
    contacts 联系人 string
    mobile 手机号 string
    email 邮箱 string
    tel 座机 string
    description 描述 string
    remark 备注 string
    status_text 状态描述 string
    type_text 类型描述 string
    locked_text 锁定描述 string
  4. 请求示例
    请求例子:
     
    apirq('merch/:merch_id/resetmkey', {
        method: "patch",
        data: {
            "merch_id": "605dbe7cd0dfcd66"
        },
        urlparams: [
            "merch_id"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "重置成功~~",
        "time": "1523520473",
        "data": {
            "merch_id": "605dbe7cd0dfcd66",
            "code": "",
            "locked": 1,
            "type": 3,
            "status": 1,
            "regist_time": "2017-12-01 00:00",
            "expiry_time": "2020-01-01 00:00",
            "create_time": "2017-12-04 11:23:02",
            "update_time": "2018-04-12 16:07:53",
            "country_id": 0,
            "province_id": 0,
            "city_id": 0,
            "district_id": 0,
            "street_id": 0,
            "lng": "0.000000",
            "lat": "0.000000",
            "merch_key": "8f5cbc742adbee4490821abef092653b",
            "ip_whitelist": "",
            "name": "内建商户标准",
            "initials": "",
            "english_name": "",
            "contacts": "内建",
            "mobile": "13800000000",
            "email": "",
            "tel": "",
            "address": "成都一环路三段9号",
            "description": "",
            "remark": "系统内建其权限默认分享"
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员