Skip to content

操作员工完成入职

操作待入职员工完成入职,正式入职建立员工和公司/组织的雇佣关系

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/corehr/v2/pre_hires/:pre_hire_id/complete
HTTP MethodPOST
接口频率限制1000 次/分钟、50 次/秒
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用corehr:pre_hire:complete 完成入职

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token

路径参数

名称类型描述
pre_hire_idstring待入职ID,可从待入职列表接口获取
示例值:"7345005664477775407"

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--
  └ successboolean是否成功完成入职

响应体示例

json
{
    "code": 0,
    "msg": "success",
    "data": {
        "success": true
    }
}

错误码

HTTP状态码错误码描述排查建议
5001161000Server system error系统出现问题,如需帮助,请咨询技术支持
4001161001invalid job_level_idplease check job_level_id
4001161002invalid job_family_idplease check job_family_id
4001161003invalid job_idplease check job_id
4001161004invalid offer_hr_idplease check offer_hr_id
4001161005invalid direct_leader_idplease check direct_leader_id
4001161006invalid onboarding_location_idplease check onboarding_location_id
4001161007invalid office_location_idplease check office_location_id
4001161008invalid recruitment_type_idplease check recruitment_type_id
4001161009invalid employee_type_idplease check employee_type_id
4001161010invalid employment_type_idplease check employment_type_id
4001161011invalid duration_type_idplease check duration_type_id
4001161012invalid singing_type_idplease check singing_type_id
4001161013invalid social_security_city_idplease check social_security_city_id
4001161014invalid companyplease check company
4001161015invalid department_idplease check department_id
4001161016duplicate personal_id_numberplease check personal_id_number
4001161018invalid contract_typeplease check contract_type
4001167037duplicate phone numberplease check phone
4001161026Email is duplicate with an active individual in the systemplease check email
4001161027Email is duplicate with a Pre-hire in the systemplease check email
4001161028Phone is duplicate with an active individual in the systemplease check phone
4001161029Phone is duplicate with a Pre-hire in the systemplease check phone
4001161030offer_id does not exist, please try againplease check offer_id
4001161031"ID number" is duplicate with a Pre-hire in the systemplease check ID number
4001161032Please fill in a valid international area codeplease check international area code
4001161033Please fill in a valid mobile numberplease check mobile number
4001161034Incorrect work email format. Please fill in a valid email address.please check work email
4001161035Incorrect work email domain.please check work email
4001161036Work email is duplicate with an active individual in the system.please check work email
4001161037Work email is duplicate with a pre-hire in the system.please check work email
4001161038Work email is duplicate with an offboarded individual in the system.please check work email
4001161039Incorrect purpose of location. Please fill in the information again.please check the purpose of the selected location
4001161040Incorrect purpose of Onboarding address. Please fill in the information again.please check the purpose of the selected onboarding address
4001161041Incorrect purpose of Onboarding location. Please fill in the information again.please check the purpose of the selected onboarding location
4001161042Incorrect purpose of Office address. Please fill in the information again.please check the purpose of the selected office address
4001161043Incorrect purpose of Office location. Please fill in the information again.please check the purpose of the selected office location
4001161044Incorrect purpose of Work location. Please fill in the information again.please check the purpose of the selected work location
4001161045Incorrect purpose of Social security city(China only). Please fill in the information again.please check the purpose of the selected social security city(China only)
4001161046Incorrect purpose of Social Security City. Please fill in the information again.please check the purpose of the selected social security city
4001161047Incorrect purpose of Provident Fund City. Please fill in the information again.please check the purpose of the selected provident fund city
4001161048employee number is duplicated.please check employee number
4001161049employee number format is not match.please check employee number
4001161050Unable to fill in staff ID as the auto coding rule has been enabled.please check auto number rule
4001161051No hierarchical relationship exists between the entered Onboarding address and Onboarding location. Please confirm the information in "Org Management - Location" and fill in the information again.No hierarchical relationship exists between the entered Onboarding address and Onboarding location. Please confirm the information in "Org Management - Location" and fill in the information again.
4001161052No hierarchical relationship exists between the entered Office address and Office location. Please confirm the information in "Org Management - Location" and fill in the information again.No hierarchical relationship exists between the entered Office address and Office location. Please confirm the information in "Org Management - Location" and fill in the information again.
4001161053No hierarchical relationship exists between the entered Office address and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.No hierarchical relationship exists between the entered Office address and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.
4001161054No hierarchical relationship exists between the entered Office location and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.No hierarchical relationship exists between the entered Office location and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.
4001161055No hierarchical relationship exists between the entered Office address, Office location, and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.No hierarchical relationship exists between the entered Office address, Office location, and Work location. Please confirm the information in "Org Management - Location" and fill in the information again.
4001161056The department uses the job, the job is requiredThe department uses the job, the job is required
4001161057The department does not use the job, the job must be emptyThe department does not use the job, the job must be empty
4001161058personal phone, person email, national id, bank account, worker id or work email is duplicated with an existing pre-hirepersonal phone, person email, national id, bank account, worker id or work email is duplicated with an existing pre-hire
4001161059personal phone, person email, national id, bank account, worker id or work email is duplicated with an existing employmentpersonal phone, person email, national id, bank account, worker id or work email is duplicated with an existing employment
4001161063workforce has exceedworkforce has exceed
4001161064According to auto number rules, this individual cannot generate Employee ID. Please go to "Feishu People-Settings-HR Settings-Auto Number Settings" to modify the rules.According to auto number rules, this individual cannot generate Employee ID. Please go to "Feishu People-Settings-HR Settings-Auto Number Settings" to modify the rules.
4001161065Employee ID generation failed, please try again later or contact customer service.Employee ID generation failed, please try again later or contact customer service.
4001161066The company or workforce type is empty. Unable to generate staff ID according to the automatic coding rules.The company or workforce type is empty. Unable to generate staff ID according to the automatic coding rules.
4001161068The Job is invalid.The Job is invalid.
4001161069The Job family is invalid.The Job family is invalid.
4001161070The Job level is invalid.The Job level is invalid.
4001161071The job and job family doesn't match.The job and job family doesn't match.
4001161072The job and job level doesn't match.The job and job level doesn't match.
4001161073The job doesn't match job family or job level.The job doesn't match job family or job level.
4001161074The job family and level doesn't match.The job family and level doesn't match.
4001161075The 'Contract end date' calculated based on the 'Contract start date' and 'Contract term' is inconsistent with the value entered. Please check.The 'Contract end date' calculated based on the 'Contract start date' and 'Contract term' is inconsistent with the value entered. Please check.
4001161076The additionalNationalities contains main nationalityThe additionalNationalities contains main nationality
4001161077The additionalNationalities duplicateThe additionalNationalities duplicate
4001161078The citizenshipStatus duplicateThe citizenshipStatus duplicate
4001161079invalid additional_nationality_idinvalid additional_nationality_id
4001161080invalid citizenship_status_idinvalid citizenship_status_id
4001161081invalid user_geoinvalid user_geo
4001161092Abnormal information check failAbnormal information check fail
4001161097Permission denied, please contact the administratorPermission denied, please contact the administrator
4001161099Can not complete onboard,as tasks are not complete allCan not complete onboard,as tasks are not complete all
4001161100Determine whether to "rehire" before confirming onboardingDetermine whether to "rehire" before confirming onboarding
4001161101Onboarding date is required. Please enter it and try againOnboarding date is required. Please enter it and try again
4001161102employment check erroremployment check error
4001161103contract check errorcontract check error
4001161104This individual is on the blocklistThis individual is on the blocklist

内容来源:飞书开放平台 · 自动爬取整理