> ## 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 Operator Details

> Use this API to find the operator and telecom circle that a customer's mobile number belongs to. A telecom circle is the service area of a mobile network in India. Call it before you show recharge plans or send a recharge, so that you can pre-select the right operator for the customer.

Send the number as the customer typed it. The API keeps only the digits and drops leading zeros. If more than 10 digits remain and they start with `91`, the `91` country code is dropped. The result must be a 10-digit number that starts with 6, 7, 8, or 9.

<Note>
Always let the customer confirm or change the operator before they pay. Use the Fetch Operators API to build the list of operators to choose from.
</Note>

When the operator cannot be found, the API still returns HTTP 200. In that case `data.operator_code` is `null`, and you ask the customer to select the operator. Check `data.operator_code` on every response, and do not rely on the HTTP status code alone.

Use the `operator_code` from the response 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 operator details of a mobile number:

> [accordion] Error codes
>
> | Code | Description | Type | Status |
> | :- | :- | :- | :- |
> | `mobile_number_missing` | The `mobile_number` field is required but was not included in the request. Message: `mobile_number : is missing in the request. Value received: ` | `invalid_request_error` | 400 |
> | `request_failed` | The `mobile_number` is not a valid Indian mobile number. Message: `mobile_number is not a valid indian mobile number` | `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 |


## OpenAPI

````yaml openapi/bbps/recharge-cou.yaml post /bbps/cou/v1/recharge/fetch-operator-details
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/fetch-operator-details:
    post:
      tags:
        - Recharge Operators
      summary: Fetch Operator Details
      description: >-
        Use this API to find the operator and telecom circle that a customer's
        mobile number belongs to. A telecom circle is the service area of a
        mobile network in India. Call it before you show recharge plans or send
        a recharge, so that you can pre-select the right operator for the
        customer.


        Send the number as the customer typed it. The API keeps only the digits
        and drops leading zeros. If more than 10 digits remain and they start
        with `91`, the `91` country code is dropped. The result must be a
        10-digit number that starts with 6, 7, 8, or 9.


        <Note>

        Always let the customer confirm or change the operator before they pay.
        Use the Fetch Operators API to build the list of operators to choose
        from.

        </Note>


        When the operator cannot be found, the API still returns HTTP 200. In
        that case `data.operator_code` is `null`, and you ask the customer to
        select the operator. Check `data.operator_code` on every response, and
        do not rely on the HTTP status code alone.


        Use the `operator_code` from the response as the `operator` value in the
        Validate Recharge, Fetch Plans, and Recharge Request APIs.
      operationId: fetchRechargeOperatorDetails
      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'
      requestBody:
        description: Request parameters to fetch the operator details of a mobile number.
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - mobile_number
              properties:
                mobile_number:
                  type: string
                  description: >-
                    The customer's mobile number, as the customer typed it. The
                    API keeps only the digits and drops leading zeros. If more
                    than 10 digits remain and they start with `91`, the `91`
                    country code is dropped. The result must be a 10-digit
                    number that starts with 6, 7, 8, or 9.
                  example: '9876543210'
            examples:
              standard:
                summary: Plain 10-digit number
                value:
                  mobile_number: '9876543210'
              with_country_code:
                summary: Number with country code and spaces
                value:
                  mobile_number: +91 98765 43210
      responses:
        '200':
          description: >-
            The request was processed. Check `data.operator_code` to find out
            whether the operator was found.
          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, whether or not the operator was found.
                    example: OK
                  message:
                    type: string
                    description: A message describing the result.
                    enum:
                      - Operator details fetched successfully
                      - >-
                        Operator details are unavailable, ask the customer to
                        select the operator
                  data:
                    type: object
                    description: >-
                      The operator details of the mobile number. Every field
                      except `mobile_number` is `null` when the operator cannot
                      be found.
                    properties:
                      mobile_number:
                        type: string
                        description: >-
                          The mobile number after clean-up, exactly as it was
                          used for the lookup.
                        example: '9876543210'
                      operator:
                        type: string
                        nullable: true
                        description: >-
                          The operator's name, for display or logging only. Use
                          `operator_code` in the other recharge APIs.
                        example: Jio
                      operator_code:
                        type: string
                        nullable: true
                        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
                        nullable: true
                        description: The operator name to show to the customer.
                        example: Jio
                      circle:
                        type: string
                        nullable: true
                        description: The telecom circle that the number belongs to.
                        example: Delhi
              examples:
                operator_found:
                  summary: Operator found
                  value:
                    status: OK
                    message: Operator details fetched successfully
                    data:
                      mobile_number: '9876543210'
                      operator: Jio
                      operator_code: JIO
                      display_name: Jio
                      circle: Delhi
                operator_not_found:
                  summary: Operator not found, ask the customer to select it
                  value:
                    status: OK
                    message: >-
                      Operator details are unavailable, ask the customer to
                      select the operator
                    data:
                      mobile_number: '9876543210'
                      operator: null
                      operator_code: null
                      display_name: null
                      circle: null
        '400':
          description: Bad request error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_mobile_number:
                  summary: Not a valid Indian mobile number
                  value:
                    message: mobile_number is not a valid indian mobile number
                    code: request_failed
                    type: invalid_request_error
                missing_mobile_number:
                  summary: mobile_number is missing
                  value:
                    message: >-
                      mobile_number : is missing in the request. Value
                      received: 
                    code: mobile_number_missing
                    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'
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.