文档
测试

注册新用户

POST
/api/v1/wechat/official_account/register_users/

请求头

参数名
类型
描述
必填
Content-Type
application/json
必填

请求参数

参数名
类型
描述
必填
openid
string
微信用户openid
必填
name
真实姓名
必填
nick_name
昵称
必填
head_img_url
头像url
必填
department
部门id
必填
department_name
部门名称
必填
mobile
手机号码
必填
enterprise_identification_code
公司识别码
必填
sms_code
短信验证码
必填

响应参数

参数名
类型
描述
必填
state
boolean
状态码
必填
message
string
描述
必填

说明 / 示例

请求示例: { "openid":"openid12345", "name":"姓名", "nick_name":"昵称", "sms_code":"123456", "head_img_url":"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fcar0.autoimg.cn%2Fupload%2F2013%2F2%2F18%2Fu_20130218165304639264.jpg&refer=http%3A%2F%2Fcar0.autoimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1622873334&t=8124065399b0c055daa2a2b32d026e56", "department":"1", "department_name":"测试部", "mobile":"123456789", "enterprise_identification_code":"adfadf" } 响应示例: { "jsonrpc": "2.0", "id": null, "result": { "state": true, "message": "申请成功,等待审核中" } }