Skip to content

查询商户详情

获取指定商户的详细信息。

请求

GET /open-api/v1/merchants/{merchantId}

路径参数

参数类型必填说明
merchantIdlong商户 ID

请求示例

bash
curl -X GET 'https://openapi.example.com/open-api/v1/merchants/1001' \
  -H 'X-App-Key: ak_1234567890abcdef' \
  -H 'X-Timestamp: 1709280000' \
  -H 'X-Nonce: a1b2c3d4' \
  -H 'X-Sign: calculated_signature'

响应

响应参数

字段类型说明
idlong商户 ID
merchantNamestring商户名称
merchantTypeint商户类型
contactNamestring联系人
contactPhonestring联系电话
provincestring省份
citystring城市
districtstring区县
addressstring详细地址
businessHoursstring营业时间
logoUrlstring商户 Logo
descriptionstring商户简介
storeCountint门店数量

响应示例

json
{
  "code": 0,
  "msg": "success",
  "data": {
    "id": 1001,
    "merchantName": "示例美容店",
    "merchantType": 1,
    "contactName": "张三",
    "contactPhone": "138****1234",
    "province": "北京市",
    "city": "北京市",
    "district": "朝阳区",
    "address": "xxx路xx号",
    "businessHours": "09:00-21:00",
    "logoUrl": "https://cdn.example.com/logo/1001.png",
    "description": "专业美容护肤连锁品牌",
    "storeCount": 3
  }
}

错误码

错误码说明
100008无该商户数据权限(未授权)
200001商户不存在
200002商户已下线

商数通开放平台