> ## Documentation Index
> Fetch the complete documentation index at: https://developers.getswipe.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Get GSTIN details

> Looks up a GSTIN on the GST portal and returns the registered business's details. Useful for validating a party's GSTIN and prefilling their name and address.



## OpenAPI

````yaml get /v2/utils/gstin/{gstin}
openapi: 3.0.1
info:
  title: SwipeAPI
  version: '2.0'
  description: >-
    The Swipe Partner API — invoicing, payments, and GST compliance for your
    application. Create GST invoices and other documents, manage customers,
    vendors, products and inventory, record payments, and generate e-invoices
    and e-way bills.


    - Docs & guides: https://developers.getswipe.in

    - Quickstart: https://developers.getswipe.in/quickstart

    - Rate limit: 1 request/second per API key

    - All dates are DD-MM-YYYY
servers:
  - url: https://app.getswipe.in/api/partner
security:
  - bearerAuth: []
paths:
  /v2/utils/gstin/{gstin}:
    parameters:
      - name: gstin
        in: path
        description: GSTIN Number
        required: true
        schema:
          type: string
    get:
      tags:
        - Utility V2
      summary: Get GSTIN details
      description: >-
        Looks up a GSTIN on the GST portal and returns the registered business's
        details. Useful for validating a party's GSTIN and prefilling their name
        and address.
      operationId: get_utils
      responses:
        '200':
          description: success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GSTResponseModelV2'
        '400':
          description: error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GSTErrorModelV2'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GSTErrorModelV2'
        '500':
          description: Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GSTErrorModelV2'
components:
  schemas:
    GSTResponseModelV2:
      properties:
        success:
          type: boolean
          description: Success
          example: false
        message:
          type: string
          description: Message
          example: ''
        error_code:
          type: string
          description: Error Code
          example: ''
        errors:
          type: object
          description: Error details
        data:
          $ref: '#/components/schemas/GSTGetResponseV2'
      type: object
    GSTErrorModelV2:
      properties:
        success:
          type: boolean
          description: Success
          example: false
        message:
          type: string
          description: Message
          example: ''
        error_code:
          type: string
          description: Error Code
          example: ''
        errors:
          type: object
          description: Error details
        data:
          type: object
          description: Data
      type: object
    GSTGetResponseV2:
      properties:
        company_name:
          type: string
          description: Company Name
          example: XYZ Company
        trade_name:
          type: string
          description: Brand Name
          example: XYZ Company
        legal_name:
          type: string
          description: Legal Name
          example: XYZ Company
        status:
          type: string
          description: Status
        is_sez:
          type: boolean
          description: Sez
        is_ecom:
          type: boolean
          description: ECom
        billing:
          $ref: '#/components/schemas/BillingAddressV2'
      type: object
    BillingAddressV2:
      properties:
        address_1:
          type: string
          description: Address Line 1
          example: 123 Street
        address_2:
          type: string
          description: Address Line 2
          example: Apt 4B
        city:
          type: string
          description: City
          example: City Name
        pincode:
          type: string
          description: Pincode
          example: '123456'
        state:
          type: string
          description: State
          example: State Name
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is an API key from the [API
        Integration](https://app.getswipe.in/user?tab=api_integration) section
        of your dashboard. Keys are scoped to the company they are generated in
        — for testing, [add a separate test
        company](https://community.getswipe.in/t/how-to-add-new-company-on-web/1191)
        and generate the key there, so requests never touch your real books.

````