文档中心 > API类目 > 天猫服务平台

alibaba.ssc.supplyplatform.workermobile.authentication (工人手机号认证)

手机号认证

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id String 必须 20230418421739 用户ID
user_type String 可选 worker
  • 默认值:worker
  • 支持worker service_store tp
    profile_picture_filename String 必须 1.jpg 支持jpg,png,jpeg.文件名(含扩展名,123.jpg)
    file_data byte[] 必须 [] 文件二进制字节流,最大不超过2M
    phone String 必须 18777777777 电话
    no_type Number 可选 1
  • 默认值:1
  • 1:手机号
    attributes String 可选 {} json格式字符串

    响应参数

    名称 类型 示例值 描述
    create_phone_no_report_response Result 请求结果
    • └ success
    • Boolean
    • true
    • true
    • value
    • CreatePhoneNoReportResponse []
    • 阿里云提交请求
    • └ request_id
    • String
    • 234
    • 阿里云请求ID
    • └ fail_type
    • Number
    • 1
    • 失败类型1:提交成功,-1,审核中,-2:审核拒绝
    • └ message
    • String
    • 53232
    • 错误信息
    • └ biz_code
    • String
    • home_decoration_install
    • 业务编码
    • └ white_group_id
    • String
    • 13
    • 白名单组ID
    • └ error_code
    • String
    • 200
    • ok
    • └ error_msg
    • String
    • 错误信息
    • error
    • └ display_msg
    • String
    • 错误信息
    • 出错了

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaSscSupplyplatformWorkermobileAuthenticationRequest req = new AlibabaSscSupplyplatformWorkermobileAuthenticationRequest();
    req.setUserId("20230418421739");
    req.setUserType("worker");
    req.setProfilePictureFilename("1.jpg");
    req.setFileData(new FileItem("/tmp/file.txt"));
    req.setPhone("18777777777");
    req.setNoType(1L);
    req.setAttributes("{}");
    AlibabaSscSupplyplatformWorkermobileAuthenticationResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_ssc_supplyplatform_workermobile_authentication_response>
        <create_phone_no_report_response>
            <success>true</success>
            <value>
                <create_phone_no_report_response>
                    <request_id>234</request_id>
                    <fail_type>1</fail_type>
                    <message>53232</message>
                    <biz_code>home_decoration_install</biz_code>
                    <white_group_id>13</white_group_id>
                </create_phone_no_report_response>
            </value>
            <error_code>200</error_code>
            <error_msg>错误信息</error_msg>
            <display_msg>错误信息</display_msg>
        </create_phone_no_report_response>
    </alibaba_ssc_supplyplatform_workermobile_authentication_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

    返回
    顶部