Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token authentication using JWT token |
Content-Type | Yes | Must be set to multipart/form-data |
Parameter | Type | Required | Description |
---|---|---|---|
file | Image/Pdf | Yes | Image file of the UAE TRN document to be processed. Supported formats include JPG, JPEG, and PNG. |
use_pdf | Boolean | No | Only when input type is pdf |
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted information |
data.client_id | String | Unique identifier for this OCR request (format: ocr_uae_trn_[unique_string]) |
data.trn_number | String | The extracted Tax Registration Number from the document |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "ocr_uae_trn_iEBcSPREgljzzjllxIST",
"trn_number": "1005200000"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 400,
"success": false,
"message": "Invalid image file provided",
"message_code": "invalid_image"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/uae-trn' \
--header 'Authorization: Bearer TOKEN' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_uae_trn_iEBcSPREgljzzjllxIST",
"trn_number": "1005200000"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}