- OpenAPI基本介绍
- 错误码参考表
- 访问频率和并发限制
- 消息订阅
- 获取访问凭据
- 员工管理
- 自定义订单管理
- 客户管理
- 客户积分管理
- 客户标签管理
- 客户画像管理
- 标签库管理
- 群聊管理
- 工单管理
- 销售过程管理
- 聊天记录管理
- 拉新排行榜
- 群裂变
- 群打卡
- 企微任务宝
- 拉新排行榜
- 自定义表单
- 客户转化
- 员工个人群发记录管理
- 渠道码管理
- 素材库管理
- 互动雷达管理
- 自定义侧边栏身份校验
- 有赞订单管理
- 小鹅通订单管理
- 项目管理
- 门店信息
- 人群包
- 客户群发
- 企微朋友圈
- 个人SOP
- 部门管理
- 群标签管理
- 话术库
- 企微数据专区
获取客户详情
GET
/open-api/external_user/get
openapi
错误码 | 说明 |
---|---|
20206 | id 错误,找不到对应客户 |
20207 | unionid 错误,找不到对应客户 |
20208 | unionid 和 id 必须至少提供一个 |
请求参数
Query 参数
id
可选
示例值:
wm8zkSaSL7dgds4s45fw
unionid
string
可选
示例值:
oYtnV58v4QOisCZdE4qU02eK1pvU
openid
string
可选
示例值:
ohpYX63Ss6YnNTdv9YKcjpPGnBhA
access_token
string
调用接口凭证
默认值:
{{access_token}}
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.weibanzhushou.com/open-api/external_user/get?id=wm8zkSaSL7dgds4s45fw&unionid=oYtnV58v4QOisCZdE4qU02eK1pvU&openid=ohpYX63Ss6YnNTdv9YKcjpPGnBhA&access_token=' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
errcode
integer
可选
errmsg
string
可选
total
integer
session总量
external_user
object
客户列表
id
string
可选
type
integer
可选
unionid
string | null
可选
created_at
integer
可选
name
string
外部联系人昵称
avatar
string
外部联系人头像
corp_full_name
string | null
可选
corp_name
string | null
可选
gender
integer
可选
position
string | null
可选
external_profile
object | null
可选
follow_staffs
array [object {27}]
可选
custom_fields
array [object {9}]
客户自定义信息列表
corp_id
string
客户所在公司ID
created_at
integer
自定义信息创建时间
deleted
boolean
是否被删除
field_type
string
可选
field_value
string
自定义信息的值
has_staff_used
boolean
可选
id
integer
自定义信息id
name
string
自定义信息名称
rank_num
integer
自定义信息排序
示例
{
"errcode": 0,
"errmsg": "ok",
"total": 1,
"external_user": {
"id": "wm8xjUCAAAS4ozkSaSL7WIyxhV3iROJw",
"type": 1,
"unionid": "oz9xvw_jfkmHMGWVSn5CatKSTOMU",
"created_at": 1579243948,
"name": "clth",
"avatar": "http://wx.qlogo.cn/mmhead/Q3auHgzwzM6uFkY7eOZOK4bo3lMOKdYBcYrWYZ8cFuxYj6iaULHjLibQ/0",
"corp_full_name": null,
"corp_name": null,
"gender": 1,
"position": null,
"external_profile": null,
"follow_staffs": [
{
"staff_id": "zhangsan",
"staff_name": "张三",
"staff_avatar": "http://wework.qpic.cn/wwhead/duc2TvpEgSSWiaVLaJnssaYfX71u0Rya0GdmcJWhR6qBgbjkqiaSIKkicTy1wVhr9tQoTMP4rCxFLM/0",
"state": "wb:269",
"state_text": "通过渠道码 xx 添加",
"state_type": "corp_contact_way",
"remark": "微伴客户",
"remark_state": "微伴渠道",
"description": "",
"remark_corp_name": "夜莺科技",
"remark_mobiles": "[]",
"deleted_at": 1591940337,
"deleted_by": "external_user",
"deleted_each_other": false,
"age": "26",
"phone_number": "13000000000",
"qq": "487892822",
"weibo": "zhangsan",
"email": "487892822@qq.com",
"address": "武汉市",
"birthday": "2月15",
"custom_fields": [
{
"corp_id": "1654076890000000000",
"created_at": 1618383250,
"deleted": false,
"field_type": "text",
"field_value": "",
"has_staff_used": true,
"id": 307,
"name": "自定义信息3",
"rank_num": 2
},
{
"corp_id": "1654076890000000000",
"created_at": 1618560293,
"deleted": false,
"field_type": "text",
"field_value": "",
"has_staff_used": true,
"id": 331,
"name": "自定义信息2",
"rank_num": 1
},
{
"corp_id": "1654076890000000000",
"created_at": 1619091933,
"deleted": false,
"field_type": "text",
"field_value": "",
"has_staff_used": true,
"id": 332,
"name": "自定义信息1",
"rank_num": 0
}
],
"tags": [
{
"group": "城市",
"name": "武汉市"
},
{
"group": "渠道类型",
"name": "线下"
}
],
"internal_tags": [
{
"name": "已沟通"
}
]
}
]
}
}
🟢200正常返回
修改于 2025-02-28 07:48:50