文档中心 > API类目 > 全渠道API

taobao.qimen.omniorder.allocatedinfo.get (根据订单ID获取分单信息(SPI))

星盘调用ISV接口,获取门店分单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tid Number 必须 1231243213213 淘宝交易主订单id
seller_id Number 必须 123213 订单卖家ID

响应参数

名称 类型 示例值 描述
tid Number 1231243213213 淘宝交易主订单id
code String 0 0:成功,返回分单信息;其他表示系统级错误,请返回错误message信息
message String internal error 错误的内容描述
store_allocated_list AllocatedInfo [] 门店分单结果,每一条子订单一条
  • └ store_id
  • String
  • 12312
  • 门店id
  • └ store_name
  • String
  • 西溪印象城店
  • 门店名称
  • └ tid
  • Number
  • 1231243213213
  • 淘宝交易主订单id
  • └ sub_oid
  • Number
  • 213213
  • 淘宝交易子订单id
  • └ status
  • String
  • Waiting
  • 订单分单状态, 可选值: Waiting(仍在派单中) Allocated(派单成功) AllocateFail(派单失败)
  • └ description
  • String
  • 门店发货
  • 描述信息,分单原因
  • └ store_type
  • String
  • Store
  • 店铺类型, 门店(Store)或者电商仓(Warehouse)

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
QimenOmniorderAllocatedinfoGetRequest req = new QimenOmniorderAllocatedinfoGetRequest();
req.setTid(1231243213213L);
req.setSellerId(123213L);
QimenOmniorderAllocatedinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tid>1231243213213</tid>
<code>0</code>
<message>internal error</message>
<store_allocated_list>
    <allocated_info>
        <store_id>12312</store_id>
        <store_name>西溪印象城店</store_name>
        <tid>1231243213213</tid>
        <sub_oid>213213</sub_oid>
        <status>Waiting</status>
        <description>门店发货</description>
        <store_type>Store</store_type>
    </allocated_info>
</store_allocated_list>

异常示例

  • 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

返回
顶部