Utility

Get GSTIN details

Changed on

v1 is deprecated — use the v2 endpoint instead. 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.

get/v1/utils/gstin/{gstin}

Request

  • Base URL
    https://app.getswipe.in/api/partner
  • URL
    https://app.getswipe.in/api/partner/v1/utils/gstin/{gstin}
  • Auth
    HTTP bearer

Response

success

successboolean

Success

messagestring

Message

error_codestring

Error Code

errorsobject

Error details

Example response

{
  "data": {
    "company_name": "XYZ Company",
    "trade_name": "XYZ Company",
    "legal_name": "XYZ Company",
    "billing": {
      "address_1": "123 Street",
      "address_2": "Apt 4B",
      "city": "City Name",
      "pincode": "123456",
      "state": "State Name"
    }
  }
}

Changes