aliexpress.local.logistics.order.info.query (query order details)

query order details

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param1 FindOrderRequestTopDTO 必须 param1
  • └ logistics_order_id
  • String
  • 必须
  • BP10000000018002
  • Shipment order id created. AE will save relationship with logistics provider's shipment order_id

响应参数

名称 类型 示例值 描述
data OrderDTO data
  • parcel
  • ParcelDTO
  • parcel
  • └ quantity
  • Number
  • 1
  • number of the parcel and there's only one parcel
  • └ parcel_type_code
  • String
  • BOX
  • Type: ENVELOPE, BOX, BAG, TUBE, PALLET
  • └ width
  • String
  • 1
  • Width of the parcel in the shipment order. Default unit: centimeters
  • └ length
  • String
  • 1
  • Length of the parcel in the shipment order. Default unit: centimeters
  • └ weight
  • String
  • 18.5
  • Actual gross weight of the parcel instead of the weight of the product, nor the added weight of the invoice volumes. Default unit: kilograms
  • └ height
  • String
  • 1
  • Height of the parcel in the shipment order. Default unit: centimeters
  • └ logistics_order_id
  • String
  • BP10000000018002
  • Shipment order id created. AE will save relationship with logistics provider's shipment order_id
  • └ logistics_channel_order_id
  • String
  • BP10000000018002
  • Logistics provider Id of the shipping order such as 1-Cainiao, 2-Pegaki, 3-Frenet, 4-Delivery Hub, etc.
  • └ trade_order_id
  • Number
  • 8143812362060033
  • It's sales order id and a 16-digit number. There will be mapping between trade order and shipment order
  • └ tracking_code
  • String
  • 123456789
  • tracking code
  • └ shipping_method_id
  • String
  • 2
  • Delivery option id selected by a sender
  • └ logistics_channel_id
  • String
  • 2
  • Logistics provider Id of the shipping order such as 1-Cainiao, 2-Pegaki, 3-Frenet, 4-Delivery Hub, etc.
  • receipt_address
  • AddressDTO
  • receiver
  • └ first_name
  • String
  • Nome
  • first name of receiver
  • └ last_name
  • String
  • Sobrenome
  • last name of receiver
  • └ city
  • String
  • San Paulo
  • receiver's city
  • └ federal_tax_id
  • String
  • 97586646112
  • receiver's federal_tax_id
  • └ country
  • String
  • Brasil
  • receiver's country
  • └ zip_code
  • String
  • 04012-080
  • zip code of ship to place
  • └ state
  • String
  • SP
  • receiver's State
  • └ address
  • String
  • Rua Dr Amancio de Carvalho
  • receiver's district and street
  • └ address_number
  • String
  • 110
  • receiver's street number
  • └ email
  • String
  • email@xxx.com
  • email of receiver
  • └ cell_phone
  • String
  • 11987654321
  • cell phone of receiver
  • └ additional
  • String
  • Floor 5
  • shipping additional
  • └ status
  • String
  • 1
  • status of logistics order,1-NEW 2-CREATED 3-SHIPPED 4-IN TRANSIT 5-DELIVERY FAILURE 6-DELIVERED 7-CANCELLED 8-UNKNOWN
  • sender_address
  • AddressDTO
  • sender
  • └ first_name
  • String
  • Nome
  • first name of sender
  • └ last_name
  • String
  • Sobrenome
  • last name of sender
  • └ state
  • String
  • San Paulo
  • sender's state
  • └ zip_code
  • String
  • 04012-080
  • zip code of ship from place
  • └ address
  • String
  • street
  • sender's district and street
  • └ address_number
  • String
  • 110
  • sender's street number
  • └ email
  • String
  • test@123.com
  • email of sender
  • └ cell_phone
  • String
  • 4341341
  • cell phone of sender
  • └ city
  • String
  • São Paulo
  • sender's city
  • └ country
  • String
  • Brazil
  • sender's country
  • └ tracking_url
  • String
  • http://status.ondeestameupedido.com/tracking/6081fde1e6f9bdb144be7ee34bc2190c6ac8ff12
  • tracking url for senders to check status
  • └ logistics_channel_name
  • String
  • PEKAGI
  • logistics channel name
  • invoice
  • InvoiceDTO
  • invoice
  • └ invoice_series
  • String
  • 186
  • 3-digit number
  • └ invoice_number
  • String
  • 772611000
  • 9-digit number
  • └ invoice_date
  • String
  • 2017-11-12T12:00:00.000-02:00
  • date of inovice issued
  • └ invoice_total_value
  • String
  • 123.0
  • value of invoice
  • └ invoice_key
  • String
  • 01234567890123456789012345678901234567891234
  • 44-digit number
  • products
  • ProductDTO []
  • products
  • └ weight
  • String
  • 1
  • Total weight of a SKU in its original packaging. Default unit: kilograms
  • └ length
  • String
  • 1
  • Actual dimension of a sku in its original packaging. Default unit: centimeters
  • └ width
  • String
  • 1
  • Actual dimension of a sku in its original packaging. Default unit: centimeters
  • └ height
  • String
  • 1
  • Actual dimension of a sku in its original packaging. Default unit: centimeters
  • └ price
  • String
  • 1.1
  • Price of product
  • └ quantity
  • Number
  • 1
  • Quantity of a sku in the order. It's used to calculate the total number of products in a parcel
  • └ sku_id
  • String
  • 123
  • AE sku_id to identify a unit of sku
