> ## 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 Recharge Status

> Use this API to get the current state of a recharge that you sent with the Recharge Request API. Pass the same `reference_id` that you used in the recharge request.

The response has the same fields as the Recharge Request response. Read `data.status`:

- `SUCCESS`: The recharge is done. `data.operator_ref` holds the operator's reference when the operator gives one.
- `FAILED`: The recharge did not go through. `data.failure_reason` says why. A failed recharge stays failed for that `reference_id`.
- `PROCESSING`: The recharge is still in progress.

## Status notifications

You are notified through the [`RECHARGE_STATUS` webhook](/api-reference/other-apis/bbps-cou/webhooks#recharge_status) when a recharge that was in progress is finalised.

## Error codes

The following table lists the error codes you may encounter when fetching the status of a recharge:

> [accordion] Error codes
>
> | Code | Description | Type | Status |
> | :- | :- | :- | :- |
> | `request_failed` | The `reference_id` query parameter is required but was not included in the request. Message: `reference_id is required` | `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` | No recharge exists with this `reference_id` for your account. Message: `Recharge not found` | `invalid_request_error` | 404 |
> | `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 get /bbps/cou/v1/recharge/status
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/status:
    get:
      tags:
        - Recharge
      summary: Fetch Recharge Status
      description: >-
        Use this API to get the current state of a recharge that you sent with
        the Recharge Request API. Pass the same `reference_id` that you used in
        the recharge request.


        The response has the same fields as the Recharge Request response. Read
        `data.status`:


        - `SUCCESS`: The recharge is done. `data.operator_ref` holds the
        operator's reference when the operator gives one.

        - `FAILED`: The recharge did not go through. `data.failure_reason` says
        why. A failed recharge stays failed for that `reference_id`.

        - `PROCESSING`: The recharge is still in progress.


        ## Status notifications


        You are notified through the [`RECHARGE_STATUS`
        webhook](/api-reference/other-apis/bbps-cou/webhooks#recharge_status)
        when a recharge that was in progress is finalised.
      operationId: fetchRechargeStatus
      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: reference_id
          required: true
          description: The `reference_id` that you sent in the recharge request.
          schema:
            type: string
          example: recharge_ref_001
      responses:
        '200':
          description: The recharge was found. Read `data.status` for its state.
          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` whenever the
                      recharge is found, whatever its state.
                    example: OK
                  message:
                    type: string
                    description: A message describing the result.
                    example: Recharge status fetched
                  data:
                    type: object
                    description: The recharge and its current state.
                    properties:
                      recharge_ref_id:
                        type: string
                        description: The Cashfree ID of the recharge.
                        example: RCH1732450001
                      reference_id:
                        type: string
                        description: The `reference_id` that you sent.
                        example: recharge_ref_001
                      status:
                        type: string
                        description: The state of the recharge.
                        enum:
                          - SUCCESS
                          - FAILED
                          - PROCESSING
                        example: SUCCESS
                      recharge_number:
                        type: string
                        description: The number that was recharged.
                        example: '9876543210'
                      operator:
                        type: string
                        description: The operator code.
                        example: JIO
                      amount:
                        type: number
                        description: The recharge amount, with 2 decimal places.
                        example: 299
                      operator_ref:
                        type: string
                        nullable: true
                        description: >-
                          The operator's reference for the recharge. `null` when
                          the operator has not given one.
                        example: JIO24112400123
                      failure_reason:
                        type: string
                        nullable: true
                        description: >-
                          Why the recharge failed, as free text. The value
                          depends on the cause, so do not match on it. Returned
                          only when the status is `FAILED`, and `null`
                          otherwise.
                        example: null
              examples:
                success:
                  summary: Recharge done
                  value:
                    status: OK
                    message: Recharge status fetched
                    data:
                      recharge_ref_id: RCH1732450001
                      reference_id: recharge_ref_001
                      status: SUCCESS
                      recharge_number: '9876543210'
                      operator: JIO
                      amount: 299
                      operator_ref: JIO24112400123
                      failure_reason: null
                processing:
                  summary: Recharge in progress
                  value:
                    status: OK
                    message: Recharge status fetched
                    data:
                      recharge_ref_id: RCH1732450001
                      reference_id: recharge_ref_001
                      status: PROCESSING
                      recharge_number: '9876543210'
                      operator: JIO
                      amount: 299
                      operator_ref: null
                      failure_reason: null
                failed:
                  summary: Recharge failed
                  value:
                    status: OK
                    message: Recharge status fetched
                    data:
                      recharge_ref_id: RCH1732450001
                      reference_id: recharge_ref_001
                      status: FAILED
                      recharge_number: '9876543210'
                      operator: JIO
                      amount: 299
                      operator_ref: null
                      failure_reason: Recharge could not be processed
        '400':
          description: Bad request error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missing_reference_id:
                  summary: reference_id is missing
                  value:
                    message: reference_id is required
                    code: request_failed
                    type: invalid_request_error
        '401':
          description: Authentication Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '404':
          description: No recharge exists with this `reference_id` for your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                recharge_not_found:
                  summary: Recharge not found
                  value:
                    message: Recharge not found
                    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'
      x-codeSamples:
        - lang: cURL
          label: Recharge status
          source: |-
            curl --request GET \
              --url 'https://sandbox.cashfree.com/bbps/cou/v1/recharge/status?reference_id=recharge_ref_001' \
              --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.