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

# List customers


`GET /v1/customers`

Cursor-paginated.

Enable `externalId` to look a customer up by your own id. It is an exact match, not a search — so it returns either the one customer or an empty list, which is what makes it usable as a lookup.

Auth: a secret key with the `customers.list` permission. Returns `200` with Customer.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | No | Maximum number of results to return. Defaults to 10 and cannot exceed 100. |
| `startingAfter` | query | string | No | Return results after this resource ID for cursor pagination. |
| `externalId` | query | string | No | Optional external id filter. |

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/customers?limit=10" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/customers?limit=10", {
  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/customers?limit=10",
    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 customer identifier. |
| `object` | "customer" | Stable resource discriminator. |
| `email` | string | Customer email. |
| `name` | string | Customer name. |
| `phone` | string | Customer phone. |
| `externalId` | string | Your own id for this customer. Write-once. |
| `customFields` | object[] | Your own typed fields, up to 20 rows of {name, type, value}. Omitted when none are set. Replace-on-write. |
| `createdAt` | string | ISO 8601 creation timestamp. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "cus_01JEXAMPLE",
      "object": "customer",
      "email": "ada@example.com",
      "name": "Ada Lovelace",
      "phone": "+15555550123",
      "externalId": "acct-8812",
      "customFields": [
        {
          "name": "Plan tier",
          "type": "text",
          "value": "gold"
        },
        {
          "name": "Seats",
          "type": "number",
          "value": "12"
        }
      ],
      "createdAt": "2026-08-10T20:49:51.653Z"
    }
  ],
  "hasMore": false
}
```

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