> ## Documentation Index
> Fetch the complete documentation index at: https://docs.therius.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List All Subscription Plans

> List all billing plans for your merchant account, with optional country filter. Includes subscriber count and archive state.

`GET /subscription/plan` returns all billing plans for your merchant account, including the current subscriber count and archive status for each plan. Use the `country` filter to see only plans available in a specific market — global plans (those without country restrictions) are always included in filtered results.

## Request

**Base URL:** `https://api.therius.io/v1`

**Endpoint:** `GET /subscription/plan`

### Headers

<ParamField header="Authorization" type="string" required>
  `Bearer prv_production_xxx` (production) or `Bearer prv_sandbox_xxx` (sandbox) — your merchant private API key.
</ParamField>

### Query Parameters

<ParamField query="merchantCode" type="string" required>
  Your merchant account identifier. Required if your key is associated with multiple merchant accounts.
</ParamField>

<ParamField query="country" type="string">
  ISO 3166-1 alpha-2 country code to filter plans by availability, e.g. `"BR"`. Returns plans where `availableCountries` includes the given code, plus all globally available plans. Omit to return all plans regardless of country restrictions.
</ParamField>

## Response

Returns an array of plan objects. Each object includes all fields set at creation time plus the following computed fields:

<ResponseField name="id" type="integer">
  The plan's unique integer ID.
</ResponseField>

<ResponseField name="subscriberCount" type="integer">
  Number of currently active or trialing subscribers on this plan.
</ResponseField>

<ResponseField name="isActive" type="boolean">
  Whether the plan is accepting new subscribers. Set to `false` via [Update Plan](/api-reference/plans/update) to soft-deactivate.
</ResponseField>

<ResponseField name="deletedAt" type="string">
  ISO 8601 timestamp of when the plan was archived, or `null` if not archived. Archived plans still appear in list results.
</ResponseField>

<RequestExample>
  ```bash cURL theme={"dark"}
  curl "https://api.therius.io/v1/subscription/plan?merchantCode=MERCHANT_001&country=US" \
    -H "Authorization: Bearer prv_production_your_key_here"
  ```
</RequestExample>

<Tip>
  Archived plans are included in the response with a non-null `deletedAt`. Filter them out client-side if you only want plans currently open for enrollment.
</Tip>


## OpenAPI

````yaml GET /subscription/plan
openapi: 3.1.0
info:
  title: Therius API
  description: REST API for payments, subscriptions, and billing plans.
  version: 1.0.0
servers:
  - url: https://api.therius.io/v1
    description: Production
  - url: https://api-sandbox.therius.io/v1
    description: Sandbox
security:
  - bearerAuth: []
paths:
  /subscription/plan:
    get:
      tags:
        - Plans
      summary: List all subscription plans
      operationId: listPlans
      parameters:
        - name: merchantCode
          in: query
          description: >-
            Your merchant account identifier. Required if the key maps to more
            than one merchant account.
          schema:
            type: string
        - name: country
          in: query
          description: >-
            ISO 3166-1 alpha-2 code - returns plans available in that country
            plus all globally-available plans.
          schema:
            type: string
      responses:
        '200':
          description: List of plans
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Plan'
components:
  schemas:
    Plan:
      type: object
      description: >-
        A reusable billing plan. `amount` is a flat integer in the currency
        minor units (with separate `currency` + `exponent`) - not an Amount
        object.
      properties:
        id:
          type: integer
          description: The plan unique integer ID.
        merchantId:
          type: integer
          description: The merchant account that owns the plan.
        name:
          type: string
        description:
          type: string
        interval:
          type: string
          enum:
            - day
            - week
            - month
            - year
          description: Billing interval unit. Immutable after creation.
        intervalCount:
          type: integer
          description: >-
            Number of `interval` units between charges - `month` + `3` bills
            quarterly.
        amount:
          type: integer
          description: >-
            Recurring charge in the currency minor units (e.g. `2999` = $29.99
            at exponent 2). Immutable after creation.
        currency:
          type: string
          description: ISO 4217 currency code. Immutable after creation.
        exponent:
          type: integer
          description: >-
            Decimal places for `amount` / `introAmount` - `2` for USD, `0` for
            JPY.
        trialPeriodDays:
          type: integer
          description: Free-trial length in days before the first charge. `0` for no trial.
        introAmount:
          type: integer
          description: >-
            Introductory charge in minor units for the first
            `introBillingCycles` cycles, if set.
        introBillingCycles:
          type: integer
          description: >-
            How many initial cycles are billed at `introAmount` before the rate
            reverts to `amount`.
        maxBillingCycles:
          type: integer
          description: >-
            Total cycles after which the subscription auto-completes. `0` =
            open-ended.
        availableCountries:
          type: array
          items:
            type: string
          description: >-
            ISO 3166-1 alpha-2 codes the plan is offered in. Empty = available
            everywhere.
        isActive:
          type: boolean
          description: >-
            Whether the plan accepts new subscribers. Existing subscriptions are
            unaffected when this is `false`.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your secret API key: `Bearer prv_production_xxx` (production) or `Bearer
        prv_sandbox_xxx` (sandbox).

````