StampMitraDevelopers
लाइवVerification API

GSTIN verify करें

GSTIN को real time में verify करें और पूरा registration record पाएँ।

Pricing, यह कैसे काम करता है और संबंधित APIs: GSTIN product पेज। Markdown version: gstin.md।

Endpoint

POST /v1/verify/gstin

POST/v1/verify/gstinScope verification.gstin.readप्रति सफल call ₹5 से शुरूलाइव

GSTIN को validate और verify करता है। API key पर verification.gstin.read scope ज़रूरी है। सफल response के बाद इसे gstin.verify के रूप में metered किया जाता है - usage तभी दर्ज होता है (और priced services के लिए fulfilment wallet तभी debit होता है) जब verification सफलतापूर्वक पूरा हो जाए। नीचे दिया गया response /v1/verify/gstin से लौटने वाला असली shape है, जिसमें referenceId field भी शामिल है।

Request

Request के parameters

Request के parameters
FieldTypeविवरण
Authorizationज़रूरीheaderBearer <api-key> (जैसे sandbox में sk_test_..., production में sk_live_...)। x-api-key header भी स्वीकार किया जाता है।
gstinज़रूरीstring15 characters का GSTIN।
businessNamestringMatch करने के लिए business का नाम।
उदाहरण

Call करके देखें

curl -X POST "https://api-b2b.stampmitra.in/v1/verify/gstin" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"gstin":"29AAICP2912R1ZR","businessName":"UJJIVAN SMALL FINANCE BANK LIMITED"}'
Playground

Try करें

Response

Response का उदाहरण

ResponseJSON
{
  "referenceId": "SMV-20260927-9K21P4",
  "verificationId": "VRF-4M8Q2T7XB9KD",
  "gstin": "29AAICP2912R1ZR",
  "GSTIN": "29AAICP2912R1ZR",
  "valid": true,
  "legalNameOfBusiness": "UJJIVAN SMALL FINANCE BANK LIMITED",
  "tradeNameOfBusiness": "UJJIVAN SMALL FINANCE BANK",
  "centerJurisdiction": "I-A RANGE",
  "stateJurisdiction": "GUWAHATI - A - 1",
  "dateOfRegistration": "2017-09-30",
  "constitutionOfBusiness": "Public Limited Company",
  "taxpayerType": "Regular",
  "gstinStatus": "Active",
  "lastUpdateDate": "2022-03-01",
  "natureOfBusinessActivities": [
    "Retail Business",
    "Supplier of Services",
    "Recipient of Goods or Services",
    "Office / Sale Office",
    "Others"
  ],
  "principalPlaceAddress": "First Floor 3512-DISPUR Prithivi Mansion opp. KFC building G.S. Road, Lachit Nagar Assam 781007",
  "principalPlaceSplitAddress": {
    "buildingName": "Prithivi Mansion",
    "street": "G.S. Road",
    "location": "Lachit Nagar",
    "buildingNumber": "3512-DISPUR",
    "district": "Guwahati",
    "state": "Assam",
    "city": "Dispur",
    "flatNumber": "First Floor",
    "latitude": "26.1445",
    "longitude": "91.7362",
    "pincode": "781007"
  },
  "additionalAddresses": [
    {
      "address": "Mirza Santipur NH-37 Dist-Kamrup Rural PS-Palashbari, PO  Mirza Kamrup Assam 781125",
      "splitAddress": {
        "buildingName": "",
        "street": "NH-37",
        "location": "Santipur, Mirza",
        "buildingNumber": "",
        "district": "Kamrup Rural",
        "state": "Assam",
        "city": "Palashbari",
        "flatNumber": "",
        "latitude": "26.0926",
        "longitude": "91.5069",
        "pincode": "781125"
      }
    },
    {
      "address": "N.A.C.C.I. Foundation 3559-Tezpur CHAMBER BHAWAN Binjraj Road, P. o. and P.S. - Tezpur, Dist. Binjraj Road, P. o. and P.S. - Tezpur, Dist. Sonitpur Assam 784154",
      "splitAddress": {
        "buildingName": "CHAMBER BHAWAN",
        "street": "Binjraj Road",
        "location": "Tezpur",
        "buildingNumber": "3559-Tezpur",
        "district": "Sonitpur",
        "state": "Assam",
        "city": "Tezpur",
        "flatNumber": "",
        "latitude": "26.6338",
        "longitude": "92.8006",
        "pincode": "784154"
      }
    }
  ],
  "message": "GSTIN Exists",
  "legalName": "UJJIVAN SMALL FINANCE BANK LIMITED",
  "tradeName": "UJJIVAN SMALL FINANCE BANK",
  "registrationStatus": "Active",
  "principalPlaceOfBusiness": "First Floor 3512-DISPUR Prithivi Mansion opp. KFC building G.S. Road, Lachit Nagar Assam 781007"
}
Response के fields
FieldTypeDescription
referenceIdstringइस call के लिए StampMitra की अपनी transaction id (SMV-YYYYMMDD-XXXXXXX)। हमेशा मौजूद, negative result में भी।
verificationIdstringइस verification की StampMitra की अपनी id (VRF- के बाद 12 base32 characters)। हर call के लिए नई बनती है और उसी call की होती है। हमेशा मौजूद। Support requests में यही बताएँ।
gstinstringजिस GSTIN को verify किया गया। हमेशा मौजूद; GSTIN न मिलने पर वही number जो आपने भेजा था।
GSTINstringgstin जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है।
validbooleanक्या GSTIN मौजूद और registered है। हमेशा मौजूद।
legalNameOfBusinessstringइस GSTIN पर registered business का legal name।
tradeNameOfBusinessstringBusiness का trade name, यदि हो।
centerJurisdictionstringRegistration की central tax jurisdiction (range)।
stateJurisdictionstringRegistration की state tax jurisdiction।
dateOfRegistrationstringGST registration की तारीख, ISO yyyy-mm-dd।
constitutionOfBusinessstringBusiness की constitution (legal form), जैसे Public Limited Company।
taxpayerTypestringTaxpayer type, जैसे Regular या Composition।
gstinStatusstringGST registration की स्थिति, जैसे Active।
lastUpdateDatestringRegistration record आख़िरी बार कब update हुआ, ISO yyyy-mm-dd।
natureOfBusinessActivitiesarrayRegistration पर घोषित business activities का स्वरूप।
principalPlaceAddressstringPrincipal place of business, एक address string के रूप में।
principalPlaceSplitAddressobjectPrincipal place of business, हिस्सों में बँटा हुआ।
principalPlaceSplitAddress.buildingNamestringBuilding या premises का नाम।
principalPlaceSplitAddress.streetstringStreet / सड़क।
principalPlaceSplitAddress.locationstringLocality / इलाका।
principalPlaceSplitAddress.buildingNumberstringBuilding या door number।
principalPlaceSplitAddress.districtstringDistrict / ज़िला।
principalPlaceSplitAddress.statestringState / राज्य।
principalPlaceSplitAddress.citystringCity / शहर।
principalPlaceSplitAddress.flatNumberstringFlat / floor।
principalPlaceSplitAddress.latitudestringLatitude, string के रूप में, जैसा registry देती है वैसा ही।
principalPlaceSplitAddress.longitudestringLongitude, string के रूप में, जैसा registry देती है वैसा ही।
principalPlaceSplitAddress.pincodestringछह अंकों का PIN code।
additionalAddressesarrayRegistration पर दर्ज अतिरिक्त places of business।
additionalAddresses[].addressstringअतिरिक्त place of business, एक address string के रूप में।
additionalAddresses[].splitAddressobjectवही address, हिस्सों में बँटा हुआ।
additionalAddresses[].splitAddress.buildingNamestringBuilding या premises का नाम।
additionalAddresses[].splitAddress.streetstringStreet / सड़क।
additionalAddresses[].splitAddress.locationstringLocality / इलाका।
additionalAddresses[].splitAddress.buildingNumberstringBuilding या door number।
additionalAddresses[].splitAddress.districtstringDistrict / ज़िला।
additionalAddresses[].splitAddress.statestringState / राज्य।
additionalAddresses[].splitAddress.citystringCity / शहर।
additionalAddresses[].splitAddress.flatNumberstringFlat / floor।
additionalAddresses[].splitAddress.latitudestringLatitude, string के रूप में, जैसा registry देती है वैसा ही।
additionalAddresses[].splitAddress.longitudestringLongitude, string के रूप में, जैसा registry देती है वैसा ही।
additionalAddresses[].splitAddress.pincodestringछह अंकों का PIN code।
messagestringनतीजे का पढ़ने लायक संदेश, जैसे GSTIN Exists या GSTIN Doesn't Exist।
legalNamestringlegalNameOfBusiness जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है।
tradeNamestringtradeNameOfBusiness जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है।
registrationStatusstringgstinStatus जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है।
principalPlaceOfBusinessstringprincipalPlaceAddress जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है।
Errors

