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

# Retrieve plan


`GET /v1/plans/{plan_id}`



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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `planId` | path | string | Yes | The plan used to create the subscription. |

## Request

**curl**

```curl
curl -X GET "https://payments-api-sandbox.merchantservicedepot.com/v1/plans/{plan_id}" \
  -H "Authorization: Bearer $MYELA_API_KEY"
```

**Node**

```node
const res = await fetch("https://payments-api-sandbox.merchantservicedepot.com/v1/plans/{plan_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/plans/{plan_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 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
{
  "id": "plan_01JEXAMPLE",
  "object": "plan",
  "name": "Standard monthly",
  "amount": 4999,
  "currency": "USD",
  "interval": "month",
  "intervalCount": 1,
  "createdAt": "2026-08-10T20:49:51.653Z"
}
```

Source: https://docs.merchantservicedepot.com/api-reference/retrieve-plan/
