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
| Field | Type | विवरण |
|---|---|---|
Authorizationज़रूरी | header | Bearer <api-key> (जैसे sandbox में sk_test_..., production में sk_live_...)। x-api-key header भी स्वीकार किया जाता है। |
gstinज़रूरी | string | 15 characters का GSTIN। |
businessName | string | Match करने के लिए 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"
}| Field | Type | Description |
|---|---|---|
referenceId | string | इस call के लिए StampMitra की अपनी transaction id (SMV-YYYYMMDD-XXXXXXX)। हमेशा मौजूद, negative result में भी। |
verificationId | string | इस verification की StampMitra की अपनी id (VRF- के बाद 12 base32 characters)। हर call के लिए नई बनती है और उसी call की होती है। हमेशा मौजूद। Support requests में यही बताएँ। |
gstin | string | जिस GSTIN को verify किया गया। हमेशा मौजूद; GSTIN न मिलने पर वही number जो आपने भेजा था। |
GSTIN | string | gstin जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है। |
valid | boolean | क्या GSTIN मौजूद और registered है। हमेशा मौजूद। |
legalNameOfBusiness | string | इस GSTIN पर registered business का legal name। |
tradeNameOfBusiness | string | Business का trade name, यदि हो। |
centerJurisdiction | string | Registration की central tax jurisdiction (range)। |
stateJurisdiction | string | Registration की state tax jurisdiction। |
dateOfRegistration | string | GST registration की तारीख, ISO yyyy-mm-dd। |
constitutionOfBusiness | string | Business की constitution (legal form), जैसे Public Limited Company। |
taxpayerType | string | Taxpayer type, जैसे Regular या Composition। |
gstinStatus | string | GST registration की स्थिति, जैसे Active। |
lastUpdateDate | string | Registration record आख़िरी बार कब update हुआ, ISO yyyy-mm-dd। |
natureOfBusinessActivities | array | Registration पर घोषित business activities का स्वरूप। |
principalPlaceAddress | string | Principal place of business, एक address string के रूप में। |
principalPlaceSplitAddress | object | Principal place of business, हिस्सों में बँटा हुआ। |
principalPlaceSplitAddress.buildingName | string | Building या premises का नाम। |
principalPlaceSplitAddress.street | string | Street / सड़क। |
principalPlaceSplitAddress.location | string | Locality / इलाका। |
principalPlaceSplitAddress.buildingNumber | string | Building या door number। |
principalPlaceSplitAddress.district | string | District / ज़िला। |
principalPlaceSplitAddress.state | string | State / राज्य। |
principalPlaceSplitAddress.city | string | City / शहर। |
principalPlaceSplitAddress.flatNumber | string | Flat / floor। |
principalPlaceSplitAddress.latitude | string | Latitude, string के रूप में, जैसा registry देती है वैसा ही। |
principalPlaceSplitAddress.longitude | string | Longitude, string के रूप में, जैसा registry देती है वैसा ही। |
principalPlaceSplitAddress.pincode | string | छह अंकों का PIN code। |
additionalAddresses | array | Registration पर दर्ज अतिरिक्त places of business। |
additionalAddresses[].address | string | अतिरिक्त place of business, एक address string के रूप में। |
additionalAddresses[].splitAddress | object | वही address, हिस्सों में बँटा हुआ। |
additionalAddresses[].splitAddress.buildingName | string | Building या premises का नाम। |
additionalAddresses[].splitAddress.street | string | Street / सड़क। |
additionalAddresses[].splitAddress.location | string | Locality / इलाका। |
additionalAddresses[].splitAddress.buildingNumber | string | Building या door number। |
additionalAddresses[].splitAddress.district | string | District / ज़िला। |
additionalAddresses[].splitAddress.state | string | State / राज्य। |
additionalAddresses[].splitAddress.city | string | City / शहर। |
additionalAddresses[].splitAddress.flatNumber | string | Flat / floor। |
additionalAddresses[].splitAddress.latitude | string | Latitude, string के रूप में, जैसा registry देती है वैसा ही। |
additionalAddresses[].splitAddress.longitude | string | Longitude, string के रूप में, जैसा registry देती है वैसा ही। |
additionalAddresses[].splitAddress.pincode | string | छह अंकों का PIN code। |
message | string | नतीजे का पढ़ने लायक संदेश, जैसे GSTIN Exists या GSTIN Doesn't Exist। |
legalName | string | legalNameOfBusiness जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है। |
tradeName | string | tradeNameOfBusiness जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है। |
registrationStatus | string | gstinStatus जैसा ही मान। मौजूदा integrations चलते रहें, इसलिए रखा गया है। |
principalPlaceOfBusiness | string | principalPlaceAddress जैसा ही मान। मौजूदा 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 के लिए रखे गए हैं।