Endpoint
POST /v1/verify/driving-license
POST
/v1/verify/driving-licenseScope verification.dl.read₹5 per successful callLiveValidates and verifies a Driving Licence. Requires the verification.dl.read scope on the API key. Metered as dl.verify 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/driving-license, 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. |
dlNumberrequired | string | Driving licence number. |
dobrequired | string | Date of birth (YYYY-MM-DD). |
Example
Make the call
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/driving-license" \
-H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"dlNumber":"MH1420110012345","dob":"1990-01-01"}'Playground
Try it
Response
Response example
ResponseJSON
{
"referenceId": "SMV-20260927-2Q56T8",
"verificationId": "VRF-4H8Z2M6TQ9KW",
"valid": true,
"dlNumber": "KA51201900089895",
"dob": "1994-08-05",
"status": "VALID",
"dlStatus": "VALID",
"name": "JOHN DOE",
"fatherOrHusbandName": "JOHN DOE",
"address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"validUpto": "09/05/2039",
"badgeDetails": [
{
"badgeIssueDate": null,
"badgeNo": null,
"classOfVehicle": [
"LMV"
]
}
],
"dlValidity": {
"nonTransport": {
"to": "09/05/2039",
"from": "10/05/2019"
},
"hazardousValidTill": null,
"transport": {
"to": null,
"from": null
},
"hillValidTill": null
},
"detailsOfDrivingLicence": {
"dateOfIssue": "10/05/2019",
"dateOfLastTransaction": null,
"status": null,
"lastTransactedAt": null,
"name": "JOHN DOE",
"fatherOrHusbandName": "JOHN DOE",
"addressList": [
{
"completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "permanent",
"splitAddress": {
"district": [
"BANGALORE"
],
"state": [
"KARNATAKA",
"KA"
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
},
{
"completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "temporary",
"splitAddress": {
"district": [
"BANGALORE"
],
"state": [
"KARNATAKA",
"KA"
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
}
],
"address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"photoUrl": "https://example.com/dl-photos/KA51201900089895.jpeg",
"splitAddress": {
"district": [
"BANGALORE"
],
"state": [
""
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"addressLine": "FLAT NO D-901 SUNCITY,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
},
"covDetails": []
}
}| 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. |
valid | boolean | Whether the driving licence is valid. Always present. |
dlNumber | string | The driving licence number that was looked up. |
dob | string | The licence holder's date of birth, ISO yyyy-mm-dd. |
status | string | Outcome of the lookup: VALID or INVALID. |
dlStatus | string | Same value as status. Kept so existing integrations keep working. |
name | string | The licence holder's registered name. Same as detailsOfDrivingLicence.name. Kept for existing integrations. |
fatherOrHusbandName | string | Name of the holder's father or husband. Same as detailsOfDrivingLicence.fatherOrHusbandName. Kept for existing integrations. |
address | string | The registered address as one string. Same as detailsOfDrivingLicence.address. Kept for existing integrations. |
validUpto | string | End of validity of the non-transport classes, a date string exactly as supplied (dd/mm/yyyy in the example). Same as dlValidity.nonTransport.to. Kept for existing integrations. |
badgeDetails | array or null | Transport badge details and the classes of vehicle covered. null when the record carries no badge block. |
badgeDetails[].badgeIssueDate | string or null | Date the transport badge was issued, as supplied. null when the licence has no badge. |
badgeDetails[].badgeNo | string or null | Transport badge number. null when the licence has no badge. |
badgeDetails[].classOfVehicle | array of string or null | Classes of vehicle the licence covers, for example LMV. |
dlValidity | object or null | Validity periods of the licence by class: non-transport, transport, hazardous goods and hill area. |
dlValidity.nonTransport | object or null | Validity of the non-transport (private vehicle) classes. |
dlValidity.nonTransport.to | string or null | End of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply. |
dlValidity.nonTransport.from | string or null | Start of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply. |
dlValidity.hazardousValidTill | string or null | Validity end for hazardous-goods vehicles, as supplied. null when not applicable. |
dlValidity.transport | object or null | Validity of the transport (commercial vehicle) classes. Both dates are null when the licence has no transport class. |
dlValidity.transport.to | string or null | End of the validity period, as supplied. null when the licence has no transport class. |
dlValidity.transport.from | string or null | Start of the validity period, as supplied. null when the licence has no transport class. |
dlValidity.hillValidTill | string or null | Validity end for hill-area driving, as supplied. null when not applicable. |
detailsOfDrivingLicence | object or null | Details held on the licence record: issue date, holder names, addresses, photograph link and class-of-vehicle details. |
detailsOfDrivingLicence.dateOfIssue | string or null | Date the licence was issued, a date string exactly as supplied (dd/mm/yyyy in the example). |
detailsOfDrivingLicence.dateOfLastTransaction | string or null | Date of the last transaction on the licence record, as supplied. null when there is none. |
detailsOfDrivingLicence.status | string or null | Status text on the licence record. null when the record carries none. |
detailsOfDrivingLicence.lastTransactedAt | string or null | Office where the last transaction was made. null when there is none. |
detailsOfDrivingLicence.name | string or null | Name of the licence holder. |
detailsOfDrivingLicence.fatherOrHusbandName | string or null | Name of the holder's father or husband. |
detailsOfDrivingLicence.addressList | array or null | Addresses on record, each with its type (permanent or temporary). |
detailsOfDrivingLicence.addressList[].completeAddress | string or null | The complete address as one string. |
detailsOfDrivingLicence.addressList[].type | string or null | Address type: permanent or temporary. |
detailsOfDrivingLicence.addressList[].splitAddress | object or null | The same address split into parts. |
detailsOfDrivingLicence.addressList[].splitAddress.district | array of string or null | District name(s). |
detailsOfDrivingLicence.addressList[].splitAddress.state | array of string or null | State name and code as one flat list. Can be [""] when the record carries no state. |
detailsOfDrivingLicence.addressList[].splitAddress.city | array of string or null | City or locality name(s). |
detailsOfDrivingLicence.addressList[].splitAddress.pincode | string or null | Six-digit PIN code. |
detailsOfDrivingLicence.addressList[].splitAddress.country | array of string or null | Country code(s) and name. |
detailsOfDrivingLicence.addressList[].splitAddress.addressLine | string or null | The address as one line. |
detailsOfDrivingLicence.address | string or null | The holder address as one string. |
detailsOfDrivingLicence.photoUrl | string or null | A link to the licence holder photograph (a URL, never image data). The link is temporary: download the image promptly if you need it. |
detailsOfDrivingLicence.splitAddress | object or null | The holder address split into parts. |
detailsOfDrivingLicence.splitAddress.district | array of string or null | District name(s). |
detailsOfDrivingLicence.splitAddress.state | array of string or null | State name and code as one flat list. Can be [""] when the record carries no state. |
detailsOfDrivingLicence.splitAddress.city | array of string or null | City or locality name(s). |
detailsOfDrivingLicence.splitAddress.pincode | string or null | Six-digit PIN code. |
detailsOfDrivingLicence.splitAddress.country | array of string or null | Country code(s) and name. |
detailsOfDrivingLicence.splitAddress.addressLine | string or null | The address as one line. |
detailsOfDrivingLicence.covDetails | array or null | Class-of-vehicle detail entries when the record carries any; an empty list otherwise. |
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": "dlNumber must match the format MH1420110012345",
"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 valid is optional and is omitted when the licensing data does not provide it; a value the licensing data holds as null (no badge, no transport class, no last transaction) is returned as null. validUpto, dlValidity and dateOfIssue are date strings exactly as supplied (dd/mm/yyyy in the example), so parse them defensively; dob is ISO yyyy-mm-dd. status and dlStatus carry the same value, and name, fatherOrHusbandName, address and validUpto repeat values from detailsOfDrivingLicence and dlValidity and are kept for existing integrations. photoUrl is a link to the holder photograph and is temporary.