文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
注销指定的商户
更新时间:2018-04-12 15:50:11   更新人员:叶洋   文档状态:完成 #74    测试接口
摘要
注销删除指定的商户
  1. 接口基本信息
    接口名称:删除指定商户
    请求方法:DELETE
    接口地址:merch/:merch_id
    登录验证:是
  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', {
        method: "delete",
        data: {
            "merch_id": "6c5e1518cc95ad15"
        },
        urlparams: [
            "merch_id"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "删除资源成功!",
        "time": "1523519313",
        "data": {
            "merch_id": "6c5e1518cc95ad15",
            "code": "M29778",
            "locked": 1,
            "type": 3,
            "status": 1,
            "regist_time": "1970-01-01 08:00",
            "expiry_time": "1970-01-01 08:00",
            "create_time": "2018-04-12 15:34:46",
            "update_time": "2018-04-12 15:45:16",
            "country_id": 0,
            "province_id": 0,
            "city_id": 0,
            "district_id": 0,
            "street_id": 0,
            "lng": "0.000000",
            "lat": "0.000000",
            "merch_key": "",
            "ip_whitelist": "",
            "name": "新商户修改了",
            "initials": "",
            "english_name": "",
            "contacts": "周小伦",
            "mobile": "12312345678",
            "email": "",
            "tel": "",
            "address": "权志龙",
            "description": "",
            "remark": ""
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员