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

# Fetch Plans

> Use this API to get the recharge plans of an operator, so that you can show the customer what they can buy.

Pass the `operator` code from the Fetch Operators or Fetch Operator Details API. For `AIRTEL` and `VI`, also pass the customer's `mobile_number`. The number is cleaned in the same way as in the Fetch Operator Details API, and the result must be a valid 10-digit Indian mobile number. For `JIO`, you do not need to pass `mobile_number`.

Every operator returns plans in the same format. The field values come from the operator unchanged. A field that does not apply to a plan is `null`.

When no plans are available for the operator, the API still returns HTTP 200 with an empty `plans` list.

## Error codes

The following table lists the error codes you may encounter when fetching recharge plans:

> [accordion] Error codes
>
> | Code | Description | Type | Status |
> | :- | :- | :- | :- |
> | `request_failed` | The `operator` field is required but was not included in the request. Message: `operator is required` | `invalid_request_error` | 400 |
> | `request_failed` | The `operator` is not `JIO`, `AIRTEL`, or `VI`. Message: `operator must be one of AIRTEL, JIO, VI` | `invalid_request_error` | 400 |
> | `request_failed` | The `operator` is `AIRTEL` or `VI`, and the `mobile_number` is missing or is not a valid Indian mobile number. Message: `mobile_number is required and must be a valid indian mobile number for operator AIRTEL` | `invalid_request_error` | 400 |
> | `request_failed` | The `x-client-id` or `x-client-secret` is missing or incorrect. Message: `authentication Failed` | `authentication_error` | 401 |
> | `request_failed` | Your account is not set up for recharges, or its recharge access is switched off. Message: `Recharge is not enabled for this account` | `invalid_request_error` | 403 |
> | `request_failed` | You sent too many requests in a short time. Message: `Too many requests from IP. Check headers` | `rate_limit_error` | 429 |
> | `internal_error` | An unexpected error occurred at Cashfree. Message: `internal Server Error` | `api_error` | 500 |
> | `request_failed` | The service is temporarily unavailable. Message: `Recharge plans are unavailable, please retry` | `api_error` | 503 |


## OpenAPI

````yaml openapi/bbps/recharge-cou.yaml get /bbps/cou/v1/recharge/plans
openapi: 3.0.3
info:
  title: Telecom Recharge for Customers (Customer Operating Unit)
  version: 1.0.0
  description: >
    APIs for Agent Institutions to offer mobile and direct-to-home (DTH)
    recharges to their customers as a Customer Operating Unit (COU). These APIs
    enable operator discovery, plan listing, recharge validation, recharge
    requests, and recharge status checks.
servers:
  - url: https://sandbox.cashfree.com
    description: Sandbox (Testing) environment.
  - url: https://api.cashfree.com
    description: Production environment.
security:
  - XClientID: []
    XClientSecret: []
