跳到主要内容

POST高危 新建调薪申请

参数位置:body:employeeId、adjustType、currentSalary、newSalary、reason、effectiveDate、startMonth、approvers、recipients、ccList、submit。 必填:employeeId(员工ID,字符串);可选:adjustType(调薪类型:promotion晋升调薪/annual年度调薪/probation试用期转正/special特殊调薪/downgrade降级调薪)、currentSalary/newSalary(薪资结构对象,字段 baseSalary 基本工资、positionAllowance 岗位津贴、performanceBonus 绩效奖金、commissionRate 提成比例、yearEndBonusBase 年终奖基数、overtimePay 加班费、mealAllowance 餐补、transportAllowance 交通补贴、communicationAllowance 通讯补贴、otherIncome 其他收入)、reason(调薪原因)、effectiveDate(生效日期 yyyy-MM-dd)、startMonth(起调月份 yyyy-MM)、approvers(审批人用户ID数组)、recipients(通知收件人数组)、ccList(抄送人用户ID数组)、submit(true=立即提交审批,false/不传=保存草稿)。submit=true 时 reason、effectiveDate、startMonth、approvers 必填,并以当前用户发起调薪审批流程。调用前请与用户确认。

接口编码所需范围后端接口
office.salary-adjustment.createoffice:writePOST /v1/salary-adjustments/create(comap-office)

⚠️ 高危接口:删除或状态变更类操作,MCP 调用须先向用户复述并获同意后携 confirm: true。

必填字段

字段依据
employeeId参数说明
approvers参数说明

条件必填(如「某状态时必填」)不在此表,以上方参数说明为准。 判定规则见必填字段的判定。

请求体字段(body)

字段类型必填说明
employeeIdstring——
adjustTypestring——
currentSalary10SalaryAdjustmentSalaryVO——
newSalary10SalaryAdjustmentSalaryVO——
reasonstring——
effectiveDatestring——
startMonthstring——
approversstring[]——
recipientsstring[]——
ccListstring[]——
submitboolean——

「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。

请求示例

curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "office.salary-adjustment.create",
"body": {}
}'

错误处理​

响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:

错误码说明可重试
92101访问凭证无效否
92201接口未登记或已停用否
92202超出凭证授权范围——本接口需 office:write否
92204绑定员工无此接口的功能权限否
92203上游服务调用失败先查询处理结果,禁止盲目重试
92301请求过于频繁是
92205写操作处理超时,结果未知(下游可能仍在执行)否,先查询确认结果
92302有参数相同的写请求正在处理中等待并确认前一次结果,勿重复提交

除此之外,comap-office 自身的业务校验失败会原样透传其业务码与提示 (如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内, 以响应里的 message 为准。完整的平台层错误码见错误码说明。

← 返回salary-adjustment