文档中心 > API类目 > 新零售供应链API

alibaba.ascp.channel.refund.goods.waybill (淘外分销退货回传物流单号)

淘外分销退货回传物流单号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
refund_way_bill_req ExternalRefundGoodsWaybillRequest 必须 请求
  • └ out_refund_no
  • String
  • 必须
  • qsk252525
  • 外部退款单号
  • └ refund_no
  • String
  • 必须
  • 253245252
  • 退款单号
  • └ logistics_company_name
  • String
  • 可选
  • 韵达
  • 物流公司名称
  • └ logistics_company_code
  • String
  • 可选
  • yundaex
  • 物流公司编码
  • └ logistics_waybill_no
  • String
  • 必须
  • 5252523235235
  • 物流单号

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • └ success
  • Boolean
  • true
  • 执行结果
  • └ error_message
  • String
  • service_not_found
  • 错误码
  • └ error_code
  • String
  • service_not_found
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelRefundGoodsWaybillRequest req = new AlibabaAscpChannelRefundGoodsWaybillRequest();
AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequest obj1 = new AlibabaAscpChannelRefundGoodsWaybillRequest.ExternalRefundGoodsWaybillRequest();
obj1.setOutRefundNo("qsk252525");
obj1.setRefundNo("253245252");
obj1.setLogisticsCompanyName("韵达");
obj1.setLogisticsCompanyCode("yundaex");
obj1.setLogisticsWaybillNo("5252523235235");
req.setRefundWayBillReq(obj1);
AlibabaAscpChannelRefundGoodsWaybillResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_channel_refund_goods_waybill_response>
    <result>
        <success>true</success>
        <error_message>service_not_found</error_message>
        <error_code>service_not_found</error_code>
    </result>
</alibaba_ascp_channel_refund_goods_waybill_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

返回
顶部