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

# Create income tax challan

> Create an income tax challan (CRN) for advance tax or self-assessment tax and get the RTGS or NEFT details to pay it.

> [!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. The challan is created for the PAN in the token.

## Choose the year field

Send one of these fields, based on the law the payment falls under:

| Payment | Field | Example |
| :- | :- | :- |
| Income-tax Act, 2025 (TY 2026-27 and later) | `tax_year` | `TY 2026-27` |
| Income-tax Act, 1961 (AY 2026-27 and earlier) | `assessment_year` | `AY 2026-27` |

## Pay the challan

1. Transfer exactly `data.total_amount` by RTGS or NEFT to the account in `data.beneficiary`, using its `account_number`, `ifsc` and `name`.
2. Complete the transfer before `data.expiry_date_epoch`. An expired challan can't be paid, so create a new one.
3. Confirm the payment with [Get challan](https://developer.sandbox.co.in/api-reference/it/compliance/tax-payment/endpoints/get-challan.md) or [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 POST /it/compliance/portal/public/tax-payment/challan
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:
    post:
      tags:
        - in.gov.incometax
        - public
        - tax-payment
        - challan
      summary: Create challan
      description: >-
        Create an income tax challan and get its Challan Reference Number (CRN).
        The challan is created for the PAN in the taxpayer access token, for
        payment by RTGS or NEFT.


        The response contains the CRN, the expiry date and the beneficiary
        account. Transfer exactly `data.total_amount` to the beneficiary account
        by RTGS or NEFT before `data.expiry_date_epoch`. Then use Get challan or
        Get payment status to confirm the payment.


        Send either `assessment_year` (Income-tax Act, 1961) or `tax_year`
        (Income-tax Act, 2025). Example data is fictional.
      operationId: createChallan
      parameters:
        - 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
        - name: Content-Type
          in: header
          description: Request body format.
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                '@entity':
                  type: string
                  enum:
                    - in.co.sandbox.it.compliance.tax_payment.challan.request
                major_head:
                  type: string
                  enum:
                    - '0020'
                    - '0021'
                  description: >-
                    Major head of tax. Use `0020` (corporation tax) for
                    companies and `0021` (income tax other than companies) for
                    all other taxpayers.
                minor_head:
                  type: string
                  enum:
                    - '100'
                    - '300'
                  description: >-
                    Minor head (type of payment). Use `100` for advance tax and
                    `300` for self-assessment tax.
                assessment_year:
                  type: string
                  pattern: ^AY [0-9]{4}-[0-9]{2}$
                  description: >-
                    Assessment year of the payment, for payments under the
                    Income-tax Act, 1961 (AY 2026-27 and earlier). Send either
                    `assessment_year` or `tax_year`, not both.
                  examples:
                    - AY 2026-27
                tax_year:
                  type: string
                  pattern: ^TY [0-9]{4}-[0-9]{2}$
                  description: >-
                    Tax year of the payment, for payments under the Income-tax
                    Act, 2025 (TY 2026-27 and later). Send either
                    `assessment_year` or `tax_year`, not both.
                  examples:
                    - TY 2026-27
                total_amount:
                  type: integer
                  minimum: 1
                  description: >-
                    Total amount to pay, in whole rupees. Must equal the sum of
                    the `tax_breakup` amounts.
                tax_breakup:
                  type: object
                  description: >-
                    Break-up of `total_amount` in whole rupees. The amounts must
                    add up to `total_amount`.
                  properties:
                    basic_tax:
                      type: integer
                      minimum: 0
                      description: Tax amount in INR, excluding surcharge and cess.
                    surcharge:
                      type: integer
                      minimum: 0
                      description: Surcharge in INR. Defaults to 0.
                    health_and_education_cess:
                      type: integer
                      minimum: 0
                      description: Health and education cess in INR. Defaults to 0.
                    interest:
                      type: integer
                      minimum: 0
                      description: Interest in INR. Defaults to 0.
                    penalty:
                      type: integer
                      minimum: 0
                      description: Penalty in INR. Defaults to 0.
                    others:
                      type: integer
                      minimum: 0
                      description: >-
                        Other amounts in INR, such as a late filing fee.
                        Defaults to 0.
                  required:
                    - basic_tax
                mode_of_payment:
                  type: string
                  enum:
                    - neft_or_rtgs
                  description: >-
                    Mode of payment. Only `neft_or_rtgs` is supported: pay the
                    challan by RTGS or NEFT using the beneficiary account in the
                    response.
              required:
                - '@entity'
                - major_head
                - minor_head
                - total_amount
                - tax_breakup
                - mode_of_payment
            examples:
              Advance tax:
                summary: Advance tax
                description: Advance tax for TY 2026-27 under the Income-tax Act, 2025.
                value:
                  '@entity': in.co.sandbox.it.compliance.tax_payment.challan.request
                  major_head: '0021'
                  minor_head: '100'
                  tax_year: TY 2026-27
                  total_amount: 25000
                  tax_breakup:
                    basic_tax: 25000
                  mode_of_payment: neft_or_rtgs
              Self-assessment tax:
                summary: Self-assessment tax
                description: >-
                  Self-assessment tax for AY 2026-27 under the Income-tax Act,
                  1961, with cess and interest.
                value:
                  '@entity': in.co.sandbox.it.compliance.tax_payment.challan.request
                  major_head: '0021'
                  minor_head: '300'
                  assessment_year: AY 2026-27
                  total_amount: 15850
                  tax_breakup:
                    basic_tax: 14500
                    surcharge: 0
                    health_and_education_cess: 580
                    interest: 770
                    penalty: 0
                    others: 0
                  mode_of_payment: neft_or_rtgs
              Amounts do not add up:
                summary: Amounts do not add up
                description: '`total_amount` does not equal the sum of `tax_breakup`.'
                value:
                  '@entity': in.co.sandbox.it.compliance.tax_payment.challan.request
                  major_head: '0021'
                  minor_head: '100'
                  tax_year: TY 2026-27
                  total_amount: 26000
                  tax_breakup:
                    basic_tax: 25000
                  mode_of_payment: neft_or_rtgs
              Expired taxpayer access token:
                summary: Expired taxpayer access token
                description: The taxpayer access token has expired.
                value:
                  '@entity': in.co.sandbox.it.compliance.tax_payment.challan.request
                  major_head: '0021'
                  minor_head: '100'
                  tax_year: TY 2026-27
                  total_amount: 25000
                  tax_breakup:
                    basic_tax: 25000
                  mode_of_payment: neft_or_rtgs
      responses:
        '200':
          description: >-
            The challan is created. Pay it using the beneficiary account before
            the expiry date.
          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:
                Advance tax:
                  summary: Advance tax
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: 9e4b2f7a-1c8d-4b53-a7e6-3f0d5c8b2a19
                    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
                Self-assessment tax:
                  summary: Self-assessment tax
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: b6c3a8f1-4e9d-42a7-9b5c-7a1e0f3d6c48
                    data:
                      '@entity': in.co.sandbox.it.compliance.tax_payment.challan
                      crn: '26110300012346'
                      pan: ABCPS1234K
                      name: RAHUL SHARMA
                      major_head: '0021'
                      minor_head: '300'
                      assessment_year: AY 2026-27
                      total_amount: 15850
                      tax_breakup:
                        basic_tax: 14500
                        surcharge: 0
                        health_and_education_cess: 580
                        interest: 770
                        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: '26110300012346'
                        ifsc: RBIS0CBDTER
                        bank_name: Reserve Bank of India
        '400':
          description: >-
            The Income Tax Department did not create the challan. `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 rejected:
                  summary: Challan rejected
                  description: Fictional example data.
                  value:
                    code: 400
                    timestamp: 1793700000000
                    transaction_id: 1a6f9c4e-7b2d-4e58-b9c3-4d0a8f5e2c61
                    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:
                Unauthorized:
                  summary: Unauthorized
                  description: Fictional example data.
                  value:
                    code: 401
                    timestamp: 1793700000000
                    transaction_id: 8d3b5f2a-9c7e-41a4-8f6d-2b9e0c4a7f13
                    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:
                Expired taxpayer access token:
                  summary: Expired taxpayer access token
                  description: Fictional example data.
                  value:
                    code: 403
                    timestamp: 1793700000000
                    transaction_id: f3a7c1e9-0b6d-4e28-a4f5-8c2b9d1e7a60
                    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:
                Amounts do not add up:
                  summary: Amounts do not add up
                  description: Fictional example data.
                  value:
                    code: 422
                    timestamp: 1793700000000
                    transaction_id: 1d8e5b3c-6f2a-4c91-b8d4-e2a7f9c0b563
                    message: total_amount must equal the sum of tax_breakup
        '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: 3f9e1c6b-4a8d-4c27-a3e5-7d1b6f0c9e82
                    message: Failed to create 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: c4a7e2d9-1f5b-4e83-9b0c-6e3a8d2f5b49
                    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: 7e2c8a5f-3b9d-4f61-a6e2-0c4b9f7d1a35
                    message: Source Unavailable
      deprecated: false

````

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