# 查询城市列表

> 查询指定地区下的城市或行政区划。

```yaml
openapi: 3.1.0
info:
  title: 查询城市列表
  version: 1.0.0
  description: 查询指定地区下的城市或行政区划。
paths:
  /api/v1/merchant/common/cityList:
    post:
      summary: 查询城市列表
      description: 查询指定地区下的城市或行政区划。
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Onerway 分配的发卡 API key 请求 Header。
          schema:
            type: string
            description: Onerway 分配的发卡 API key 请求 Header。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                regionCode:
                  type: string
                  description: 地区 / 国家代码。
                parentCode:
                  type: string
                  description: 级联查询的上级行政区划代码。
              required:
                - regionCode
            examples:
              default:
                summary: 查询城市列表
                value:
                  parentCode: GD
                  regionCode: CN
      responses:
        "200":
          description: 成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: 业务响应码；`20000` 表示成功。
                  respMsg:
                    type: string
                    description: 响应信息。
                  data:
                    type: array
                    description: 城市或行政区划列表。
                    items:
                      type: object
                      properties:
                        regionCode:
                          type: string
                          description: 上级地区 / 国家代码。
                        parentCode:
                          type: string
                          description: 上级行政区划代码。
                        cityCode:
                          type: string
                          description: 城市代码。
                        cityName:
                          type: string
                          description: 城市名称。
                    x-onerway-value:
                      empty: true
                      when:
                        en: Returned as an empty array when no city is available.
                        zh: 无可用城市时返回空数组。
              examples:
                success:
                  summary: 成功
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      - regionCode: CN
                        parentCode: GD
                        cityCode: SZ
                        cityName: Shenzhen
                      - regionCode: CN
                        parentCode: GD
                        cityCode: GZ
                        cityName: Guangzhou
```
