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

alibaba.icbu.product.country.getcountrylist (国际站获取商品国家列表)

国际站获取商品国家列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
country_request ProductTopRequest 必须 -
  • └ language
  • String
  • 可选
  • zh_cn
  • 返回结果语种

响应参数

名称 类型 示例值 描述
trace_id String 1abde3fdsgsa 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码
data ContinentDTO [] - 返回结果数据。按大洲对国家进行分组,包含热门国家
  • └ continent_code
  • String
  • NA
  • 大洲代码
  • └ continent_name
  • String
  • 北美洲
  • 大洲名称
  • country_list
  • CountryDTO []
  • -
  • 大洲国家列表
  • └ country_code
  • String
  • US
  • 国家代码
  • └ country_name
  • String
  • 美国
  • 国家名称
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);
AlibabaIcbuProductCountryGetcountrylistRequest req = new AlibabaIcbuProductCountryGetcountrylistRequest();
AlibabaIcbuProductCountryGetcountrylistRequest.ProductTopRequest obj1 = new AlibabaIcbuProductCountryGetcountrylistRequest.ProductTopRequest();
obj1.setLanguage("zh_cn");
req.setCountryRequest(obj1);
AlibabaIcbuProductCountryGetcountrylistResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_icbu_product_country_getcountrylist_response>
    <trace_id>1abde3fdsgsa</trace_id>
    <data>
        <continent_d_t_o>
            <continent_code>NA</continent_code>
            <continent_name>北美洲</continent_name>
            <country_list>
                <country_d_t_o>
                    <country_code>US</country_code>
                    <country_name>美国</country_name>
                </country_d_t_o>
            </country_list>
        </continent_d_t_o>
    </data>
    <biz_success>true</biz_success>
    <message>系统异常,请稍后再试</message>
    <msg_code>SYS_ERROR</msg_code>
</alibaba_icbu_product_country_getcountrylist_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

返回
顶部