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

# Validate EVC

> E-verify a filed income tax return with the Aadhaar OTP or EVC the taxpayer received.

Send the OTP or EVC in `otp`, with the same `assessment_year`, `form_code`, `verification_mode` and `acknowledgement_number` you sent to [Generate EVC](https://developer.sandbox.co.in/api-reference/it/compliance/eri/itr/endpoints/generate-evc.md). For `aadhaar`, also send `data.transactionId` from Generate EVC as `transaction_id`.

When `data.successFlag` is `true`, the return is e-verified. To check the return's status later, use [Get ITR lifecycle](https://developer.sandbox.co.in/api-reference/it/compliance/eri/itr/endpoints/get-itr-lifecycle.md).


## OpenAPI

````yaml api-reference/it/compliance/openapi.json POST /it/compliance/eri/tax-payers/{tax_payer_id}/itrs/e-verify/otp/verify
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/eri/tax-payers/{tax_payer_id}/itrs/e-verify/otp/verify:
    post:
      tags:
        - in.gov.incometax.eri
        - tax-payer
        - itr
      summary: Validate EVC
      description: >-
        E-verify a filed return with the Aadhaar OTP or EVC the taxpayer
        received. Send the same `verification_mode` you sent to Generate EVC.


        When `data.successFlag` is `true`, the return is e-verified.


        The API returns HTTP 200 even when the e-Filing portal rejects the
        request, so check `data.successFlag`. Example data is fictional.
      operationId: validateEvc
      parameters:
        - name: tax_payer_id
          in: path
          description: PAN of the taxpayer.
          required: true
          example: ABCPS1234K
          schema:
            type: string
            pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$
        - name: assessment_year
          in: query
          description: Assessment year as a 4-digit year, such as `2026` for AY 2026-27.
          required: true
          example: '2026'
          schema:
            type: string
            pattern: ^[0-9]{4}$
        - name: form_code
          in: query
          description: Number of the ITR form, such as `1` for ITR-1 or `4` for ITR-4.
          required: true
          example: '1'
          schema:
            type: string
            pattern: ^[1-7]$
        - name: verification_mode
          in: query
          description: >-
            Verification method: `aadhaar` for an OTP to the mobile number
            linked with Aadhaar, or `bank` or `demat` for an EVC through the
            taxpayer's EVC-enabled bank or demat account.
          required: true
          example: aadhaar
          schema:
            type: string
            enum:
              - aadhaar
              - bank
              - demat
        - name: acknowledgement_number
          in: query
          description: >-
            Acknowledgement number of the submitted return. Submit ITR returns
            it as `data.arnNumber`.
          required: true
          example: '123456789150726'
          schema:
            type: string
            pattern: ^[0-9]{15}$
        - name: otp
          in: query
          description: Aadhaar OTP or EVC the taxpayer received.
          required: true
          example: '417013'
          schema:
            type: string
        - name: transaction_id
          in: query
          description: >-
            `data.transactionId` from Generate EVC. Required when
            `verification_mode` is `aadhaar`.
          required: false
          example: '1793700000000:482913'
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            Sandbox access token. Send the token without the `Bearer` prefix.
            For token-generation steps, see the [Quickstart
            guide](https://developer.sandbox.co.in/guides/get-started/quickstart).
          required: true
          example: '{{access_token}}'
          schema:
            type: string
        - name: x-api-key
          in: header
          description: Sandbox API key.
          required: true
          example: '{{api_key}}'
          schema:
            type: string
      responses:
        '200':
          description: The e-Filing portal processed the request. Check `data.successFlag`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: HTTP status code.
                    examples:
                      - 200
                  timestamp:
                    type: integer
                    format: int64
                    description: Response timestamp in epoch milliseconds.
                    examples:
                      - 1793700000000
                  transaction_id:
                    type: string
                    description: Unique identifier for this API request.
                    examples:
                      - 8d3f6a2e-1b4c-4e7a-9f05-6c2b8e1d4a73
                  data:
                    type: object
                    description: Response from the e-Filing portal.
                    properties:
                      httpStatus:
                        type: string
                        description: >-
                          Status from the e-Filing portal, such as `ACCEPTED`,
                          `SUBMITTED` or `REJECTED`.
                      successFlag:
                        type: boolean
                        description: '`true` when the e-Filing portal accepted the request.'
                      messages:
                        type: array
                        description: Messages from the e-Filing portal.
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: e-Filing portal message code, such as `EF40010`.
                            type:
                              type: string
                              description: >-
                                Message type, such as `REMARK`, `INFO` or
                                `ERROR`.
                            desc:
                              type: string
                              description: Message text.
                            fieldName:
                              type:
                                - string
                                - 'null'
                              description: Field the message refers to, if any.
                      errors:
                        type: array
                        description: Errors and warnings from the e-Filing portal.
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: e-Filing portal message code, such as `EF40010`.
                            type:
                              type: string
                              description: >-
                                Message type, such as `REMARK`, `INFO` or
                                `ERROR`.
                            desc:
                              type: string
                              description: Message text.
                            fieldName:
                              type:
                                - string
                                - 'null'
                              description: Field the message refers to, if any.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - data
              examples:
                Return e-verified:
                  summary: Return e-verified
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: 2b607c0e-bfff-51e9-a494-576bae5c9d4b
                    data:
                      messages:
                        - code: OTP VALIDATED
                          fieldName: null
                          type: INFO
                          desc: OTP VALIDATED
                      successFlag: true
        '400':
          description: >-
            The e-Filing portal rejected the request as invalid, or a required
            parameter 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:
                Portal rejected the request:
                  summary: Portal rejected the request
                  description: Fictional example data.
                  value:
                    code: 400
                    timestamp: 1793700000000
                    transaction_id: e3f400e5-6162-5de4-afbc-04cc8e17de8b
                    message: Failed to verify EVC
        '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 Sandbox access token:
                  summary: Missing Sandbox access token
                  description: Fictional example data.
                  value:
                    code: 401
                    timestamp: 1793700000000
                    transaction_id: 9cc5ca14-8f76-5cac-9a43-e9ff32660af9
                    message: Unauthorized
        '403':
          description: The Sandbox access token or API key is invalid or expired.
          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: 6ffa1696-8659-5fd0-b0ad-bb53b6695c75
                    message: Forbidden
        '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: >-
            Sandbox could not complete the request, or could not open a session
            with the e-Filing portal. 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:
                Session unavailable:
                  summary: Session unavailable
                  description: Fictional example data.
                  value:
                    code: 500
                    timestamp: 1793700000000
                    transaction_id: e2c29d6d-b10d-5962-8340-a0446e60c927
                    message: >-
                      Unable to connect to the tax department. Please try again
                      shortly.
                Internal server error:
                  summary: Internal server error
                  description: Fictional example data.
                  value:
                    code: 500
                    timestamp: 1793700000000
                    transaction_id: 0df4aaf9-1d85-5044-a44f-9c4b8664b7e0
                    message: Internal Server Error
        '503':
          description: The e-Filing portal is 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:
                Portal unavailable:
                  summary: Portal unavailable
                  description: Fictional example data.
                  value:
                    code: 503
                    timestamp: 1793700000000
                    transaction_id: 3ce7af01-e078-5412-a928-6f0bc4920d2f
                    message: Failed to verify EVC
      deprecated: false

````

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