销出差审批发起接口

接口说明: 销出差审批发起接口,必须在审批里开启销出差审批。(与审批模块的出差申请审批发起接口配合使用)

请求方式:POST(HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/workflow/apply/travel/cancel/v2

请求Header:

key value
access_token 获取的access_token的实际值

Query参数:

key value
sign 签名值

Body参数:

参数 类型 必传(Y/N) 说明
employeeId String Y 发起人员工id
srcApproveId String Y 原出差审批sid
startDate String Y 销出差开始日期,日期格式:yyyy-MM-dd HH:mm:ss
startTime Integer N 按天时必传,出差开始时间 0:表示上半天 1:表示下半天
endDate String Y 销出差结束日期,日期格式:yyyy-MM-dd HH:mm:ss
endTime Integer N 按天时必传,出差结束时间 0:表示上半天 1:表示下半天
timeUnit Integer Y 时间单位,0-按天,1-按小时
timestamp Long Y 请求时间戳(精确到毫秒)

返回结果:

参数 类型 必传(Y/N) 说明
errcode Integer Y 0成功,其他失败
errmsg String Y 结果描述
data String Y 处理成功时返回

请求示例(HTTPS):

https://api.xinrenxinshi.com/v5/workflow/apply/travel/cancel/v2?sign=MvEIky%2Fjxk0x4Sot%2BNEjFXztnV8%3D

请求Body示例:

{
  "employeeId":"a42c11aed7b645a2be77cd0a54cc33da",
  "startDate":"2023-03-03 09:00:00",
  "startTime":0,
  "endDate":"2023-03-03 18:00:00",
  "endTime":1,
  "timeUnit": 0,
  "timestamp":1652682937751,
  "srcApproveId": "912809424631103488"
}

SDK请求示例(java):

FlowCancelTravelV2Request request =new FlowCancelTravelV2Request(access_token());
request.setEmployeeId("a42c11aed7b645a2be77cd0a54cc33da");
request.setStartDate("2023-03-03 09:00:00);
request.setStartTime(0);
request.setEndDate("2023-03-03 18:00:00");
request.setEndTime(1);
request.setSrcApproveId("912809424631103488");
request.setTimeUnit(0);
OpenapiResponse<ApprovalApplyResponse> approvalApplyResponseOpenapiResponse = XrxsApprovalService.cancelTravelApplyV2(request);

响应示例:

{
  "errcode": 0,
  "errmsg": "成功",
  "data": {
    "sid":913087154631213056
   }
}
2024 © 企家有道网络技术(北京)有限公司版权所有@京ICP备15035315号 all right reserved,powered by Gitbookupdate by: 2024-01-15 15:26:15

results matching ""

    No results matching ""