文档中心 > API类目 > 万相台无界API

taobao.universalbp.commonapi.getcodeconfig (查询地域码表)

查询地域码表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_service_context TopServiceContext 必须 请求体
  • └ biz_code
  • String
  • 必须
  • xxxxx
  • api业务线编码
area_query_v_o AreaQueryVo 可选 地域码表查询
  • └ campaign_id
  • Number
  • 可选
  • 68796878069
  • 计划id,计划已经存在场景必填,eg:添加主体、编辑计划状态等场景

响应参数

名称 类型 示例值 描述
result TopResult 结果体
  • info
  • TopInfo
  • 请求系统信息
  • └ ok
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • 参数错误
  • 错误信息
  • └ error_code
  • String
  • xxxxx
  • 错误编码
  • area_group_v_o
  • AreaGroupVo
  • 结果集
  • letter_groups
  • BigAreaVo []
  • 字母开头的
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • String
  • 471
  • id
  • provinces
  • AreaVo []
  • 地域集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • cities
  • AreaVo []
  • 城市集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • provinces
  • AreaVo []
  • 省集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • location_groups
  • BigAreaVo []
  • 地理大区开头的
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • String
  • 471
  • id
  • provinces
  • AreaVo []
  • 地域集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • cities
  • AreaVo []
  • 城市集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • provinces
  • AreaVo []
  • 省集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • last_provinces
  • AreaVo []
  • 非常用地域
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • cities
  • AreaVo []
  • 城市集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • provinces
  • AreaVo []
  • 省集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • overseas
  • AreaVo []
  • 海外
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • cities
  • AreaVo []
  • 城市集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id
  • provinces
  • AreaVo []
  • 省集合
  • └ name
  • String
  • 测试
  • 名称
  • └ id
  • Number
  • 357
  • id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpCommonapiGetcodeconfigRequest req = new UniversalbpCommonapiGetcodeconfigRequest();
UniversalbpCommonapiGetcodeconfigRequest.TopServiceContext obj1 = new UniversalbpCommonapiGetcodeconfigRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
req.setTopServiceContext(obj1);
UniversalbpCommonapiGetcodeconfigRequest.AreaQueryVo obj2 = new UniversalbpCommonapiGetcodeconfigRequest.AreaQueryVo();
obj2.setCampaignId(68796878069L);
req.setAreaQueryVO(obj2);
UniversalbpCommonapiGetcodeconfigResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<universalbp_commonapi_getcodeconfig_response>
    <result>
        <info>
            <ok>true</ok>
            <message>参数错误</message>
            <error_code>xxxxx</error_code>
        </info>
        <area_group_v_o>
            <letter_groups>
                <big_area_vo>
                    <name>测试</name>
                    <id>471</id>
                    <provinces>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                            <cities>
                                <area_vo>
                                    <name>测试</name>
                                    <id>357</id>
                                </area_vo>
                            </cities>
                            <provinces>
                                <area_vo>
                                    <name>测试</name>
                                    <id>357</id>
                                </area_vo>
                            </provinces>
                        </area_vo>
                    </provinces>
                </big_area_vo>
            </letter_groups>
            <location_groups>
                <big_area_vo>
                    <name>测试</name>
                    <id>471</id>
                    <provinces>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                            <cities>
                                <area_vo>
                                    <name>测试</name>
                                    <id>357</id>
                                </area_vo>
                            </cities>
                            <provinces>
                                <area_vo>
                                    <name>测试</name>
                                    <id>357</id>
                                </area_vo>
                            </provinces>
                        </area_vo>
                    </provinces>
                </big_area_vo>
            </location_groups>
            <last_provinces>
                <area_vo>
                    <name>测试</name>
                    <id>357</id>
                    <cities>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                        </area_vo>
                    </cities>
                    <provinces>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                        </area_vo>
                    </provinces>
                </area_vo>
            </last_provinces>
            <overseas>
                <area_vo>
                    <name>测试</name>
                    <id>357</id>
                    <cities>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                        </area_vo>
                    </cities>
                    <provinces>
                        <area_vo>
                            <name>测试</name>
                            <id>357</id>
                        </area_vo>
                    </provinces>
                </area_vo>
            </overseas>
        </area_group_v_o>
    </result>
</universalbp_commonapi_getcodeconfig_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

返回
顶部