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

alibaba.ascp.uop.supplier.consignorder.notify.tms.change (商家修改运单号)

供应商可以通过此接口,对出库回告上报的运单号进行修改,目前一次调用只能支持一个运单号的修改

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
modify_mail_no_request Modifymailnorequest 必须 修改运单号请求模型
  • └ supplier_id
  • String
  • 必须
  • 10000000001
  • 供应商id
  • └ old_tms_order_code
  • String
  • 必须
  • YT10000000001
  • 原运单号
  • └ new_tms_order_code
  • String
  • 必须
  • SF10000000002
  • 新运单号
  • └ old_tms_service_code
  • String
  • 必须
  • YTO
  • 原配送公司编码
  • └ biz_order_code
  • String
  • 必须
  • LP000000001
  • 发货LP

响应参数

名称 类型 示例值 描述
modify_mail_no_response ResultWrapper 返回值包装,result为返回具体消息内容
  • └ success
  • Boolean
  • true
  • 返回是否成功
  • └ error_message
  • String
  • 错误描述
  • 错误描述
  • └ error_code
  • String
  • 错误编码
  • 错误编码
  • └ retry
  • Boolean
  • true
  • 是否retry

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpUopSupplierConsignorderNotifyTmsChangeRequest req = new AlibabaAscpUopSupplierConsignorderNotifyTmsChangeRequest();
AlibabaAscpUopSupplierConsignorderNotifyTmsChangeRequest.Modifymailnorequest obj1 = new AlibabaAscpUopSupplierConsignorderNotifyTmsChangeRequest.Modifymailnorequest();
obj1.setSupplierId("10000000001");
obj1.setOldTmsOrderCode("YT10000000001");
obj1.setNewTmsOrderCode("SF10000000002");
obj1.setOldTmsServiceCode("YTO");
obj1.setBizOrderCode("LP000000001");
req.setModifyMailNoRequest(obj1);
AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_uop_supplier_consignorder_notify_tms_change_response>
    <modify_mail_no_response>
        <success>true</success>
        <error_message>错误描述</error_message>
        <error_code>错误编码</error_code>
        <retry>true</retry>
    </modify_mail_no_response>
</alibaba_ascp_uop_supplier_consignorder_notify_tms_change_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

返回
顶部