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

# Search GSTIN

> Get taxpayer and transporter details by passing the GSTIN. The data is fetched from the IRP database and not GST Network database.

#### Request body schema

<Card title="View request body schema" icon="code" href="https://raw.githubusercontent.com/in-co-sandbox/in-co-sandbox-docs/refs/heads/main/data/gst/schema/request/e-way-bill/search_gstin.json" arrow="true" horizontal />

#### Response schema

For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`.

<Card title="View JSON schema" icon="code" href="https://raw.githubusercontent.com/in-co-sandbox/in-co-sandbox-docs/refs/heads/main/data/gst/schema/request/e-way-bill/search_gstin_response.json" arrow="true" horizontal />


## OpenAPI

````yaml api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/tax-payer/gstin/search
openapi: 3.0.1
info:
  title: compliance
  description: >-
    **GST Compliance API** enables businesses to automate compliance
    requirements like [Taxpayer
    verification](https://developer.sandbox.co.in/reference/search-gstin-api),
    [GSTR
    Filing](https://developer.sandbox.co.in/reference/gst-taxpayer-authentication),
    [Generating
    E-Invoices](https://developer.sandbox.co.in/reference/e-invoice-authentication-api),
    and [E-Way
    Bills](https://developer.sandbox.co.in/reference/e-way-bill-authentication-api).We
    provide these APIs from GSTN-authorised GST Suvidha Providers, handling the
    encryption-decryption and signing so you don't have to handle the
    complexities.
  version: 1.0.0
servers:
  - url: https://api.sandbox.co.in
  - url: https://test-api.sandbox.co.in
security: []
tags:
  - name: Public
  - name: Taxpayer
  - name: Taxpayer Auth
  - name: Returns
  - name: GSTR-1 Documents
  - name: File GSTR-1
  - name: GSTR-2A Documents
  - name: GSTR-2B Document
  - name: File GSTR-3B
  - name: GSTR-4
  - name: File GSTR-9
  - name: Invoice Management System
  - name: GSTR-1A Documents
  - name: File GSTR-1A
  - name: Ledgers
  - name: e-Invoice
  - name: Sales e-Invoices for return period
  - name: Purchase e-Invoices for return period
  - name: Front Office Notices
  - name: Front Office
  - name: AATO
  - name: e-Invoice1
  - name: Authentication
  - name: e-Invoice12
  - name: E-Way Bill
  - name: E-Way Bill1
  - name: Authentication1
  - name: Consignor
  - name: Consolidated E-Way Bill
  - name: Multi-Vehicle Movement
  - name: Consignee
  - name: Transporter
  - name: Consolidated E-Way Bill1
  - name: Multi-vehicle Movement
  - name: Common
paths:
  /gst/compliance/e-way-bill/tax-payer/gstin/search:
    post:
      tags:
        - E-Way Bill1
        - Common
      summary: Search GSTIN
      operationId: searchGstin2
      parameters:
        - name: authorization
          in: header
          description: >-
            E-Way Bill access token. For token-generation steps, refer to the
            [Generate E-Way Bill
            Session](/recipes/gst/authentication/generate_e_way_bill_session)
            recipe, then pass the token in the authorization header.
          required: true
          example: ''
          schema:
            type: string
        - name: x-api-version
          in: header
          description: API version
          required: false
          example: ''
          schema:
            type: string
            default: 1.0.0
        - name: x-api-key
          in: header
          description: API key for identification
          required: true
          example: ''
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchEWayBillGstinRequest'
            examples:
              200 GSTIN details fetched:
                value:
                  gstin: 29AAACQ3770E000
                summary: 200 GSTIN details fetched
              325 Could not retrieve data:
                value:
                  gstin: 27DMOPD7318K2ZL
                summary: 325 Could not retrieve data
      responses:
        '200':
          description: 200 GSTIN details fetched / 325 Could not retrieve data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchEWayBillGstinResponse'
              examples:
                200 GSTIN details fetched:
                  summary: 200 GSTIN details fetched
                  value:
                    code: 200
                    data:
                      data:
                        address1: ''
                        address2: '560009'
                        blkStatus: ''
                        gstin: 29AAACQ3770E000
                        legalName: Acme Industries Private Limited
                        pinCode: '560009'
                        stateCode: '27'
                        status: ACT
                        tradeName: ''
                        txpType: REG
                      status: '1'
                    timestamp: 1763446641000
                    transaction_id: c882b9b8-08c4-4bb7-b0aa-9f61ef6c4d21
                325 Could not retrieve data:
                  summary: 325 Could not retrieve data
                  value:
                    code: 200
                    data:
                      error:
                        errorCodes: '325'
                      info: ''
                      status: '0'
                    timestamp: 1763446641000
                    transaction_id: 31de47c7-fcd6-4cf3-885b-b1c875f769a6
          headers: {}
      deprecated: false
      security: []
components:
  schemas:
    SearchEWayBillGstinRequest:
      type: object
      required:
        - gstin
      properties:
        gstin:
          type: string
          description: GSTIN of the taxpayer
      description: E-Way Bill schema.
    SearchEWayBillGstinResponse:
      oneOf:
        - $ref: '#/components/schemas/SearchEWayBillGstinSuccessResponse'
        - $ref: '#/components/schemas/EWayBillBusinessErrorResponse'
      description: >-
        An E-Way Bill success or NIC business-failure response. Both variants
        use HTTP 200.
    SearchEWayBillGstinSuccessResponse:
      allOf:
        - $ref: '#/components/schemas/EWayBillResponseMetadata'
        - type: object
          required:
            - data
          properties:
            data:
              type: object
              properties:
                data:
                  $ref: '#/components/schemas/SearchEWayBillGstinSuccessPayload'
                error:
                  type: object
                  properties:
                    errorCodes:
                      type: string
                      example: '325'
                info:
                  type: string
                  example: ''
                status:
                  type: string
                  example: '1'
                  enum:
                    - '1'
                  description: NIC success status.
    EWayBillBusinessErrorResponse:
      allOf:
        - $ref: '#/components/schemas/EWayBillResponseMetadata'
        - type: object
          required:
            - data
          properties:
            data:
              type: object
              required:
                - status
                - error
              properties:
                status:
                  type: string
                  enum:
                    - '0'
                  description: NIC business-failure status.
                error:
                  $ref: '#/components/schemas/EWayBillBusinessError'
    EWayBillResponseMetadata:
      type: object
      description: Metadata returned with every E-Way Bill response.
      required:
        - code
        - timestamp
        - transaction_id
      properties:
        code:
          type: integer
          enum:
            - 200
          description: NIC response code.
        timestamp:
          type: integer
          format: int64
          description: Unix timestamp.
        transaction_id:
          type: string
          description: Request transaction identifier.
    SearchEWayBillGstinSuccessPayload:
      type: object
      properties:
        address1:
          type: string
          example: ''
          description: The address1 value.
        address2:
          type: string
          example: '560009'
          description: The address2 value.
        blkStatus:
          type: string
          example: ''
          description: The blkStatus value.
        gstin:
          type: string
          example: 29AAACQ3770E000
          description: The gstin value.
        legalName:
          type: string
          example: Acme Industries Private Limited
          description: The legalName value.
        pinCode:
          type: string
          example: '560009'
          description: The pinCode value.
        stateCode:
          type: string
          example: '27'
          description: The stateCode value.
        status:
          type: string
          example: ACT
          description: The status value.
        tradeName:
          type: string
          example: ''
          description: The tradeName value.
        txpType:
          type: string
          example: REG
          description: The txpType value.
      description: E-Way Bill schema.
    EWayBillBusinessError:
      type: object
      description: NIC business-error details.
      required:
        - errorCodes
      properties:
        errorCodes:
          type: string
          description: NIC error code.

````