StampMitraDevelopers
LiveVerification API

Verify PAN to Udyam

Verify a PAN to Udyam in real time.

Pricing, how it works and related APIs: PAN to Udyam product page. Integrate with AI: copy the ready-made prompt. Markdown version: pan-to-udyam.md.

Endpoint

POST /v1/verify/pan-to-udyam

POST/v1/verify/pan-to-udyamScope verification.pan_to_udyam.read₹5 per successful callLive

Validates 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

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
panrequiredstringPAN 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"
}
Response fields
FieldTypeDescription
referenceIdstringStampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result.
verificationIdstringStampMitra'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.
foundbooleanWhether an active Udyam registration was found for the PAN. Always present.
statusstringOutcome of the lookup: SUCCESS, UDYAM_NOT_FOUND or UDYAM_IS_CANCELLED.
panstringThe PAN the lookup was made for.
udyamstring or nullThe Udyam registration number linked to the PAN, at most one. null when no registration is linked.
udyamNumberstring or nullSame 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.