aliexpress.social.product.freight.query (速卖通社交产品运费查询)

Need for inquiring about freight options

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 可选 4000078939541 Product id
quantity Number 可选 3 Amount
ship_from_country String 可选 RU Country to ship from
ship_to_country String 可选 RU Country to ship to
currency String 可选 RUB Curreny

响应参数

名称 类型 示例值 描述
result FreightItemOpenApiVo see below result
  • └ city_code
  • String
  • null
  • City code
  • └ city_name
  • String
  • 60
  • City name
  • └ commit_day
  • String
  • null
  • Commit day
  • └ company
  • String
  • AliExpress Standard Shipping
  • Company
  • └ core_zone
  • String
  • MKAD
  • Core zone
  • └ currency
  • String
  • USD
  • Currency
  • └ cut_time
  • String
  • 07:35
  • Cut time
  • └ delivery_date
  • String
  • 2020-04-07
  • Delivery date
  • └ discount
  • Number
  • 100
  • Discount
  • └ freight_amount
  • String
  • 0
  • Freight amount
  • └ is_hba_service
  • Boolean
  • false
  • If it is HBA
  • └ remain_time
  • String
  • -28820167
  • Remaining time
  • └ send_goods_country_full_name
  • String
  • China
  • Count full name
  • └ service_features
  • String
  • null
  • Service features
  • └ tracking_code
  • Boolean
  • true
  • Tracking code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialProductFreightQueryRequest req = new AliexpressSocialProductFreightQueryRequest();
req.setProductId(4000078939541L);
req.setQuantity(3L);
req.setShipFromCountry("RU");
req.setShipToCountry("RU");
req.setCurrency("RUB");
AliexpressSocialProductFreightQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_social_product_freight_query_response>
    <result>
        <city_code>null</city_code>
        <city_name>60</city_name>
        <commit_day>null</commit_day>
        <company>AliExpress Standard Shipping</company>
        <core_zone>MKAD</core_zone>
        <currency>USD</currency>
        <cut_time>07:35</cut_time>
        <delivery_date>2020-04-07</delivery_date>
        <discount>100</discount>
        <freight_amount>0</freight_amount>
        <is_hba_service>false</is_hba_service>
        <remain_time>-28820167</remain_time>
        <send_goods_country_full_name>China</send_goods_country_full_name>
        <service_features>null</service_features>
        <tracking_code>true</tracking_code>
    </result>
</aliexpress_social_product_freight_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

返回
顶部