您的位置 : 文档中心 -> API信息

com.alibaba.logistics:alibaba.trade.getLogisticsInfos.buyerView-1
获取交易订单的物流信息(买家视角) 免费

该接口需要获得订单买家的授权,获取买家的订单的物流详情,在采购或者分销场景中,作为买家也有获取物流详情的需求。该接口能查能根据订单号查看物流详情,包括发件人,收件人,所发货物明细等。由于物流单录入的原因,可能跟踪信息的API查询会有延迟。该API需要向开放平台申请权限才能访问。

API用户授权类型

需要授权

系统级输入参数

名称 类型 是否必须 描述
_aop_timestamp String 请求时间戳
_aop_signature String 请求签名
access_token String 用户授权令牌

应用级输入参数

名称 类型 是否必须 描述 示例值 默认值
orderId Long 订单号
fields String 需要返回的字段,目前有:company.name,sender,receiver,sendgood。返回的字段要用英文逗号分隔开 company,name,sender,receiver,sendgood
webSite String 是1688业务还是icbu业务 1688或者alibaba

返回结果

名称 类型 是否必须 描述 示例值
+ result alibaba.logistics.OpenPlatformLogisticsOrder[] 返回结果
errorCode String 错误码
errorMessage String 错误信息

返回结果

返回结果

  {
  "result": [
    {
      "logisticsId": "BX111841674232006",
      "orderEntryIds": "149989279191615400",
      "status": "SIGN",
      "logisticsCompanyId": "8",
      "remarks": "asdasdasdasdsad啊啊啊",
      "sendGoods": [
        {
          "unit": "个",
          "quantity": 2,
          "goodName": "【茂茂回归】12.9公开-sku区间价-淘货源"
        }
      ],
      "receiver": {
        "receiverCountyCode": "310105",
        "receiverCity": "上海市",
        "receiverProvinceCode": "310000",
        "receiverCityCode": "310100",
        "encrypt": "CN",
        "receiverCounty": "长宁区",
        "receiverMobile": "13800138000",
        "receiverProvince": "上海",
        "receiverName": "XXX",
        "receiverAddress": "XXX街道 XX路999",
        "receiverPhone": ""
      },
      "sender": {
        "senderCityCode": "330100",
        "senderAddress": "网商路699号",
        "senderName": "张三",
        "senderProvince": "浙江省",
        "encrypt": "CN",
        "senderCity": "杭州市",
        "senderCountyCode": "330108",
        "senderProvinceCode": "330000",
        "senderMobile": "12345678900",
        "senderPhone": "",
        "senderCounty": "滨江区"
      }
    }
  ]
} 

API工具