Endpoint
POST /v1/verify/pan-to-udyam
POST
/v1/verify/pan-to-udyamScope verification.pan_to_udyam.read₹5 per successful callLiveValidates and verifies a PAN to Udyam. Requires the verification.pan_to_udyam.read scope on the API key. Metered as pan.to_udyam after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by /v1/verify/pan-to-udyam, including its referenceId field.
Request
Request parameters
| Field | Type | Description |
|---|---|---|
Authorizationrequired | header | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
panrequired | string | PAN to find the linked Udyam registration for, format ABCDE1234F. |
Example
Make the call
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/pan-to-udyam" \
-H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"pan":"ABCPV1234D"}'Playground
Try it
Response
Response example
ResponseJSON
{
"referenceId": "SMV-20260927-0A44B2",
"verificationId": "VRF-6N2P8W4RJ7ZK",
"found": true,
"status": "SUCCESS",
"pan": "ABCPV1234D",
"udyam": "UDYAM-MH-26-1234567",
"udyamNumber": "UDYAM-MH-26-1234567"
}| Field | Type | Description |
|---|---|---|
referenceId | string | StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. |
verificationId | string | StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests. |
found | boolean | Whether an active Udyam registration was found for the PAN. Always present. |
status | string | Outcome of the lookup: SUCCESS, UDYAM_NOT_FOUND or UDYAM_IS_CANCELLED. |
pan | string | The PAN the lookup was made for. |
udyam | string or null | The Udyam registration number linked to the PAN, at most one. null when no registration is linked. |
udyamNumber | string or null | Same value as udyam. Kept so existing integrations keep working. |
Errors
Error responses
401Missing or invalid API key
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid API key.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}403Valid key, missing required 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": "pan must match the format ABCDE1234F",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}402Insufficient wallet balance
{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient fulfilment wallet balance to cover this call.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}429Rate limited
{
"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 unreachable
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Unable to reach the order/customer service right now",
"requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
}
}Notes
Good to know
Note
Input format is validated up front - a malformed pan/gstin/etc. fails fast with a 400 rather than being submitted for verification. referenceId (format SMV-YYYYMMDD-XXXXXXX) is StampMitra's own transaction id for this call and is always present, including on a negative (valid: false / found: false) result - both positive and negative determinations are completed, billable verifications. This is not an idempotency key. verificationId (format VRF-XXXXXXXXXXXX) is StampMitra's own id for this verification, generated for every call; quote it in support requests. Every field except referenceId, verificationId and found is optional. udyam and udyamNumber always carry the same value, a registration number or null when none is linked; udyamNumber is kept for existing integrations. status is the registry outcome: SUCCESS, UDYAM_NOT_FOUND or UDYAM_IS_CANCELLED. A not-found answer is a completed, billable lookup.