paths:
  /bbps/cou/v1/recharge/plans:
    get:
      tags:
        - Recharge Plans
      summary: Fetch Plans
      description: >-
        Use this API to get the recharge plans of an operator, so that you can
        show the customer what they can buy.


        Pass the `operator` code from the Fetch Operators or Fetch Operator
        Details API. For `AIRTEL` and `VI`, also pass the customer's
        `mobile_number`. The number is cleaned in the same way as in the Fetch
        Operator Details API, and the result must be a valid 10-digit Indian
        mobile number. For `JIO`, you do not need to pass `mobile_number`.


        Every operator returns plans in the same format. The field values come
        from the operator unchanged. A field that does not apply to a plan is
        `null`.


        When no plans are available for the operator, the API still returns HTTP
        200 with an empty `plans` list.
      operationId: fetchRechargePlans
      parameters:
        - in: header
          name: x-api-version
          required: false
          description: >
            API version to be used. Format is YYYY-MM-DD. The only supported
            version for this API is `2025-01-01`. If not specified, `2025-01-01`
            is used.
          schema:
            type: string
            default: '2025-01-01'
            enum:
              - '2025-01-01'
          example: '2025-01-01'
        - in: query
          name: operator
          required: true
          description: >-
            The operator code from the Fetch Operators or Fetch Operator Details
            API. The value is not case-sensitive.
          schema:
            type: string
            enum:
              - JIO
              - AIRTEL
              - VI
          example: JIO
        - in: query
          name: mobile_number
          required: false
          description: >-
            The customer's mobile number. Required when `operator` is `AIRTEL`
            or `VI`. Send it as the customer typed it. Only the digits are kept,
            leading zeros are dropped, and a leading `91` country code is
            dropped when more than 10 digits remain. Not needed for `JIO`.
          schema:
            type: string
          example: '9876543210'
      responses:
        '200':
          description: >-
            The plans of the operator. The `plans` list is empty when no plans
            are available.
          headers:
            x-api-version:
              $ref: '#/components/headers/x-api-version'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: >-
                      The status of the API call. Returns `OK` when the request
                      is processed.
                    example: OK
                  message:
                    type: string
                    description: A message describing the result.
                    enum:
                      - Recharge plans fetched successfully
                      - >-
                        No recharge plans are available for this operator right
                        now
                  data:
                    type: object
                    properties:
                      operator:
                        type: string
                        description: The operator code that the plans belong to.
                        example: JIO
                      plans:
                        type: array
                        description: The plans of the operator.
                        items:
                          type: object
                          properties:
                            plan_id:
                              type: string
                              nullable: true
                              description: >-
                                The operator's ID for the plan, when the
                                operator provides one. To buy a plan, send its
                                `amount` in the Recharge Request API, which does
                                not take `plan_id`.
                              example: BDATL200
                            amount:
                              type: number
                              description: The price of the plan in INR.
                              example: 349
                            validity:
                              type: string
                              nullable: true
                              description: How long the plan lasts, as text.
                              example: 28 Days
                            talktime:
                              type: string
                              nullable: true
                              description: >-
                                The talktime that the plan gives, or `NA` when
                                it gives none.
                              example: NA
                            description:
                              type: string
                              nullable: true
                              description: >-
                                The full description of the plan. It comes from
                                the operator and can contain line breaks and
                                links, so show it as plain text, not HTML.
                            data:
                              type: string
                              nullable: true
                              description: A short summary of the plan's data benefit.
                              example: Unlimited 5G + 2 GB/day
                            voice:
                              type: string
                              nullable: true
                              description: A short summary of the plan's calling benefit.
                              example: Unlimited Calls
                            sms:
                              type: string
                              nullable: true
                              description: A short summary of the plan's SMS benefit.
                              example: 100 /day
                            benefits:
                              type: array
                              nullable: true
                              description: >-
                                The additional benefits of the plan, such as
                                subscriptions.
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    description: The name of the benefit.
                                    example: JioTV
                                  heading:
                                    type: string
                                    description: The heading to show for the benefit.
                                  sub_heading:
                                    type: string
                                    description: A line that describes the benefit.
                            tag_label:
                              type: string
                              nullable: true
                              description: A short highlight that you can show on the plan.
                              example: 5G + JioHotstar + Canva Pro Lite
                            category:
                              type: string
                              nullable: true
                              description: The category that the plan is listed under.
                              example: Popular
                            subcategory:
                              type: string
                              nullable: true
                              description: >-
                                The subcategory of the plan within its category.
                                `null` when the operator sends no subcategory.
                                Some operators send `NA` instead.
                            location:
                              type: string
                              nullable: true
                              description: Where the plan is valid.
                              example: All Circles
                            status:
                              type: string
                              nullable: true
                              description: The status of the plan.
                              example: ACTIVE
                            top_plan:
                              type: string
                              nullable: true
                              description: >-
                                Whether the operator marks the plan as a top
                                plan. `Y` or `N`.
                              example: 'N'
              examples:
                jio_plans:
                  summary: Jio plans
                  value:
                    status: OK
                    message: Recharge plans fetched successfully
                    data:
                      operator: JIO
                      plans:
                        - plan_id: null
                          amount: 349
                          validity: 28 Days
                          talktime: NA
                          description: >-
                            Jio Special benefits: True 5G Unlimited Plan +
                            JioHotstar Mobile + Canva Pro Lite | Data: Unlimited
                            5G + 2 GB/day | Voice: Unlimited Calls | SMS: 100
                            SMS/day | Validity: 28 Days
                          data: Unlimited 5G + 2 GB/day
                          voice: Unlimited Calls
                          sms: 100 /day
                          benefits:
                            - name: JioTV
                              heading: JioTV (Your daily dose of entertainment)
                              sub_heading: >-
                                A wide range of TV channels across languages and
                                genres
                            - name: JioHotstar
                              heading: JioHotstar
                              sub_heading: Live cricket, sports, movies and TV shows
                          tag_label: 5G + JioHotstar + Canva Pro Lite
                          category: Popular
                          subcategory: null
                          location: All Circles
                          status: null
                          top_plan: null
                airtel_plans:
                  summary: Airtel plans
                  value:
                    status: OK
                    message: Recharge plans fetched successfully
                    data:
                      operator: AIRTEL
                      plans:
                        - plan_id: BDATL200
                          amount: 200
                          validity: 28 Days
                          talktime: NA
                          description: >-
                            Unlimited calls, 2 GB data per day and 100 SMS per
                            day for 28 days
                          data: null
                          voice: null
                          sms: null
                          benefits: null
                          tag_label: null
                          category: Truly Unlimited
                          subcategory: NA
                          location: null
                          status: ACTIVE
                          top_plan: 'N'
                no_plans:
                  summary: No plans available
                  value:
                    status: OK
                    message: >-
                      No recharge plans are available for this operator right
                      now
                    data:
                      operator: JIO
                      plans: []
        '400':
          description: Bad request error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                operator_missing:
                  summary: operator is missing
                  value:
                    message: operator is required
                    code: request_failed
                    type: invalid_request_error
                operator_not_supported:
                  summary: operator is not supported
                  value:
                    message: operator must be one of AIRTEL, JIO, VI
                    code: request_failed
                    type: invalid_request_error
                mobile_number_required:
                  summary: mobile_number is missing for Airtel or Vi
                  value:
                    message: >-
                      mobile_number is required and must be a valid indian
                      mobile number for operator AIRTEL
                    code: request_failed
                    type: invalid_request_error
        '401':
          description: Authentication Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '403':
          description: >-
            Your account is not set up for recharges, or its recharge access is
            switched off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                institution_not_found:
                  summary: Recharge is not set up for your account
                  value:
                    message: Recharge is not enabled for this account
                    code: request_failed
                    type: invalid_request_error
        '429':
          description: Rate Limit Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitResponse'
        '500':
          description: Internal Server Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
        '503':
          description: The service is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                temporarily_unavailable:
                  summary: Plans are temporarily unavailable
                  value:
                    message: Recharge plans are unavailable, please retry
                    code: request_failed
                    type: api_error
      x-codeSamples:
        - lang: cURL
          label: Jio plans
          source: |-
            curl --request GET \
              --url 'https://sandbox.cashfree.com/bbps/cou/v1/recharge/plans?operator=JIO' \
              --header 'x-api-version: 2025-01-01' \
              --header 'x-client-id: <api-key>' \
              --header 'x-client-secret: <api-key>'
        - lang: cURL
          label: Airtel or Vi plans
          source: |-
            curl --request GET \
              --url 'https://sandbox.cashfree.com/bbps/cou/v1/recharge/plans?operator=AIRTEL&mobile_number=9876543210' \
              --header 'x-api-version: 2025-01-01' \
              --header 'x-client-id: <api-key>' \
              --header 'x-client-secret: <api-key>'
