**Version: 202201**

# Get Address List

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

Retrieve a list of all address with pagination.

## Request

**Path Parameters**

- `customer_id` string (required)

  Cusomer's ID

**Query Parameters**

- `limit` int32

  Limit per page, maximum: `250`

  **Default value:** `10`
- `page` int32

  Page number

  **Default value:** `1`

## Responses

**200 | 400 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `addresses` object[]

  *   Array [

  - `id` string

    **Example:** `2490dc6a-d511-4e5e-bbcb-d58e913243ad`
  - `customer_id` string

    **Example:** `2dd957e3-2051-4cdf-8584-9c0046b4d1ae`
  - `first_name` string

    **Example:** `Ryan`
  - `last_name` string

    **Example:** `zhang`
  - `company` string

    **Example:** `ABC Limited`
  - `city` string

    **Example:** `SAN JOSE`
  - `province` string

    **Example:** `New Mexico`
  - `country` string

    **Example:** `United States`
  - `zip` string

    **Example:** `87036`
  - `province_code` string

    **Example:** `NM`
  - `country_code` string

    **Example:** `US`
  - `gender` string

    **Example:** `male`
  - `phone` string

    **Example:** `+8615015570043`
  - `phone_area_code` string

    **Example:** `+86`
  - `area` string

    **Example:** `Bay area`
  - `email` string

    **Example:** `ryan@shoplazza.com`
  - `name` string

    **Example:** `Ryan zhang`
  - `address1` string

    **Example:** `1 Rue des Carrieres`
  - `address2` string

    **Example:** `Suite 1234`
  - `country_name` string

    **Example:** `United States`
  - `default` boolean

    **Default value:** `true`

    **Example:** `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**

**Schema | Example | Result**

**Schema**

**oneOf**

**object | object**

- `errors` string[]

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

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

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

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

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