| 错误码 | 说明 |
|---|---|
| 20210 | 客户external_user_id错误 |
| 20211 | 客户unionid错误 |
| 20212 | 请提供客户external_user_id或客户external_user_unionid |
| 20213 | 员工与客户无关联 |
| 20214 | external_user_fields格式有误 |
| 20215 | 自定义字段不存在 |
| 20216 | 该值内容长度超过500, 请重新修改 |
| 20217 | 下拉框的选项值不存在 |
| 21801 | 最多允许批量修改10个自定义字段 |
| 21802 | 参数option_id,field_value,field_datetime不能同时为空 |
| 21803 | 存在无效的员工或外部联系人 |
| 21804 | 存在无效的field_id |
| 21805 | 存在无效的option_id |
| 21806 | 存在外部联系人和员工没有好友关系 |
| 21807 | 存在字段类型和传入的参数不正确 |
| 21808 | 时间格式不正确 |
| 21809 | 缺少参数 |
| 21810 | 自定义信息更新失败,请重试 |
| 21811 | field_id为${field_id}的自定义字段不存在 |
{
"staff_id":"zhangsan",
"external_user_id": "wo8xjUCAAAGfqRyM0CGqryOsaKOYgEZE",
"external_user_unionid": "oz9xvw_jfkmHMGWVSn5CatKSTOMU",
"phone_number":"17718167093",
"age":"18",
"email":"123@qq.com",
"birthday":"2000-01-01",
"weibo":"harchy",
"qq":"12345",
"address":"上海浦东区陆家嘴xx大厦11层",
"description":"活动添加客户,意向很高",
"state":"测试渠道",
"external_user_fields":[{
"field_name":"测试时间2",
"field_type": "datetime",
"field_datetime": "2021-09-08 20:12:27"
},
{
"field_name":"样例文本7",
"field_type": "option_text",
"option_name": "选项文本1"
},
{
"field_name": "测试文本3",
"field_type": "text",
"value": "180cm"
},
{
"field_name": "测试数值4",
"field_type": "number",
"value": 180.22
}
]
}
curl --location --globoff 'https://open.weibanzhushou.com/open-api/external_user/import_info?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"staff_id":"zhangsan",
"external_user_id": "wo8xjUCAAAGfqRyM0CGqryOsaKOYgEZE",
"external_user_unionid": "oz9xvw_jfkmHMGWVSn5CatKSTOMU",
"phone_number":"17718167093",
"age":"18",
"email":"123@qq.com",
"birthday":"2000-01-01",
"weibo":"harchy",
"qq":"12345",
"address":"上海浦东区陆家嘴xx大厦11层",
"description":"活动添加客户,意向很高",
"state":"测试渠道",
"external_user_fields":[{
"field_name":"测试时间2",
"field_type": "datetime",
"field_datetime": "2021-09-08 20:12:27"
},
{
"field_name":"样例文本7",
"field_type": "option_text",
"option_name": "选项文本1"
},
{
"field_name": "测试文本3",
"field_type": "text",
"value": "180cm"
},
{
"field_name": "测试数值4",
"field_type": "number",
"value": 180.22
}
]
}'{
"errcode": 0,
"errmsg": "ok"
}