# Retrieve Plan

**GET** `/subscriptions/plans/{plan_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Retrieve Plan

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string, required)
  The `account_id` found in your [WHITELABEL Dashboard](https://dashboard.whitelabel.com/developers) (UUID). Required — omitting it returns `400 BAD_REQUEST` ("Invalid x-account-code header.").

## Path parameters

- `plan_id` (string, required)
  The unique identifier of the plan.

## Responses

### 200

200

- `id` (string)
- `account_id` (string)
- `name` (string)
- `description` (string)
- `merchant_reference` (string)
- `status` (string)
- `base_amount` (object)
  - `currency` (string)
  - `value` (number)
- `frequency` (object)
  - `type` (string)
  - `value` (integer)
- `country_prices` (object[])
  - `country` (string)
  - `amount` (object)
    - `currency` (string)
    - `value` (number)
- `allowed_payment_methods` (string[])
- `metadata` (object[])
- `phases` (object[])
- `created_at` (string)
- `updated_at` (string)
- `account_ids` (string[])
  Every account the plan is available on. Always returned; contains `account_id` when the plan is scoped to a single account.
- `retries` (object)
  The retry configuration subscriptions created from this plan inherit. `null` when the plan sets none.
- `retry_split` (object)
  The Smart Retries A/B split configuration attached to this plan. `null` when none is set.
- `meters` (object[])
  The metered prices attached to this plan. Empty when the plan has no usage-based pricing; see [Attach Meter to Plan](/reference/meters/attach-meter-to-plan).

Example:

```json
{
  "id": "string",
  "account_id": "string",
  "name": "string",
  "description": "string",
  "merchant_reference": "string",
  "status": "string",
  "base_amount": {
    "currency": "string",
    "value": 0
  },
  "frequency": {
    "type": "string",
    "value": 0
  },
  "country_prices": [
    {
      "country": "string",
      "amount": {
        "currency": "string",
        "value": 0
      }
    }
  ],
  "allowed_payment_methods": [
    "string"
  ],
  "metadata": [
    {}
  ],
  "phases": [
    {}
  ],
  "created_at": "string",
  "updated_at": "string",
  "account_ids": [
    "string"
  ],
  "retries": {},
  "retry_split": {},
  "meters": [
    {}
  ]
}
```

### 404

404

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "PLAN_NOT_FOUND",
  "messages": [
    "string"
  ]
}
```