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

# Register client

> Register a taxpayer who has no e-Filing account and send OTPs to their mobile number and email.

Use Register client for a taxpayer who has no e-Filing account. For a taxpayer who has one, use [Add client](https://developer.sandbox.co.in/api-reference/it/compliance/eri/client/endpoints/add-client.md).

The request body is a taxpayer object with `@entity` set to `com.quicko.it.tax_payer.individual`. Send `dob` in epoch milliseconds. The mobile number and email in `contact` are registered as the taxpayer's own.

Then call [Verify register client OTP](https://developer.sandbox.co.in/api-reference/it/compliance/eri/client/endpoints/verify-register-client-otp.md) with both OTPs and the transaction IDs from this response, `data.smsTransactionId` and `data.emailTransactionId`.


## OpenAPI

````yaml api-reference/it/compliance/openapi.json POST /it/compliance/eri/tax-payers/registration/otp
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/registration/otp:
    post:
      tags:
        - in.gov.incometax.eri
        - client
      summary: Register client
      description: >-
        Register a taxpayer who has no e-Filing account and add them as your
        client. The e-Filing portal sends one OTP to the mobile number and one
        to the email in the request.


        Pass both transaction IDs and both OTPs to Verify register client OTP.


        The API returns HTTP 200 even when the e-Filing portal rejects the
        request, so check `data.successFlag`. Example data is fictional.
      operationId: registerClient
      parameters:
        - 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
        - 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
              required:
                - '@entity'
                - pan
                - first_name
                - last_name
                - dob
                - gender
                - residential_status
                - contact
                - address
              properties:
                '@entity':
                  type: string
                  enum:
                    - com.quicko.it.tax_payer.individual
                pan:
                  type: string
                  pattern: ^[A-Z]{5}[0-9]{4}[A-Z]$
                  description: PAN of the taxpayer.
                  examples:
                    - ABCPS1234K
                first_name:
                  type: string
                  description: First name, as on the PAN.
                  examples:
                    - Rahul
                middle_name:
                  type: string
                  description: Middle name, as on the PAN.
                  examples:
                    - ''
                last_name:
                  type: string
                  description: Last name, as on the PAN.
                  examples:
                    - Sharma
                dob:
                  type: integer
                  format: int64
                  description: Date of birth in epoch milliseconds.
                  examples:
                    - 650658600000
                gender:
                  type: string
                  enum:
                    - male
                    - female
                residential_status:
                  type: string
                  enum:
                    - resident
                    - non_resident
                    - not_ordinarily_resident
                contact:
                  type: object
                  required:
                    - '@entity'
                    - mobile
                    - country_code
                    - email
                  description: >-
                    Mobile number and email to register. They are recorded as
                    the taxpayer's own.
                  properties:
                    '@entity':
                      type: string
                      enum:
                        - org.quicko.contact
                    mobile:
                      type: string
                      description: Mobile number, without the country code.
                      examples:
                        - '9876543210'
                    country_code:
                      type: string
                      description: Country calling code, without `+`.
                      examples:
                        - '91'
                    email:
                      type: string
                      format: email
                      description: Email address.
                      examples:
                        - rahul.sharma@example.com
                address:
                  type: object
                  required:
                    - '@entity'
                    - street
                    - area
                    - city
                    - district
                    - state
                    - postal_code
                    - country
                  description: Taxpayer's address.
                  properties:
                    '@entity':
                      type: string
                      enum:
                        - org.quicko.address
                    street:
                      type: string
                      description: Flat or house number, building and street.
                      examples:
                        - 12, Sunrise Apartments, CG Road
                    area:
                      type: string
                      description: Area or locality.
                      examples:
                        - Navrangpura
                    city:
                      type: string
                      description: City or town.
                      examples:
                        - Ahmedabad
                    district:
                      type: string
                      description: District.
                      examples:
                        - Ahmedabad
                    state:
                      type: string
                      description: State name, such as `Gujarat`.
                      examples:
                        - Gujarat
                    postal_code:
                      type: string
                      description: PIN code.
                      examples:
                        - '380009'
                    country:
                      type: string
                      description: Country name, such as `India`.
                      examples:
                        - India
            examples:
              Individual:
                summary: Individual
                description: Fictional example data.
                value:
                  '@entity': com.quicko.it.tax_payer.individual
                  pan: ABCPS1234K
                  first_name: Rahul
                  middle_name: ''
                  last_name: Sharma
                  dob: 650658600000
                  gender: male
                  residential_status: resident
                  contact:
                    '@entity': org.quicko.contact
                    mobile: '9876543210'
                    country_code: '91'
                    email: rahul.sharma@example.com
                  address:
                    '@entity': org.quicko.address
                    street: 12, Sunrise Apartments, CG Road
                    area: Navrangpura
                    city: Ahmedabad
                    district: Ahmedabad
                    state: Gujarat
                    postal_code: '380009'
                    country: India
      responses:
        '200':
          description: >-
            The e-Filing portal processed the request. When `data.successFlag`
            is `true`, the OTPs are sent.
          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.
                      smsTransactionId:
                        type: string
                        description: >-
                          Identifier of the mobile OTP. Pass it to Verify
                          register client OTP as `mobile_transaction_id`.
                      emailTransactionId:
                        type: string
                        description: >-
                          Identifier of the email OTP. Pass it to Verify
                          register client OTP as `email_transaction_id`.
                required:
                  - code
                  - timestamp
                  - transaction_id
                  - data
              examples:
                OTPs sent:
                  summary: OTPs sent
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: cde7b291-7020-5256-a60c-2dd7e8a153a7
                    data:
                      httpStatus: SUBMITTED
                      messages: []
                      errors: []
                      smsTransactionId: FOS000012345679
                      emailTransactionId: FOS000012345680
                      successFlag: true
                Mobile and email already in use:
                  summary: Mobile and email already in use
                  description: Fictional example data.
                  value:
                    code: 200
                    timestamp: 1793700000000
                    transaction_id: 956ae28f-f935-5861-95ad-3c127f6132ff
                    data:
                      httpStatus: REJECTED
                      messages: []
                      errors:
                        - code: EF00078
                          fieldName: pan
                          type: ERROR
                          desc: >-
                            This number and email id is already used for 5 PANs.
                            You cannot use same Mobile and Email Id for more
                            than 5 users.
                      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: 997d9f00-5a1d-56e0-8210-8233136d2986
                    message: Failed to generate otp
                Invalid request body:
                  summary: Invalid request body
                  description: Fictional example data.
                  value:
                    code: 400
                    timestamp: 1793700000000
                    transaction_id: 2848ac1a-cc27-519b-bcfe-537bc4d1de0c
                    message: Request body not valid
        '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: 9c83bfb6-1fbc-52db-9176-2821aa7a691b
                    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: 9b23d2a0-dd19-5233-acdd-08dcbde593fa
                    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: ef8e487b-590c-5252-8909-9daddd7316ec
                    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: adff38ea-68d3-5949-9af3-fa0e5ab11d59
                    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: 82c4f8f2-1a38-5f4a-be1f-5c1d376e59c1
                    message: Failed to generate otp
      deprecated: false

````

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