文档中心 > API类目 > 奇门仓储API

qimen.taobao.wms.returnapply.report (退货异常包裹单通知接口)

退货异常包裹单回传到ERP

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouseCode String 可选 A123 仓库代码
createDate String 可选 2017-11-11 10:00:00 创建日期
uniqueKey String 可选 201710101010 wms单号
createEmp String 可选 张三 创建人
shippingCode String 可选 ZT 物流公司
shippingSn String 可选 201710101010 物流单号
receiveAddress String 可选 浙江省 杭州市 余杭区 文一西路969号 收货地址
receiverMobile String 可选 13000000000 收货人电话
orderCode String 可选 201710101010 订单编号
remark String 可选 备注信息 备注
products Products [] 可选
  • 最大列表长度:999
  • 退货明细
    • └ quantity
    • String
    • 可选
    • 1000
    • 数量
    • └ skuCode
    • String
    • 可选
    • A123
    • 商品sku编码
    customerId String 必须 customerId customerId
    snList SnList [] 可选
  • 最大列表长度:999
  • sn编码列表
    • └ sn
    • String
    • 可选
    • A123
    • sn编码

    响应参数

    名称 类型 示例值 描述
    flag String success|failure 响应结果
    code String 1 响应码
    message String msg message

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
    TaobaoWmsReturnapplyReportRequest req = new TaobaoWmsReturnapplyReportRequest();
    req.setWarehouseCode("A123");
    req.setCreateDate("2017-11-11 10:00:00");
    req.setUniqueKey("201710101010");
    req.setCreateEmp("张三");
    req.setShippingCode("ZT");
    req.setShippingSn("201710101010");
    req.setReceiveAddress("浙江省 杭州市 余杭区 文一西路969号");
    req.setReceiverMobile("13000000000");
    req.setOrderCode("201710101010");
    req.setRemark("备注信息");
    List<TaobaoWmsReturnapplyReportRequest.Products> list2 = new ArrayList<TaobaoWmsReturnapplyReportRequest.Products>();
    TaobaoWmsReturnapplyReportRequest.Products obj3 = new TaobaoWmsReturnapplyReportRequest.Products();
    list2.add(obj3);
    obj3.setQuantity("1000");
    obj3.setSkuCode("A123");
    req.setProducts(list2);
    req.setCustomerId("customerId");
    List<TaobaoWmsReturnapplyReportRequest.SnList> list5 = new ArrayList<TaobaoWmsReturnapplyReportRequest.SnList>();
    TaobaoWmsReturnapplyReportRequest.SnList obj6 = new TaobaoWmsReturnapplyReportRequest.SnList();
    list5.add(obj6);
    obj6.setSn("A123");
    req.setSnList(list5);
    TaobaoWmsReturnapplyReportResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <flag>success|failure</flag>
    <code>1</code>
    <message>msg</message>
    

    异常示例

    • 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>

    错误码解释

    错误码 错误描述 解决方案
    1
    isp.http-read-timeout
    isp.http-connection-timeout

    API工具

    如何获得此API

    FAQ

    返回
    顶部