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

# List saved cards


`GET /v1/payment_methods`

The cards saved for one customer, default first. Saves the first card id, so `02 · Payments` can charge it without you copying anything.

Auth: a secret key with the `paymentMethods.list` permission. Returns `200` with Payment method.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `customerId` | query | string | Yes | The customer that owns or receives this resource. |
| `limit` | query | integer | No | Maximum number of results to return. Defaults to 10 and cannot exceed 100. |

## Request

**curl**

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

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/payment_methods?customerId={{CUSTOMER_ID}}&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/payment_methods?customerId={{CUSTOMER_ID}}&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 payment-method identifier. |
| `object` | "payment_method" | Stable resource discriminator. |
| `customerId` | string | Customer that owns this method. |
| `brand` | string | Card brand. |
| `last4` | string | Last four digits only. |
| `expMonth` | integer | Expiration month. |
| `expYear` | integer | Four-digit expiration year. |
| `isDefault` | boolean | Whether this is the customer default. |
| `createdAt` | string | ISO 8601 creation timestamp. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "pm_01JEXAMPLE",
      "object": "payment_method",
      "customerId": "cus_01JEXAMPLE",
      "brand": "visa",
      "last4": "4242",
      "expMonth": 12,
      "expYear": 2030,
      "isDefault": true,
      "createdAt": "2026-08-10T20:49:51.653Z"
    }
  ],
  "hasMore": false
}
```

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