is_success Boolean true is_success
error_result_message String 1111 error_result_message
error_result_code String 11 error_result_code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLocalLogisticsOrderInfoQueryRequest req = new AliexpressLocalLogisticsOrderInfoQueryRequest();
AliexpressLocalLogisticsOrderInfoQueryRequest.FindOrderRequestTopDTO obj1 = new AliexpressLocalLogisticsOrderInfoQueryRequest.FindOrderRequestTopDTO();
obj1.setLogisticsOrderId("BP10000000018002");
req.setParam1(obj1);
AliexpressLocalLogisticsOrderInfoQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_local_logistics_order_info_query_response>
    <data>
        <parcel>
            <quantity>1</quantity>
            <parcel_type_code>BOX</parcel_type_code>
            <width>1</width>
            <length>1</length>
            <weight>18.5</weight>
            <height>1</height>
        </parcel>
        <logistics_order_id>BP10000000018002</logistics_order_id>
        <logistics_channel_order_id>BP10000000018002</logistics_channel_order_id>
        <trade_order_id>8143812362060033</trade_order_id>
        <tracking_code>123456789</tracking_code>
        <shipping_method_id>2</shipping_method_id>
        <logistics_channel_id>2</logistics_channel_id>
        <receipt_address>
            <first_name>Nome</first_name>
            <last_name>Sobrenome</last_name>
            <city>San Paulo</city>
            <federal_tax_id>97586646112</federal_tax_id>
            <country>Brasil</country>
            <zip_code>04012-080</zip_code>
            <state>SP</state>
            <address>Rua Dr Amancio de Carvalho</address>
            <address_number>110</address_number>
            <email>email@xxx.com</email>
            <cell_phone>11987654321</cell_phone>
            <additional>Floor 5</additional>
        </receipt_address>
        <status>1</status>
        <sender_address>
            <first_name>Nome</first_name>
            <last_name>Sobrenome</last_name>
            <state>San Paulo</state>
            <zip_code>04012-080</zip_code>
            <address>street</address>
            <address_number>110</address_number>
            <email>test@123.com</email>
            <cell_phone>4341341</cell_phone>
            <city>São Paulo</city>
            <country>Brazil</country>
        </sender_address>
        <tracking_url>http://status.ondeestameupedido.com/tracking/6081fde1e6f9bdb144be7ee34bc2190c6ac8ff12</tracking_url>
        <logistics_channel_name>PEKAGI</logistics_channel_name>
        <invoice>
            <invoice_series>186</invoice_series>
            <invoice_number>772611000</invoice_number>
            <invoice_date>2017-11-12T12:00:00.000-02:00</invoice_date>
            <invoice_total_value>123.0</invoice_total_value>
            <invoice_key>01234567890123456789012345678901234567891234</invoice_key>
        </invoice>
        <products>
            <product_d_t_o>
                <weight>1</weight>
                <length>1</length>
                <width>1</width>
                <height>1</height>
                <price>1.1</price>
                <quantity>1</quantity>
                <sku_id>123</sku_id>
            </product_d_t_o>
        </products>
    </data>
    <is_success>true</is_success>
    <error_result_message>1111</error_result_message>
    <error_result_code>11</error_result_code>
</aliexpress_local_logistics_order_info_query_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

返回
顶部