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

alibaba.ascp.uop.supplier.consignorder.notify.received (商家仓物流发货推单接单回告)

ASCP通过该接口接收商家仓开始接单生产订单对应的物流订单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
supplier_id String 必须 供应商ID qimen.alibaba.ascp.uop.consignorder.notify报文中的supplierId字段值
biz_order_code String 必须 scp00001 qimen.alibaba.ascp.uop.consignorder.notify报文中bizOrderCode履约单号
biz_time Date 可选 2020-03-26 14:01:22 业务请求时间
business_model String 可选 1 一盘货业务模式,默认为0代表商家仓商家配,为1代表商家仓自营配 (为1时会强制校验配CP和单号必须与取号时一致,且多包裹必须一次性发货)

响应参数

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

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpUopSupplierConsignorderNotifyReceivedRequest req = new AlibabaAscpUopSupplierConsignorderNotifyReceivedRequest();
req.setSupplierId("供应商ID");
req.setBizOrderCode("scp00001");
req.setBizTime(StringUtils.parseDateTime("2020-03-26 14:01:22"));
req.setBusinessModel("1");
AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
<alibaba_ascp_uop_supplier_consignorder_notify_received_response>
    <consignorder_notify_received_response>
        <success>true</success>
        <error_code>错误码</error_code>
        <error_message>错误描述</error_message>
        <retry>true</retry>
    </consignorder_notify_received_response>
</alibaba_ascp_uop_supplier_consignorder_notify_received_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部