> Index of every page: https://docs.merchantservicedepot.com/llms.txt

# List addresses


`GET /v1/addresses`

Scoped to one customer.

Auth: a secret key with the `addresses.list` permission. Returns `200` with Address.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `customerId` | query | string | Yes | The customer that owns or receives this resource. |

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/addresses?customerId={{CUSTOMER_ID}}" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/addresses?customerId={{CUSTOMER_ID}}", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MYELA_API_KEY}`,
  },
});

if (!res.ok) {
  const { error } = await res.json();
  // Branch on error.code — never on error.message.
  throw new Error(error.code);
}
const data = await res.json();
```

**Python**

```python
import os
import requests

res = requests.get(
    "https://payments-api-sandbox.merchantservicedepot.com/v1/addresses?customerId={{CUSTOMER_ID}}",
    headers={
        "Authorization": f"Bearer {os.environ['MYELA_API_KEY']}",
    },
)

if not res.ok:
    # Branch on error["code"] — never on error["message"].
    raise RuntimeError(res.json()["error"]["code"])
data = res.json()
```

## Response

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Unique address identifier. |
| `object` | "address" | Stable resource discriminator. |
| `customerId` | string | Customer that owns the address. |
| `firstName` | string | Recipient first name. |
| `lastName` | string | Recipient last name. |
| `line1` | string | Street address. |
| `city` | string | City or locality. |
| `postalCode` | string | Postal code. |
| `country` | string | Two-letter country code. |
| `createdAt` | string | ISO 8601 creation timestamp. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "addr_01JEXAMPLE",
      "object": "address",
      "customerId": "cus_01JEXAMPLE",
      "firstName": "Ada",
      "lastName": "Lovelace",
      "line1": "12 Marylebone Road",
      "city": "London",
      "postalCode": "NW1 5JD",
      "country": "GB",
      "createdAt": "2026-08-10T20:49:51.653Z"
    }
  ],
  "hasMore": false
}
```

Source: https://docs.merchantservicedepot.com/api-reference/list-addresses/
