NPS-DL
This is the developer's corner to aid in integrating our RESTfull API into their apps. |
Contents
Interface
This is a REST API endpoint using HTTP GET.
Available to any device/server on the internet.
Usage
To use this endpoint you will need a valid API Key available after registration on NPS-CLOUD.
See our API documentation page for advance help and examples on using this endpoint.
Parameters
scan
The HEX encoded string of the South African Drivers Licence (SADL) PDF-417 barcode.
This HEX string shall begin with 019b0945000025...
Please see our example application on | GitHub for an example of how to convert from the PDF417 decoded binary format scan to the expected HEX value.
token
This is your NPS-CLOUD account access token (API Key) available under the NPS-API menu in your NPS-CLOUD account.
Output
We provide a JSON formatted output of the results available from this API endpoint.
User_IP
Client's IP address that was used to send the enquiry from.
EncryptionVersion
Returns the value set in the decrypted barcode.
BarcodeVersion
Returns the value set in the decrypted barcode.
Citizen
Returns the driver's citizen ISO code set in the decrypted barcode.
Initial
Driver's initial.
Surname
Driver's surname.
DOB
Driver's date of birth.
IDNo
Driver's ID Number.
IssuedBy
Issued state in ISO format.
LicNo
Driver's licence number.
Issued
Date the card was first issued.
ValidFrom
Date the card was issued/renewed.
ValidTo
Date the licence will expire.
Code
The driver's licence vehicle codes the driver is allowed to operate. ie Bike & car/truck types...
Licence1
The first licence vehicle code the driver may operate.
Licence2
The second licence vehicle code the driver may operate.
Unlock
Returns a true report if the user is allowed to inquire the drivers license details.
Return false if, for instance, the user's token credits have run out.
Version
The version of the API endpoint.
TokensLeft
Current token credits left for the API account.
Checks
Addition checks based on data in the decrypted barcode.
VehRestr
Shows if the driver has a vehicle type restriction linked to his driver's licence (manual, automatic etc.)
UserRestr
Shows if the driver has a restriction type linked to his driver's licence (glasses, prosthetics etc.)
PrDP
expired
The boolean value will be false if ValidTo date is past today's date else return true
age
The driver's age based on his ID number
gender
The driver's gender is based on his ID number
url
Full URL for decoded driver's photo.
'NOTE: The photo decoding takes a second or two to be served by the server please allow a delay before retrieving the image.
filename
The file path for decoded driver's photo.