文档中心 > API类目 > MOZI账号API

alibaba.mozi.vds.tenant.api.service.matchempcodes (校验组-员工是否匹配)

校验组-员工是否匹配

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
par0 MatchWithEmployeeRequest 可选 入参
  • └ employee_codes
  • String []
  • 必须
  • 11,22
  • 人员code
  • └ tenant_id
  • Number
  • 必须
  • 111
  • 租户id
  • └ group_code
  • String
  • 必须
  • 2233
  • 组code

响应参数

名称 类型 示例值 描述
result MatchWithEmployeeResult {} 出参
  • └ unmatched_employee_codes
  • String []
  • ["111","222"]
  • 未匹配上的人员code
  • └ success
  • Boolean
  • true
  • success
  • └ request_id
  • String
  • 122
  • requestId
  • └ matched_employee_codes
  • String []
  • ["333","444"]
  • 匹配上的人员code
  • └ response_message
  • String
  • OK
  • responseMessage
  • └ response_code
  • String
  • 0
  • responseCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMoziVdsTenantApiServiceMatchempcodesRequest req = new AlibabaMoziVdsTenantApiServiceMatchempcodesRequest();
AlibabaMoziVdsTenantApiServiceMatchempcodesRequest.MatchWithEmployeeRequest obj1 = new AlibabaMoziVdsTenantApiServiceMatchempcodesRequest.MatchWithEmployeeRequest();
obj1.setEmployeeCodes("11,22");
obj1.setTenantId(111L);
obj1.setGroupCode("2233");
req.setPar0(obj1);
AlibabaMoziVdsTenantApiServiceMatchempcodesResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mozi_vds_tenant_api_service_matchempcodes_response>
    <result>
        <unmatched_employee_codes>
            <string>[&quot;111&quot;</string>
            <string>&quot;222&quot;]</string>
        </unmatched_employee_codes>
        <success>true</success>
        <request_id>122</request_id>
        <matched_employee_codes>
            <string>[&quot;333&quot;</string>
            <string>&quot;444&quot;]</string>
        </matched_employee_codes>
        <response_message>OK</response_message>
        <response_code>0</response_code>
    </result>
</alibaba_mozi_vds_tenant_api_service_matchempcodes_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

返回
顶部