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

# Verify add client OTP

> Verify the OTP from Add client to add the taxpayer as your client.

Send the OTP the taxpayer received, the `data.transactionId` from [Add client](https://developer.sandbox.co.in/api-reference/it/compliance/eri/client/endpoints/add-client.md) and the same `source`. Set `valid_upto` to the date until which the taxpayer stays your client.

Once the taxpayer is your client, you can [fetch their prefill data](https://developer.sandbox.co.in/api-reference/it/compliance/eri/prefill/endpoints/generate-otp.md) and [validate](https://developer.sandbox.co.in/api-reference/it/compliance/eri/itr/endpoints/validate-itr.md) and [submit](https://developer.sandbox.co.in/api-reference/it/compliance/eri/itr/endpoints/submit-itr.md) their returns.


## OpenAPI

````yaml api-reference/it/compliance/openapi.json POST /it/compliance/eri/tax-payers/{tax_payer_id}/client/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}/client/otp/verify:
    post:
      tags:
        - in.gov.incometax.eri
        - client
      summary: Verify add client OTP
      description: >-
        Finish adding the taxpayer as your client with the OTP they received.
        Send the `data.transactionId` from Add client and the same `source`.


        When `data.successFlag` is `true`, the taxpayer is your client until
        `valid_upto`.


        The API returns HTTP 200 even when the e-Filing portal rejects the
        request, so check `data.successFlag`. Example data is fictional.
      operationId: verifyAddClientOtp
      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: otp
          in: query
          description: 6-digit OTP the taxpayer received.
          required: true
          example: '482913'
          schema:
            type: string
            pattern: ^[0-9]{6}$
        - name: source
          in: query
          description: Same `source` you sent to Add client.
          required: true
          example: itd
          schema:
            type: string
            enum:
              - itd
              - aadhaar
        - name: valid_upto
          in: query
          description: >-
            Date until which the taxpayer stays your client, in `DD/MM/YYYY`
            format.
          required: true
          example: 31/03/2027
          schema:
            type: string
            pattern: ^[0-9]{2}/[0-9]{2}/[0-9]{4}$
        - name: transaction_id
          in: query
          description: '`data.transactionId` from Add client.'
          required: true
          example: FOS000012345678
          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:
                Client added:
                  summary: Client added
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: adbe4ecd-34c4-547c-9dff-2ed56ec3314b
                    data:
                      httpStatus: ACCEPTED
                      messages: []
                      errors: []
                      successFlag: true
                Invalid request data:
                  summary: Invalid request data
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: dc5b984e-f953-500f-9ff4-8efc7c2f2336
                    data:
                      httpStatus: REJECTED
                      messages: []
                      errors:
                        - code: EF20123
                          fieldName: pan
                          type: ERROR
                          desc: Invalid Request Data
                      successFlag: false
        '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: 2c7724af-06c8-5411-901d-87d21554fed3
                    message: Failed to verify session
        '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: e379897e-7486-563e-9878-337a057514f9
                    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: c4fc90f2-7f07-570e-817c-bdcc31755549
                    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: e16bb948-5dc0-50ad-9c16-2ec21c363c06
                    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: f2726e08-24fe-5ee4-be20-2cd1f96ee700
                    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: 4adae0c5-3b65-505e-8779-f6249f871de2
                    message: Failed to verify session
      deprecated: false

````

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