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

# Get Plan Balance

> Retrieves credit balance for a specific account on a plan.



## OpenAPI

````yaml GET /protocol/plans/{planId}/balance/{holderAddress}
openapi: 3.1.0
info:
  title: Nevermined API
  description: >-
    API for managing AI agents, payment plans, and x402 payments in the
    Nevermined ecosystem.


    ## Prerequisites


    You need a Nevermined API Key to authenticate. Get one at
    [nevermined.app](https://nevermined.app) under **Settings > API Keys**.


    See the [5-Minute Setup Guide](/docs/integrate/quickstart/5-minute-setup)
    for detailed instructions.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox (Testing) - Base Sepolia
  - url: https://api.live.nevermined.app/api/v1
    description: Live (Production) - Base Mainnet
security:
  - bearerAuth: []
tags:
  - name: Protocol - Agents
    description: Endpoints for registering and managing AI agents
  - name: Protocol - Plans
    description: Endpoints for creating and managing payment plans
  - name: Protocol - Credits
    description: Endpoints for minting and redeeming credits
  - name: Protocol - Access
    description: Endpoints for access tokens and request validation
  - name: X402 - Permissions
    description: Endpoints for x402 delegated permissions
paths:
  /protocol/plans/{planId}/balance/{holderAddress}:
    get:
      tags:
        - Protocol - Plans
      summary: Get Plan Balance
      description: Retrieves credit balance for a specific account on a plan.
      operationId: getPlanBalance
      parameters:
        - name: planId
          in: path
          description: The plan's unique identifier
          required: true
          schema:
            type: integer
        - name: holderAddress
          in: path
          description: Wallet address to check balance for
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Balance information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '404':
          description: Plan or holder not found
components:
  schemas:
    Balance:
      type: object
      properties:
        isSubscriber:
          type: boolean
        total:
          type: integer
        used:
          type: integer
        remaining:
          type: integer
        expiresAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Nevermined API Key (starts with 'nvm:'). Get one at
        [nevermined.app](https://nevermined.app) under **Settings > API Keys**.

````