Skip to main content

Qatar ID Back Extraction

Extracts the passport number, passport expiry and serial number from the back of a Qatar ID card.

POSThttps://sandbox/pcs/QatarId/back

Content-Type: application/json

Headers​

HeaderTypeRequiredDescription
keystringYesAPI key issued for authentication.

Request body​

FieldTypeRequiredDescription
recordIdstringYesUnique ID you assign to correlate the request with the response.
imagestringYesBase64 string / data URI of the Qatar ID back image.

Example​

POST/pcs/QatarId/back
curl --location 'https://sandbox/pcs/QatarId/back' \
--header 'key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "recordId": "1",
  "image": "data:image/png;base64,<BASE64_STRING>"
}'
200
{
"recordId": "1",
"data": {
  "passportNumber": "M2123456",
  "passportExpiry": "25/06/2029",
  "serialNo": "12444333222111"
},
"utc_time_stamp": "07/11/2024, 07:35:09"
}

Response​

FieldTypeDescription
recordIdstringEchoes the recordId sent in the request.
data.passportNumberstringHolder's passport number.
data.passportExpirystringPassport expiry date, DD/MM/YYYY.
data.serialNostringCard serial number.
utc_time_stampstringUTC 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.