Malaysian Driving Licence Extraction
Extracts ID number, name, nationality, licence class, validity period and address from a Malaysian driving licence.
Content-Type: application/json
Headers
| Header | Type | Required | Description |
|---|---|---|---|
key | string | Yes | API key issued for authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
recordId | string | Yes | Unique ID you assign to correlate the request with the response. |
image | string | Yes | Base64 string / data URI of the driving licence image. |
Example
POST/pcs/MalaysianDL
curl --location 'https://sandbox/pcs/MalaysianDL' \
--header 'key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"recordId": "1",
"image": "data:image/png;base64,<BASE64_STRING>"
}'200
{
"status": "success",
"recordId": "1",
"data": {
"idNumber": "861234567890",
"name": "name-string",
"nationality": "MALAYSIA",
"Class": "B2D",
"validity": "23/04/2021-23/04/2026",
"address": "address-string"
},
"utc_time_stamp": "07/11/2024, 07:35:09"
}Response
| Field | Type | Description |
|---|---|---|
status | string | success when data was extracted. |
recordId | string | Echoes the recordId sent in the request. |
data.idNumber | string | Holder's identification number. |
data.name | string | Holder's name. |
data.nationality | string | Holder's nationality. |
data.Class | string | Licence class(es), e.g. B2D. |
data.validity | string | Validity period, DD/MM/YYYY-DD/MM/YYYY. |
data.address | string | Full address as printed on the licence. |
utc_time_stamp | string | UTC timestamp of the response, DD/MM/YYYY, HH:mm:ss. |
Error handling
200 on success, 422 on a validation error — see
Error handling for the common error shape.