文档中心 > API类目 > MMC物流域项目

alibaba.mmc.logistics.addhumanattendance (MMC物流域劳动力项目-新增人员考勤信息)

MMC物流域劳动力项目-新增人员考勤信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
human_attendance_record_request HumanAttendanceRecordRequest 可选 入参
  • └ merchant_code
  • String
  • 可选
  • xx
  • 商家编码
  • └ emp_type
  • String
  • 可选
  • xx
  • 员工类型
  • └ node_code
  • String
  • 可选
  • xx
  • 仓编码
  • └ check_in_time
  • Date
  • 可选
  • 2022-01-01 00:00:00
  • 打开时间
  • └ user_name
  • String
  • 可选
  • xx
  • 员工名称
  • └ ext_info
  • String
  • 可选
  • xxx
  • 属性字段
  • └ source_code
  • String
  • 可选
  • xx
  • 调用来源
  • └ out_trace_id
  • String
  • 可选
  • xx
  • 外部TraceId
  • └ work_number
  • String
  • 可选
  • xx
  • 服务商系统工号
  • └ user_mobile
  • String
  • 可选
  • xx
  • 员工手机号
  • └ check_in_type
  • Number
  • 可选
  • 12
  • 打卡类型
  • └ day
  • Date
  • 可选
  • 2022-01-01 00:00:00
  • 打卡归属日期

响应参数

名称 类型 示例值 描述
result ResultDTO 出参
  • └ success
  • Boolean
  • xxx
  • 是否成功
  • └ error_message
  • String
  • xxx
  • 错误信息
  • └ error_code
  • String
  • xxx
  • 错误码
  • └ content
  • Number
  • 123
  • 插入记录数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcLogisticsAddhumanattendanceRequest req = new AlibabaMmcLogisticsAddhumanattendanceRequest();
AlibabaMmcLogisticsAddhumanattendanceRequest.HumanAttendanceRecordRequest obj1 = new AlibabaMmcLogisticsAddhumanattendanceRequest.HumanAttendanceRecordRequest();
obj1.setMerchantCode("xx");
obj1.setEmpType("xx");
obj1.setNodeCode("xx");
obj1.setCheckInTime(StringUtils.parseDateTime("2022-01-01 00:00:00"));
obj1.setUserName("xx");
obj1.setExtInfo("xxx");
obj1.setSourceCode("xx");
obj1.setOutTraceId("xx");
obj1.setWorkNumber("xx");
obj1.setUserMobile("xx");
obj1.setCheckInType(12L);
obj1.setDay(StringUtils.parseDateTime("2022-01-01 00:00:00"));
req.setHumanAttendanceRecordRequest(obj1);
AlibabaMmcLogisticsAddhumanattendanceResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mmc_logistics_addhumanattendance_response>
    <result>
        <success>xxx</success>
        <error_message>xxx</error_message>
        <error_code>xxx</error_code>
        <content>123</content>
    </result>
</alibaba_mmc_logistics_addhumanattendance_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部