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

# List plans


`GET /v1/plans`

Cursor-paginated.

Auth: a secret key with the `plans.list` permission. Returns `200` with Plan.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `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/plans?limit=10" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/plans?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/plans?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 plan identifier. |
| `object` | "plan" | Stable resource discriminator. |
| `name` | string | Plan name. |
| `amount` | integer | Renewal amount in minor units. |
| `currency` | string | Three-letter currency code. |
| `interval` | string | Renewal interval. |
| `intervalCount` | integer | Intervals between renewals. |
| `createdAt` | string | ISO 8601 creation timestamp. |

```json
{
  "object": "list",
  "data": [
    {
      "id": "plan_01JEXAMPLE",
      "object": "plan",
      "name": "Standard monthly",
      "amount": 4999,
      "currency": "USD",
      "interval": "month",
      "intervalCount": 1,
      "createdAt": "2026-08-10T20:49:51.653Z"
    }
  ],
  "hasMore": false
}
```

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