components:
  headers:
    x-api-version:
      schema:
        type: string
        format: YYYY-MM-DD
        enum:
          - '2025-01-01'
      description: >-
        The API version used to process this request, echoed back in the
        response.
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A description of the error explaining what went wrong.
        code:
          type: string
          description: >-
            An error code for the failure. Use the HTTP status code and the
            `message` to decide how to handle an error.
        type:
          type: string
          description: The category of the error indicating the class of failure.
    UnauthorizedResponse:
      type: object
      properties:
        message:
          type: string
          description: A description of the error explaining what went wrong.
          example: authentication Failed
        code:
          type: string
          description: >-
            An error code identifying the specific failure. Use this to handle
            errors programmatically.
          example: request_failed
        type:
          type: string
          description: The category of the error indicating the class of failure.
          example: authentication_error
    RateLimitResponse:
      type: object
      properties:
        message:
          type: string
          description: A description of the error explaining what went wrong.
          example: Too many requests from IP. Check headers
        code:
          type: string
          description: >-
            An error code identifying the specific failure. Use this to handle
            errors programmatically.
          example: request_failed
        type:
          type: string
          description: The category of the error indicating the class of failure.
          example: rate_limit_error
    InternalServerErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: A description of the error explaining what went wrong.
          example: internal Server Error
        code:
          type: string
          description: >-
            An error code identifying the specific failure. Use this to handle
            errors programmatically.
          example: internal_error
        type:
          type: string
          description: The category of the error indicating the class of failure.
          example: api_error
  securitySchemes:
    XClientID:
      type: apiKey
      in: header
      name: x-client-id
      description: >-
        Your unique client identifier issued by Cashfree. You can find this in
        your [Merchant
        Dashboard](https://merchant.cashfree.com/verificationsuite/developers/api-keys).
    XClientSecret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Your unique client secret issued by Cashfree. Keep this confidential and
        never expose it in client-side code. You can find this in your [Merchant
        Dashboard](https://merchant.cashfree.com/verificationsuite/developers/api-keys).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.