- 开放平台须知
- 开放平台接口
- 巡检
- 主数据
- 获取授权信息
- 运营组织
- 门店信息
- 门店员工
- 公司员工
- 加盟商
- 岗位
- 查询所有员工POST
- 训练
- 费用单
- 表单
新增门店员工
POST
/{{route}}/md/open/storeEmployee/add
开放平台
最后修改时间:2025-05-06 07:11:37
请求参数
Query 参数
version
string
必需
示例值:
1
Header 参数
Authorization
string
必需
示例值:
{{Authorization}}
Content-Type
string
必需
示例值:
application/json
ent
string
可选
默认值:
{{ent}}
Body 参数application/json
employeeName
string
必需
employeeCode
string
必需
dingUserId
string
钉钉用户Id
phone
string
必需
relationships
array [object {5}]
可选
organizeId
number
必需
storeCode
string
必需
roleId
number
必需
roleCode
string
必需
isDefault
integer
必需
entryDate
string
可选
deptName
string
部门|限定长度10
sex
string
性别
certCode
string
可选
birthday
string
可选
folk
string
民族|限定长度6
registerdPlace
string
可选
currentlyPlace
string
可选
tagNames
array[string]
员工标签名称
示例
{
"employeeName": "默认",
"employeeCode": "{{$randomCreditCardMask}}",
"phone": "13178654631",
"sex": "男",
"birthday": "2003-12-27",
"certCode": "",
"deptName": "",
"currentlyPlace": "",
"registerdPlace": "",
"folk": "",
"dingUserId": "UIYEQUI7129837812",
"entryDate": "1989-05-24",
"relationships": [
{
"organizeId": null,
"storeCode": "902120",
"roleId": null,
"roleCode": "5",
"isDefault": 1
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/{{route}}/md/open/storeEmployee/add?version=1&version=' \
--header 'Authorization: {{Authorization}}' \
--header 'ent: {{ent}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeName": "默认",
"employeeCode": "{{$randomCreditCardMask}}",
"phone": "13178654631",
"sex": "男",
"birthday": "2003-12-27",
"certCode": "",
"deptName": "",
"currentlyPlace": "",
"registerdPlace": "",
"folk": "",
"dingUserId": "UIYEQUI7129837812",
"entryDate": "1989-05-24",
"relationships": [
{
"organizeId": null,
"storeCode": "902120",
"roleId": null,
"roleCode": "5",
"isDefault": 1
}
]
}'
返回响应
🟢200新增门店员工
application/json
Body
data
object
必需
employeeId
integer
必需
status
integer
必需
示例
{
"data": {
"employeeId": 297821204906049
},
"status": 0
}