> ## 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 Operators

> Use this API to get the operators that your customers can recharge. Use it to fill the operator list on your recharge screen, and to let a customer change the operator that the Fetch Operator Details API suggested.

Pass `service_type` to get the operators of one type, or leave it out to get all operators. The value is not case-sensitive.

When there is no operator for the type that you ask for, the API still returns HTTP 200 with an empty `operators` list.

Use the `operator_code` of the operator that the customer selects as the `operator` value in the Validate Recharge, Fetch Plans, and Recharge Request APIs.

## Error codes

The following table lists the error codes you may encounter when fetching the list of operators you can recharge through:

> [accordion] Error codes
>
> | Code | Description | Type | Status |
> | :- | :- | :- | :- |
> | `request_failed` | The `service_type` is not `MOBILE` or `DTH`. Message: `service_type must be one of MOBILE, DTH` | `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 operators are unavailable, please retry` | `api_error` | 503 |


## OpenAPI

````yaml openapi/bbps/recharge-cou.yaml get /bbps/cou/v1/recharge/operators
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/operators:
    get:
      tags:
        - Recharge Operators
      summary: Fetch Operators
      description: >-
        Use this API to get the operators that your customers can recharge. Use
        it to fill the operator list on your recharge screen, and to let a
        customer change the operator that the Fetch Operator Details API
        suggested.


        Pass `service_type` to get the operators of one type, or leave it out to
        get all operators. The value is not case-sensitive.


        When there is no operator for the type that you ask for, the API still
        returns HTTP 200 with an empty `operators` list.


        Use the `operator_code` of the operator that the customer selects as the
        `operator` value in the Validate Recharge, Fetch Plans, and Recharge
        Request APIs.
      operationId: fetchRechargeOperators
      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: service_type
          required: false
          description: >-
            The type of recharge to list operators for. The value is not
            case-sensitive. Leave it out to get the operators of every type.
          schema:
            type: string
            enum:
              - MOBILE
              - DTH
          example: MOBILE
      responses:
        '200':
          description: >-
            The list of operators. The list is empty when no operator exists for
            the requested type.
          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.
                    example: Recharge operators fetched successfully
                  data:
                    type: object
                    properties:
                      operators:
                        type: array
                        description: The operators that you can recharge.
                        items:
                          type: object
                          properties:
                            operator_code:
                              type: string
                              description: >-
                                The operator code. Pass this value as `operator`
                                in the Validate Recharge, Fetch Plans, and
                                Recharge Request APIs.
                              example: JIO
                            display_name:
                              type: string
                              description: The operator name to show to the customer.
                              example: Jio
                            service_type:
                              type: string
                              description: The type of recharge that the operator supports.
                              enum:
                                - MOBILE
                                - DTH
                              example: MOBILE
              examples:
                mobile_operators:
                  summary: Mobile operators
                  value:
                    status: OK
                    message: Recharge operators fetched successfully
                    data:
                      operators:
                        - operator_code: AIRTEL
                          display_name: Airtel
                          service_type: MOBILE
                        - operator_code: JIO
                          display_name: Jio
                          service_type: MOBILE
                        - operator_code: VI
                          display_name: Vi
                          service_type: MOBILE
                no_operators:
                  summary: No operators for the requested type
                  value:
                    status: OK
                    message: Recharge operators fetched successfully
                    data:
                      operators: []
        '400':
          description: Bad request error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_service_type:
                  summary: service_type is not MOBILE or DTH
                  value:
                    message: service_type must be one of MOBILE, DTH
                    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: Operators are temporarily unavailable
                  value:
                    message: Recharge operators are unavailable, please retry
                    code: request_failed
                    type: api_error
      x-codeSamples:
        - lang: cURL
          label: All operators
          source: |-
            curl --request GET \
              --url https://sandbox.cashfree.com/bbps/cou/v1/recharge/operators \
              --header 'x-api-version: 2025-01-01' \
              --header 'x-client-id: <api-key>' \
              --header 'x-client-secret: <api-key>'
        - lang: cURL
          label: Mobile operators
          source: |-
            curl --request GET \
              --url 'https://sandbox.cashfree.com/bbps/cou/v1/recharge/operators?service_type=MOBILE' \
              --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.