**版本：202201**

# 查询地址列表

**GET** `/openapi/2022-01/customers/:customer_id/addresses`

分页返回地址列表。

## 请求

**Path参数**

- `customer_id` string (required)

  顾客 ID。

**Query参数**

- `limit` int32

  Limit per page, maximum: `250`

  **默认值：** `10`
- `page` int32

  Page number

  **默认值：** `1`

## 响应

**200 | 400 | 404**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `addresses` object[]

  *   Array [

  - `id` string

    **示例：** `2490dc6a-d511-4e5e-bbcb-d58e913243ad`
  - `customer_id` string

    **示例：** `2dd957e3-2051-4cdf-8584-9c0046b4d1ae`
  - `first_name` string

    **示例：** `Ryan`
  - `last_name` string

    **示例：** `zhang`
  - `company` string

    **示例：** `ABC Limited`
  - `city` string

    **示例：** `SAN JOSE`
  - `province` string

    **示例：** `New Mexico`
  - `country` string

    **示例：** `United States`
  - `zip` string

    **示例：** `87036`
  - `province_code` string

    **示例：** `NM`
  - `country_code` string

    **示例：** `US`
  - `gender` string

    **示例：** `male`
  - `phone` string

    **示例：** `+8615015570043`
  - `phone_area_code` string

    **示例：** `+86`
  - `area` string

    **示例：** `Bay area`
  - `email` string

    **示例：** `ryan@shoplazza.com`
  - `name` string

    **示例：** `Ryan zhang`
  - `address1` string

    **示例：** `1 Rue des Carrieres`
  - `address2` string

    **示例：** `Suite 1234`
  - `country_name` string

    **示例：** `United States`
  - `default` boolean

    **默认值：** `true`

    **示例：** `true`
  *   ]

```json
{
  "addresses": [
    {
      "id": "2490dc6a-d511-4e5e-bbcb-d58e913243ad",
      "customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
      "first_name": "Ryan",
      "last_name": "zhang",
      "company": "ABC Limited",
      "city": "SAN JOSE",
      "province": "New Mexico",
      "country": "United States",
      "zip": "87036",
      "province_code": "NM",
      "country_code": "US",
      "gender": "male",
      "phone": "+8615015570043",
      "phone_area_code": "+86",
      "area": "Bay area",
      "email": "ryan@shoplazza.com",
      "name": "Ryan zhang",
      "address1": "1 Rue des Carrieres",
      "address2": "Suite 1234",
      "country_name": "United States",
      "default": true
    }
  ]
}
```

```json
{
    "addresses": [
        {
            "id": "2490dc6a-d511-4e5e-bbcb-d58e913243ad",
            "customer_id": "2dd957e3-2051-4cdf-8584-9c0046b4d1ae",
            "first_name": "Ryan",
            "last_name": "zhang",
            "company": "ABC Limited",
            "city": "SAN JOSE",
            "province": "New Mexico",
            "country": "United States",
            "zip": "87036",
            "province_code": "NM",
            "country_code": "US",
            "gender": "male",
            "phone": "+8615015570043",
            "phone_area_code": "+86",
            "area": "Bay area",
            "email": "ryan@shoplazza.com",
            "name": "Ryan zhang",
            "address1": "1 Rue des Carrieres",
            "address2": "Suite 1234",
            "country_name": "United States",
            "default": true
        }
    ]
}
```

400

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

**oneOf**

**object | object**

- `errors` string[]

```json
{
  "errors": [
    ""
  ]
}
```

```json
{
  "errors": [
    "Exceeds maximum limit of 250"
  ]
}
```

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```
