Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for authentication. Format: Bearer <JWT_TOKEN> |
| Content-Type | Yes | Must be set to multipart/form-data for file upload |
| Parameter | Type | Description |
|---|---|---|
| file | Image | Upload Cheque Image |
| strict | Boolean | Strict check |
| Parameter | Type | Description |
|---|---|---|
| base_64 | String | Cheque Image in Base64 format |
| Parameter | Type | Description |
|---|---|---|
| link | String | Cheque Image Link/URL |
# Multipart form data with file upload
# No JSON body example provided as this is a file upload endpoint| Parameter | Type | Description |
|---|---|---|
| message | String/null | Status message, null when successful |
| success | Boolean | Indicates if the request was successful |
| status_code | Integer | HTTP status code of the response |
| data | Object | Contains the extracted information |
| data.client_id | String | Unique identifier for the OCR request |
| data.micr | Object | Contains the extracted MICR code information |
| data.micr.value | String | The extracted MICR code value |
| data.micr.confidence | Integer | Confidence score (0-100) for the MICR extraction |
| data.account_number | Object | Contains the extracted account number information |
| data.account_number.value | String | The extracted account number |
| data.account_number.confidence | Integer | Confidence score (0-100) for the account number extraction |
| data.ifsc_code | Object | Contains the extracted IFSC code information |
| data.ifsc_code.value | String | The extracted IFSC code |
| data.ifsc_code.confidence | Integer | Confidence score (0-100) for the IFSC code extraction |
| message_code | String | Code indicating the status of the request |
{
"message": null,
"success": true,
"status_code": 200,
"data": {
"client_id": "ocr_cheque_qFwRweajrhOFLVbXhkxg",
"micr": {
"value": "C0001261C 110221232A 002123C",
"confidence": 75
},
"account_number": {
"value": "012305001234",
"confidence": 96
},
"ifsc_code": {
"value": "ICIC0000123",
"confidence": 92
}
},
"message_code": "success"
}{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/cheque' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"message": null,
"success": true,
"status_code": 200,
"data": {
"client_id": "ocr_cheque_qFwRweajrhOFLVbXhkxg",
"micr": {
"value": "C0001261C 110221232A 002123C",
"confidence": 75
},
"account_number": {
"value": "012305001234",
"confidence": 96
},
"ifsc_code": {
"value": "ICIC0000123",
"confidence": 92
}
},
"message_code": "success"
}