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

# Get Plan

> Retrieves details about a specific payment plan by its ID.

Retrieves details about a specific payment plan by its ID.

## Example Usage

```ts theme={null}
const plan = await payments.getPlan(planId)
```

## Response

```json theme={null}
{
  "planId": "string",
  "metadata": {
    "name": "string",
    "description": "string"
  },
  "price": {
    "priceType": "FIXED_PRICE",
    "tokenAddress": "string",
    "amounts": ["number"],
    "receivers": ["string"]
  },
  "credits": {
    "creditsType": "FIXED",
    "amount": "number",
    "minAmount": "number",
    "maxAmount": "number",
    "durationOfThePlan": "number"
  },
  "nftAddress": "string?"
}
```

## Notes

* This endpoint is used to display details to a subscriber before they purchase
* Returns pricing structure, credit limits, and metadata


## OpenAPI

````yaml GET /plan/{planId}
openapi: 3.1.0
info:
  title: Nevermined API
  description: >-
    API for managing AI agents, payment plans, and subscriptions in the
    Nevermined ecosystem
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://sandbox.mintlify.com
security:
  - bearerAuth: []
paths:
  /plan/{planId}:
    get:
      tags:
        - Plans
      summary: Get Plan
      description: Retrieves details about a specific payment plan by its ID.
      operationId: getPlan
      parameters:
        - name: planId
          in: path
          description: The unique identifier of the plan to retrieve
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Plan information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plan'
components:
  schemas:
    Plan:
      type: object
      properties:
        planId:
          type: string
        metadata:
          type: object
          properties:
            name:
              type: string
            description:
              type: string
        price:
          type: object
          properties:
            priceType:
              type: string
            tokenAddress:
              type: string
            amounts:
              type: array
              items:
                type: integer
            receivers:
              type: array
              items:
                type: string
        credits:
          type: object
          properties:
            creditsType:
              type: string
            amount:
              type: integer
            durationOfThePlan:
              type: integer
        nftAddress:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````