> ## Documentation Index
> Fetch the complete documentation index at: https://developer.sandbox.co.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Get income tax challan

> Get the details and payment status of an income tax challan by its CRN, including the BSR code and challan serial number after payment.

> [!NOTE]
>
> This endpoint is in development. The request and response can change before release.

Send the taxpayer access token from [Verify OTP](https://developer.sandbox.co.in/api-reference/it/compliance/tax-payment/endpoints/verify-otp.md) in the `Authorization` header. You can fetch any challan of the PAN in the token, including challans created on the e-Filing portal.

When `data.status` is `paid`, use `data.payment.bsr_code`, `data.payment.paid_date_epoch` and `data.payment.challan_serial` to report the tax paid in the income tax return.

To check only the payment status, without OTP verification, use [Get payment status](https://developer.sandbox.co.in/api-reference/it/compliance/tax-payment/endpoints/get-payment-status.md).


## OpenAPI

````yaml api-reference/it/compliance/openapi.json GET /it/compliance/portal/public/tax-payment/challan/{crn}
openapi: 3.1.0
info:
  title: in-co-sandbox-it-compliance
  version: '1.0'
servers:
  - url: https://test-api.sandbox.co.in
    description: test
  - url: https://api.sandbox.co.in
    description: prod
security:
  - {}
paths:
  /it/compliance/portal/public/tax-payment/challan/{crn}:
    get:
      tags:
        - in.gov.incometax
        - public
        - tax-payment
        - challan
      summary: Get challan
      description: >-
        Get the details and payment status of a challan by its CRN. The challan
        must belong to the PAN in the taxpayer access token. You can fetch
        challans created with this API or on the e-Filing portal.


        For a paid challan, `data.payment` contains the BSR code, payment date,
        challan serial number and Challan Identification Number (CIN). Example
        data is fictional.
      operationId: getChallan
      parameters:
        - name: crn
          in: path
          description: Challan Reference Number (CRN) of the challan.
          required: true
          example: '26091000054321'
          schema:
            type: string
            pattern: ^[0-9]{14}$
        - name: Authorization
          in: header
          description: >-
            Taxpayer access token returned as `data.access_token` by [Verify
            OTP](https://developer.sandbox.co.in/api-reference/it/compliance/tax-payment/endpoints/verify-otp).
            Send the token without the `Bearer` prefix. The token identifies the
            PAN.
          required: true
          example: '{{tax_payer_access_token}}'
          schema:
            type: string
        - name: x-api-key
          in: header
          description: Sandbox API key.
          required: true
          example: '{{api_key}}'
          schema:
            type: string
        - name: x-api-version
          in: header
          description: >-
            API version, such as `1.0`. If you omit it, the latest version is
            used.
          required: false
          example: '1.0'
          schema:
            type: string
      responses:
        '200':
          description: The challan with its payment status.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 200
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  data:
                    type: object
                    properties:
                      '@entity':
                        type: string
                        enum:
                          - in.co.sandbox.it.compliance.tax_payment.challan
                      crn:
                        type: string
                        pattern: ^[0-9]{14}$
                        description: >-
                          Challan Reference Number (CRN). The 14-digit number
                          the Income Tax Department generates for a challan.
                        examples:
                          - '26110300012345'
                      pan:
                        type: string
                        pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$
                        description: Permanent Account Number (PAN) of the taxpayer.
                        examples:
                          - ABCPS1234K
                      name:
                        type: string
                        description: Name of the taxpayer as per PAN.
                      major_head:
                        type: string
                        pattern: ^[0-9]{4}$
                        description: >-
                          Major head of tax, such as `0020` (corporation tax) or
                          `0021` (income tax other than companies).
                      minor_head:
                        type: string
                        pattern: ^[0-9]{3}$
                        description: >-
                          Minor head (type of payment), such as `100` (advance
                          tax), `300` (self-assessment tax) or `400` (tax on
                          regular assessment).
                      assessment_year:
                        type: string
                        pattern: ^AY [0-9]{4}-[0-9]{2}$
                        description: >-
                          Assessment year. Present for challans under the
                          Income-tax Act, 1961.
                      tax_year:
                        type: string
                        pattern: ^TY [0-9]{4}-[0-9]{2}$
                        description: >-
                          Tax year. Present for challans under the Income-tax
                          Act, 2025.
                      total_amount:
                        type: integer
                        description: Total amount of the challan in INR.
                      tax_breakup:
                        type: object
                        description: Break-up of `total_amount` in INR.
                        properties:
                          basic_tax:
                            type: integer
                            description: Tax amount in INR, excluding surcharge and cess.
                          surcharge:
                            type: integer
                            description: Surcharge in INR.
                          health_and_education_cess:
                            type: integer
                            description: Health and education cess in INR.
                          interest:
                            type: integer
                            description: Interest in INR.
                          penalty:
                            type: integer
                            description: Penalty in INR.
                          others:
                            type: integer
                            description: Other amounts in INR, such as a late filing fee.
                        required:
                          - basic_tax
                          - surcharge
                          - health_and_education_cess
                          - interest
                          - penalty
                          - others
                      mode_of_payment:
                        type: string
                        enum:
                          - neft_or_rtgs
                          - net_banking
                          - debit_card
                          - credit_card
                          - upi
                          - payment_gateway
                          - pay_at_bank_counter
                        description: >-
                          Mode of payment selected for the challan. Challans
                          created on the e-Filing portal can use any mode;
                          challans created with this API use `neft_or_rtgs`.
                      status:
                        type: string
                        enum:
                          - payment_not_initiated
                          - payment_initiated
                          - paid
                          - payment_failed
                          - no_response_from_bank
                          - expired
                        description: >-
                          Payment status of the challan, as reported by the
                          Income Tax Department.


                          - `payment_not_initiated`: The challan is created and
                          no payment has been made.

                          - `payment_initiated`: A payment has started and the
                          bank has not confirmed it yet.

                          - `paid`: The payment is complete.

                          - `payment_failed`: The payment failed.

                          - `no_response_from_bank`: The bank has not confirmed
                          the payment. Check the status again later.

                          - `expired`: The challan expired before it was paid.
                          Create a new challan to pay.
                      created_date_epoch:
                        type: integer
                        format: int64
                        description: >-
                          Date the CRN was generated, in epoch milliseconds. The
                          calendar date is interpreted in Asia/Kolkata.
                      expiry_date_epoch:
                        type: integer
                        format: int64
                        description: >-
                          Last date to pay the challan, in epoch milliseconds.
                          The calendar date is interpreted in Asia/Kolkata.
                      beneficiary:
                        type: object
                        description: >-
                          Bank account to transfer the challan amount to by RTGS
                          or NEFT. Present when `mode_of_payment` is
                          `neft_or_rtgs`.
                        properties:
                          name:
                            type: string
                            description: >-
                              Beneficiary name to enter in the RTGS or NEFT
                              transfer.
                          account_number:
                            type: string
                            description: >-
                              Beneficiary account number. For income tax
                              challans, this is the CRN.
                          ifsc:
                            type: string
                            description: IFSC of the beneficiary account.
                          bank_name:
                            type: string
                            description: Name of the beneficiary bank.
                        required:
                          - name
                          - account_number
                          - ifsc
                          - bank_name
                      payment:
                        type: object
                        description: >-
                          Payment details. Present when `status` is `paid`. Use
                          `bsr_code`, `paid_date_epoch` and `challan_serial` to
                          report the payment in the income tax return.
                        properties:
                          paid_date_epoch:
                            type: integer
                            format: int64
                            description: >-
                              Date of payment in epoch milliseconds. The
                              calendar date is interpreted in Asia/Kolkata.
                          bank_name:
                            type: string
                            description: Bank through which the payment was received.
                          bsr_code:
                            type: string
                            description: >-
                              Basic Statistical Return (BSR) code of the bank
                              branch.
                          challan_serial:
                            type: string
                            description: >-
                              Five-digit challan serial number, including
                              leading zeroes.
                          challan_identification_number:
                            type: string
                            description: >-
                              Challan Identification Number (CIN): the BSR code,
                              the payment date in DDMMYYYY format and the
                              challan serial number.
                          bank_reference_number:
                            type: string
                            description: Bank reference number (BRN) of the payment.
                        required:
                          - paid_date_epoch
                          - bsr_code
                          - challan_serial
                          - challan_identification_number
                    required:
                      - '@entity'
                      - crn
                      - pan
                      - major_head
                      - minor_head
                      - total_amount
                      - tax_breakup
                      - mode_of_payment
                      - status
                      - expiry_date_epoch
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - data
              examples:
                Paid challan:
                  summary: Paid challan
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: 4b9d2e6f-8a3c-4f17-9e2b-5c7a0d1f3b85
                    data:
                      '@entity': in.co.sandbox.it.compliance.tax_payment.challan
                      crn: '26091000054321'
                      pan: ABCPS1234K
                      name: RAHUL SHARMA
                      major_head: '0021'
                      minor_head: '100'
                      tax_year: TY 2026-27
                      total_amount: 40000
                      tax_breakup:
                        basic_tax: 40000
                        surcharge: 0
                        health_and_education_cess: 0
                        interest: 0
                        penalty: 0
                        others: 0
                      mode_of_payment: neft_or_rtgs
                      status: paid
                      created_date_epoch: 1788978600000
                      expiry_date_epoch: 1790274600000
                      beneficiary:
                        name: ITD
                        account_number: '26091000054321'
                        ifsc: RBIS0CBDTER
                        bank_name: Reserve Bank of India
                      payment:
                        paid_date_epoch: 1789151400000
                        bank_name: Reserve Bank of India
                        bsr_code: '0123456'
                        challan_serial: '12345'
                        challan_identification_number: '01234561209202612345'
                        bank_reference_number: RBIN26255000123
                Unpaid challan:
                  summary: Unpaid challan
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: 8c5e1a4d-2f7b-4d69-b3a8-0e9c6f2d5a17
                    data:
                      '@entity': in.co.sandbox.it.compliance.tax_payment.challan
                      crn: '26110300012345'
                      pan: ABCPS1234K
                      name: RAHUL SHARMA
                      major_head: '0021'
                      minor_head: '100'
                      tax_year: TY 2026-27
                      total_amount: 25000
                      tax_breakup:
                        basic_tax: 25000
                        surcharge: 0
                        health_and_education_cess: 0
                        interest: 0
                        penalty: 0
                        others: 0
                      mode_of_payment: neft_or_rtgs
                      status: payment_not_initiated
                      created_date_epoch: 1793644200000
                      expiry_date_epoch: 1794940200000
                      beneficiary:
                        name: ITD
                        account_number: '26110300012345'
                        ifsc: RBIS0CBDTER
                        bank_name: Reserve Bank of India
        '400':
          description: >-
            The Income Tax Department did not return the challan, for example
            because the CRN belongs to another PAN. `message` contains the
            reason.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Challan not found:
                  summary: Challan not found
                  description: Fictional example data.
                  value:
                    code: 400
                    timestamp: 1793700000000
                    transaction_id: 0b5d9f3a-6e1c-4a78-8d4b-3f7e2a9c6d10
                    message: Portal rejected the challan request
        '401':
          description: The `Authorization` header is missing.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Missing taxpayer access token:
                  summary: Missing taxpayer access token
                  description: Fictional example data.
                  value:
                    code: 401
                    timestamp: 1793700000000
                    transaction_id: 6a2d8f5c-9e4b-4a13-8d7f-1b0e5c3a9f24
                    message: Unauthorized
        '403':
          description: >-
            The taxpayer access token or API key is invalid or expired, or the
            Income Tax Department ended the e-Pay Tax session. Generate and
            verify a new OTP to get a new token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Forbidden:
                  summary: Forbidden
                  description: Fictional example data.
                  value:
                    code: 403
                    timestamp: 1793700000000
                    transaction_id: a9f4c2e7-5d3b-4b19-b8a6-1e0c7f4d2b93
                    message: Forbidden
        '422':
          description: A required field is missing, or a value has the wrong format.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Invalid CRN:
                  summary: Invalid CRN
                  description: Fictional example data.
                  value:
                    code: 422
                    timestamp: 1793700000000
                    transaction_id: 2e7f9c3b-5d1a-48b4-a6e2-9f0b3c8d1e76
                    message: Invalid CRN format
        '429':
          description: The rate limit is exceeded. Retry after some time.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
        '500':
          description: The request could not be completed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Internal server error:
                  summary: Internal server error
                  description: Fictional example data.
                  value:
                    code: 500
                    timestamp: 1793700000000
                    transaction_id: e6b1d8a4-2c7f-4d56-9e3a-8b5f0d1c7e24
                    message: Failed to get challan
        '502':
          description: >-
            The connection to the Income Tax Department failed. Retry the
            request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Bad gateway:
                  summary: Bad gateway
                  description: Fictional example data.
                  value:
                    code: 502
                    timestamp: 1793700000000
                    transaction_id: 4c8e3b7d-9a1f-4e62-a5c9-0d6b3e8f2a71
                    message: Bad gateway
        '503':
          description: >-
            The Income Tax Department's service is temporarily unavailable.
            Retry after some time.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                  message:
                    type: string
                    description: Reason for the error.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - message
              examples:
                Source unavailable:
                  summary: Source unavailable
                  description: Fictional example data.
                  value:
                    code: 503
                    timestamp: 1793700000000
                    transaction_id: 9f2a6c1e-4d8b-4a35-8b7e-5c0f9a3d6e18
                    message: Source Unavailable
      deprecated: false

````

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