文档中心 > API类目 > 平台治理API

taobao.sungari.inspection.taskdetail.add (商品抽检api录入抽检详情单)

红盾云桥产品中商品抽检需求api化,提供工商等部门录入抽检任务

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
detail_bytes byte[] 可选 null 抽检详情单文件
file_suffix String 可选 zip 文件尾缀,如"pdf"、"png"、"jpg"、"zip"
need_main_info Boolean 可选 false
  • 默认值:false
  • 是否需要主体信息
    notice_bytes byte[] 可选 null 抽检通知书文件
    order_id String 可选 12434545 抽检订单号
    remark String 必须 测试 备注
    task_id String 必须 123 抽检任务ID

    响应参数

    名称 类型 示例值 描述
    result Result result
    • └ code
    • Number
    • 1
    • 1:成功;2:失败;11:重复提交;-1:系统错误;-2:参数错误;-3:无权限
    • data_list
    • CaseResultDO []
    • data
    • inspection_sub_info
    • InspectionSubInfo
    • inspectionSubInfo
    • └ name
    • String
    • name
    • └ idcard_no
    • String
    • idcardNo
    • └ phone
    • String
    • phone
    • └ address
    • String
    • address
    • └ reference_address
    • String
    • referenceAddress
    • └ order_id
    • String
    • orderId
    • └ item_name
    • String
    • itemName
    • └ seller_nick
    • String
    • sellerNick
    • └ platform_type
    • String
    • platformType
    • └ buyer_nick
    • String
    • buyerNick
    • └ item_id
    • String
    • itemId
    • └ message
    • String
    • OK
    • message

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    SungariInspectionTaskdetailAddRequest req = new SungariInspectionTaskdetailAddRequest();
    req.setDetailBytes(new FileItem("/tmp/file.txt"));
    req.setFileSuffix("zip");
    req.setNeedMainInfo(false);
    req.setNoticeBytes(new FileItem("/tmp/file.txt"));
    req.setOrderId("12434545");
    req.setRemark("测试");
    req.setTaskId("123");
    SungariInspectionTaskdetailAddResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <sungari_inspection_taskdetail_add_response>
        <result>
            <code>1</code>
            <data_list>
                <case_result_d_o>
                    <inspection_sub_info>
                        <name></name>
                        <idcard_no></idcard_no>
                        <phone></phone>
                        <address></address>
                        <reference_address></reference_address>
                    </inspection_sub_info>
                    <order_id></order_id>
                    <item_name></item_name>
                    <seller_nick></seller_nick>
                    <platform_type></platform_type>
                    <buyer_nick></buyer_nick>
                    <item_id></item_id>
                </case_result_d_o>
            </data_list>
            <message>OK</message>
        </result>
    </sungari_inspection_taskdetail_add_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

    返回
    顶部