文档中心 商家授权 获取授权企业下的员工(分页)

获取授权企业下的员工(分页)

1.使用场景

如果已授权该商家获取企业信息,商家可以通过接口,查询某企业下的所有在职员工信息(分页)。

2.接口调用说明

请求URL

https://openapi.guanaitong.tech/seller/employee/simpleList

正式环境和测试环境的域名请见通用协议

HTTPS请求方式

GET,POST

输入参数说明

(1)公共参数

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

(2)私有参数

参数名称 是否必须 参数类型 长度限制 描述
enterprise_open_id string [32] 企业
请求示例
https://openapi.guanaitong.tech/seller/employee/simpleList?
access_token=e9bdc1bfad12cb35f09b9887f2170b75
&enterprise_open_id=suw7l4e82D7dqeu3r3j2rj3
&sign=2663a787e4197aa199ecb27406b8cd8319b6fea5&
timestamp=1491466190
返回参数说明
参数名称 描述
dept_code 部门编码
name 组织名称
parent_code 父级部门
正确返回示例
{
"code":0,
"data":{
"total_count":10,
"has_next":true,
"data_list":[
    {
    "corp_code":"A001",
    "name":"张三",
    "dept_code":"D001",
    "dept_name":"销售部",
    "mobile_area":86,
    "mobile":"13011111111"
    },
    {
    "corp_code":"A002",
    "name":"李四",
    "dept_code":"D001",
    "dept_name":"销售部",
    "mobile_area":86,
    "mobile":"13022222222"
    }
]
},
"msg":"OK"
}
错误返回示例
{
    "code":1000210017,
    "data":null,
    "msg":"redirect url not found!"
}