BharatOCR
BharatOCR to validate and extract all the relevant fields from a document.
NOTE - Sandbox environment will return mock response based on the passed document_type regardless of the kind of file passed. For actual response, please try our production environment.
Authorizations
Client ID. You can find your ID in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
Send the signature if IP is not whitelisted
API version to be used. Format is in YYYY-MM-DD
Body
Request parameters for BharatOCR.
It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphaumeric, period (.), hyphen (-), and underscore ( _ ) are allowed.
"test_verification_id"
Tag depicts the document type of the file being shared in the request. Allowed values are PAN, AADHAAR, DRIVING_LICENCE, VOTER_ID, PASSPORT, VEHICLE_RC, CANCELLED_CHEQUE, and INVOICE.
"PAN"
Image of the document. Allowed file types: JPEG, JPG, or PNG. The maximum file size is 5 MB. Conditionally required when image_url is missing.
Public URL of the image. Allowed only https URL. Allowed file types: JPEG, JPG, or PNG. The maximum file size is 5 MB. Conditionally required when the image is missing.
"https://linkofFile"
Indicates whether PAN verification should be performed (currently only PAN supported). When set to true
, validates PAN details including unique identifier, name, date of birth, etc. Helps with customer onboarding, KYC compliance, and fraud prevention.
"true"
Response
Success response for retrieving the list of information associated with the mobile number.
It is the unique ID shared by the merchant for each request.
"test_verification_id"
It displays the unique ID created by Cashfree Payments for document OCR reference purposes.
1358
The field will show the document_type shared or predicted if it is not shared in the request.
"VOTED_ID"
Structure with all the relevant fields in the input image.
Contains all the quality checks the product performs on the given input image.
It displays the personal information of the mobile number holder.
It displays the personal information of the mobile number holder.
Was this page helpful?