企业列表¶
功能说明¶
- 查询本次对接的企业列表信息
接口地址¶
- 测试环境: https://openapi.guanaitong.tech/tenant/enterprise/list
- 生产环境: https://openapi.guanaitong.com/tenant/enterprise/list
参数说明¶
-
公有参数
发送请求是必须传入公共参数,详见公共参数
-
私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| page_no | 否 | int | [1,99999999] | 默认1 |
| page_size | 否 | int | [1,1000] | 默认100 |
请求示例¶
POST /tenant/enterprise/list HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
access_token=1ba50b8f418a3ceeba989d7b789de149
timestamp=1492671463&sign=ada2316deb82816d61a7a40dfba3553a34a2e82e
返回参数说明¶
| 参数说明 | 描述 |
|---|---|
| code | 返回码,0代表正确返回 |
| msg | 如果错误,返回错误信息。 |
| data | 所有企业信息 |
正确返回示例¶
{
"code": 0,
"msg": "OK",
"data": {
"total_count": 6,
"data_list": [
{
"enterprise_id": 2410,
"enterprise_name": "企业简称123123"
},
{
"enterprise_id": 2409,
"enterprise_name": "自有9"
},
{
"enterprise_id": 2380,
"enterprise_name": "企业客户测试AA0002"
},
{
"enterprise_id": 2370,
"enterprise_name": "关企客AA0001"
},
{
"enterprise_id": 2358,
"enterprise_name": "关企客0003"
},
{
"enterprise_id": 2326,
"enterprise_name": "测试企业客户BC"
}
],
"has_next": false
}
}