文档中心 > API类目 > ICBU-商品

alibaba.icbu.product.logistics.country.getcoststatus (国际站计算国家物流运费确定性)

国际站计算国家物流运费确定性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
country_logistics_cost_status_request CountryLogisticsCostStatusRequest 必须 -
  • └ unit_weight
  • String
  • 必须
  • 1.5
  • 单件商品重量,单位KG
  • └ shipping_template_id
  • Number
  • 必须
  • 123456
  • 运费模版ID
  • └ sale_type
  • String
  • 必须
  • normal
  • 售卖类型:normal-按件卖, batch-按批卖
  • └ unit_size
  • String
  • 必须
  • 20X20X20
  • 单件商品长宽高,用X分隔
  • └ batch_num
  • Number
  • 可选
  • 10
  • 批量售卖,每批商品数量
  • └ language
  • String
  • 可选
  • zh_cn
  • 返回结果语种
  • └ product_type
  • Number
  • 必须
  • 1
  • 产品类型:1-直接下单品,2-定制品
  • └ moq
  • Number
  • 必须
  • 10
  • 最小起订数量

响应参数

名称 类型 示例值 描述
trace_id String 11111111 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码
data CountryLogisticsCostStatusListDTO - 返回结果数据
  • core_country_logistics_cost_list
  • CountryLogisticsCostStatusDTO []
  • -
  • 核心国家运费确定性信息
  • └ country_code
  • String
  • US
  • 国家代码
  • └ country_name
  • String
  • 美国
  • 国家名称
  • └ is_freight_cost_certain
  • Boolean
  • true
  • 运费是否确定
  • non_core_country_logistics_cost_list
  • CountryLogisticsCostStatusDTO []
  • -
  • 非核心国家运费确定性信息
  • └ country_code
  • String
  • US
  • 国家代码
  • └ country_name
  • String
  • 美国
  • 国家名称
  • └ is_freight_cost_certain
  • String
  • true
  • 运费是否确定
biz_success Boolean true 调用是否成功
message String 系统异常,请稍后再试 错误信息
msg_code String SYS_ERROR 返回的错误码,数组形式的字符串,用;分割

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest req = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest();
AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequest obj1 = new AlibabaIcbuProductLogisticsCountryGetcoststatusRequest.CountryLogisticsCostStatusRequest();
obj1.setUnitWeight("1.5");
obj1.setShippingTemplateId(123456L);
obj1.setSaleType("normal");
obj1.setUnitSize("20X20X20");
obj1.setBatchNum(10L);
obj1.setLanguage("zh_cn");
obj1.setProductType(1L);
obj1.setMoq(10L);
req.setCountryLogisticsCostStatusRequest(obj1);
AlibabaIcbuProductLogisticsCountryGetcoststatusResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_icbu_product_logistics_country_getcoststatus_response>
    <trace_id>11111111</trace_id>
    <data>
        <core_country_logistics_cost_list>
            <country_logistics_cost_status_d_t_o>
                <country_code>US</country_code>
                <country_name>美国</country_name>
                <is_freight_cost_certain>true</is_freight_cost_certain>
            </country_logistics_cost_status_d_t_o>
        </core_country_logistics_cost_list>
        <non_core_country_logistics_cost_list>
            <country_logistics_cost_status_d_t_o>
                <country_code>US</country_code>
                <country_name>美国</country_name>
                <is_freight_cost_certain>true</is_freight_cost_certain>
            </country_logistics_cost_status_d_t_o>
        </non_core_country_logistics_cost_list>
    </data>
    <biz_success>true</biz_success>
    <message>系统异常,请稍后再试</message>
    <msg_code>SYS_ERROR</msg_code>
</alibaba_icbu_product_logistics_country_getcoststatus_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

返回
顶部