跳转至

查询商家授权企业列表

使用场景

商家查询关爱通授权过的所有企业的openid列表

接口地址

参数说明

  • 公有参数

    发送请求是必须传入公共参数,详见公共参数

  • 私有参数

请求示例

POST /seller/enterprise/list HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

access_token=b983eef183a789a693b91406f38b7e23&timestamp=1531039744&version=1.0.0

返回参数说明

参数名称 描述
code 返回码。详见错误返回码
msg 如果错误,返回错误信息。
data 如果没有错误,返回关爱通交易号
data.open_id 授权的企业id编号,即32位 enterprise_open_id
data.name 授权的企业名称

正确返回示例

{
    "code":0,
    "data":[
      {
        "open_id":"k09fghjklm1234567jh6qwertyuio83u",
        "name":"xxx科技公司"
      },
      {
        "open_id":"asdfghjklmow84567890qwertyuiop21",
        "name":"yyy金额公司"
      },
    ],
    "msg":"OK"
}

错误返回示例

{
    "code": 1000220064,
    "msg": "系统错误",
    "data": null
}
回到页面顶部