Error responses

401API key missing या invalid
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
403Key valid है, पर ज़रूरी scope नहीं है
{
  "error": {
    "code": "FORBIDDEN",
    "message": "API key is valid but lacks the required scope for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
400Validation error
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "gstin must match the format 07AAAAA1111A1Z1",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
402Wallet balance अपर्याप्त
{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "Insufficient fulfilment wallet balance to cover this call.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
429Rate limit पार हो गई
{
  "error": {
    "code": "TOO_MANY_REQUESTS",
    "message": "Rate limit exceeded: 60 requests per 60 seconds for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
502Upstream verification service तक पहुँच नहीं हो पाई
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Unable to reach the order/customer service right now",
    "requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
  }
}
ध्यान दें

जानने लायक बातें

नोट

Input format पहले ही validate किया जाता है - गलत format वाला pan/gstin/आदि verification के लिए भेजे जाने के बजाय तुरंत 400 के साथ fail हो जाता है। referenceId (format SMV-YYYYMMDD-XXXXXXX) इस call के लिए StampMitra की अपनी transaction id है और हमेशा मौजूद रहती है, negative (valid: false / found: false) result में भी - positive और negative दोनों determinations पूरे, billable verifications हैं। यह idempotency key नहीं है। verificationId (format VRF-XXXXXXXXXXXX) इस verification की StampMitra की अपनी id है, जो हर call के लिए बनती है; support requests में यही बताएँ। referenceId, verificationId, gstin, GSTIN और valid के अलावा हर field optional है और registry के न देने पर response में नहीं आता। तारीखें ISO yyyy-mm-dd strings हैं; latitude और longitude strings हैं। जो GSTIN मौजूद नहीं है उस पर HTTP 200 के साथ valid false और message आता है, registration की कोई detail नहीं। GSTIN और gstin में, legalName और legalNameOfBusiness में, tradeName और tradeNameOfBusiness में, registrationStatus और gstinStatus में, तथा principalPlaceOfBusiness और principalPlaceAddress में एक ही मान होता है; पुराने नाम मौजूदा integrations के लिए रखे गए हैं।