- Verify Aadhaar via DigiLocker : Secure, government-approved verification through DigiLocker with user consent.
- Verify Aadhaar via OCR : Document image processing using optical character recognition technology and QR code scanning.
Verify Aadhaar via DigiLocker
DigiLocker verification offers the most secure and user-friendly method for Aadhaar verification. This government-approved platform allows users to share their verified Aadhaar documents directly from their DigiLocker account with explicit consent.Key benefits and features
Cashfree’s Aadhaar DigiLocker verification offers the following benefits:- Enhanced security: No need to share physical documents or sensitive information with built-in fraud protection.
- Multi-document retrieval: Access PAN, Aadhaar, and Driving License documents in a single authentication flow without separate verification requests.
- Simplified authentication: Users authenticate with mobile number and OTP verification, removing password and captcha requirements for streamlined onboarding.
- Regulatory compliance: Compliant with Digital Personal Data Protection Act (DPDPA), 2023 through user consent-based verification.
- DigiLocker SDK availability: Cashfree offers a dedicated DigiLocker SDK, enabling faster integration and simplified implementation.
Integration workflow
To integrate DigiLocker verification into your application, follow these steps:- Use the Verify DigiLocker Account API to check if the user has an existing DigiLocker account.
- Use the Create DigiLocker Link API to generate a secure authentication link.
- Redirect the user to the generated DigiLocker link to log in and provide document sharing consent.
- Use the Get Verification Status API to monitor the verification progress.
- Use the Get Document API to retrieve the verified Aadhaar document and user details.
- Configure webhook endpoints to receive real-time status updates throughout the verification process.
Verify Aadhaar via OCR
OCR verification allows you to verify Aadhaar information by processing document images. This method uses OCR technology to extract text from images or scanned documents and convert it to machine-readable format.Key benefits and features
Cashfree’s Aadhaar OCR verification offers the following benefits:- High extraction accuracy: Advanced OCR technology delivers over 99% accuracy for clearly visible document fields including name, gender, DOB, and address.
- QR code cross-verification: Identity verification through UIDAI database-sourced QR code data with cross-validation against extracted text.
- Quality checks: Automated detection of image quality issues such as blur, glare, and poor lighting to nudge users to upload higher quality documents, improving extraction accuracy.
- Forgery detection: Comprehensive fraud prevention covering all types of forgery checks, trained on large datasets to detect and prevent forged document submissions.
- Automatic document detection: Intelligent classification to determine whether the submitted document is an Aadhaar card and identify front/back sides automatically.
- Flexible input: Support for various image formats and document types with automated processing.
Extraction accuracy and quality assurance
The Aadhaar OCR (part of Smart OCR) delivers extraction accuracy of over 99% for document fields that are clearly visible to the naked eye, including name, gender, DOB, and address, among others. The OCR includes multiple quality and forgery checks to help you classify the submission of the document and nudge your users accordingly. The forgery checks also ensure that the document submitted isn’t tampered with in any possible way.Quick response code verification and data validation
The solution scans the Aadhaar card’s QR code instantaneously and cross-verifies it with the extracted document details, ensuring higher data accuracy and minimising the possibilities of a forged Aadhaar submission.Quick response code verification features
Aadhaar documents contain secure QR codes with data sourced from UIDAI (Unique Identification Authority of India) database, offering superior identity verification capabilities.- UIDAI database integration: QR code data originates directly from the official UIDAI database, ensuring data authenticity and eliminating tampering risks.
- Dual verification approach: Cross-validate OCR-extracted text against QR code data to detect discrepancies and confirm document authenticity.
- Enhanced identity confirmation: Combination of visual text extraction and database-verified QR data creates a robust verification framework.
- Real-time data accuracy: QR codes contain the most current information from government records.
Fraud prevention and identity verification security
Aadhaar verification includes built-in security measures to detect and prevent identity fraud during the verification process.- Document authenticity validation: Smart OCR offers document tampering detection to identify forged or modified Aadhaar documents.
- Spoofing detection: Smart OCR automatically detects photos of screens and digitally imposed images to prevent submission of fraudulent documents.
- QR code verification: Advanced QR code scanning validates embedded security features in Aadhaar documents, cross-referencing with UIDAI database for data integrity.
- Real-time validation: Cross-reference extracted data against multiple validation points to detect inconsistencies and potential fraud attempts.
Next steps
Get started with DigiLocker verification
To get started with Cashfree’s DigiLocker verification, follow these steps:- Review the DigiLocker Integration Guide.
- Test the integration using Verify DigiLocker Account API.
- Check DigiLocker FAQs for common questions.
Get started with optical character recognition verification
To get started with Cashfree’s OCR verification, follow these steps:- Integrate Smart OCR API.
- Follow image upload guidelines for best results.
- Implement proper error handling for invalid documents.
FAQs
What Aadhaar verification methods does Cashfree offer?
What Aadhaar verification methods does Cashfree offer?
- DigiLocker verification: Secure, government-approved verification where users share documents directly from their DigiLocker account with consent
- OCR verification: Image-based verification using optical character recognition technology to extract details from uploaded Aadhaar documents
Which verification method should a business choose?
Which verification method should a business choose?
- Choose DigiLocker verification to prioritise security, compliance, and user experience. It’s government-verified, requires no document uploads, and is DPDPA compliant
- Choose OCR verification to handle physical documents or workflows that require image-based verification
What if a customer doesn't have a DigiLocker account?
What if a customer doesn't have a DigiLocker account?
- Creating a new DigiLocker account using their Aadhaar-linked mobile number
- Setting up a PIN for account security
- Providing consent to share their Aadhaar document
What happens if a customer's Aadhaar isn't linked to DigiLocker?
What happens if a customer's Aadhaar isn't linked to DigiLocker?
- Use the OCR verification method instead
- Advise the customer to link their Aadhaar to DigiLocker through the official DigiLocker website
- Check with the customer if they have an existing DigiLocker account with different credentials
Do I have to pay in advance, or can I pay after the Aadhaar verification is done?
Do I have to pay in advance, or can I pay after the Aadhaar verification is done?
What is OTP-based Aadhaar Verification?
What is OTP-based Aadhaar Verification?
Does Cashfree support OKYC (Offline KYC) for Aadhaar verification?
Does Cashfree support OKYC (Offline KYC) for Aadhaar verification?
- Smart OCR API - Extract and verify Aadhaar details from document images
- DigiLocker integration - Verify Aadhaar through government-backed DigiLocker platform
- Video KYC - Complete verification through live agent-assisted video calls
What all details can be verified through OTP-based Aadhaar Verification?
What all details can be verified through OTP-based Aadhaar Verification?
- Registered Name
How can you track if DigiLocker verification was successful?
How can you track if DigiLocker verification was successful?
- Real-time status checks: Use the Get Verification Status API to check current progress
- Webhook notifications: Receive instant updates when status changes (PENDING, AUTHENTICATED, EXPIRED, CONSENT_DENIED)
- Final document retrieval: Once successful, use the Get Document API to retrieve the verified Aadhaar details
How to handle blurry Aadhaar image uploads?
How to handle blurry Aadhaar image uploads?
- Ask the customer to retake the photo ensuring good lighting and focus
- Verify the Aadhaar number is clearly visible and not scratched or damaged
- Ensure the image captures the entire document without cutting off edges
- Avoid including other objects in the photo
Can you verify someone's Aadhaar using only their name?
Can you verify someone's Aadhaar using only their name?
- The complete 12-digit Aadhaar number for both DigiLocker and OCR verification methods
- User consent (explicit for DigiLocker, implied for OCR verification)
- Proper authentication through the respective verification flow
Is DigiLocker verification legally compliant for KYC requirements?
Is DigiLocker verification legally compliant for KYC requirements?
- Government-approved: DigiLocker is an official government platform
- DPDPA compliant: Meets Digital Personal Data Protection Act (DPDPA) 2023 requirements
- User consent-based: Explicit user consent is obtained before accessing documents
- Audit trail: Complete verification history is maintained for compliance
What details are accessible after successful Aadhaar verification?
What details are accessible after successful Aadhaar verification?
- Full name as registered
- Complete address
- Date of birth
- Gender
- Aadhaar number
- Father’s name (if available)
- Aadhaar number
- Name
- Address
- Other visible details from the document image
Is upfront payment required for Aadhaar verification services?
Is upfront payment required for Aadhaar verification services?
- Prepaid: Pay in advance and use credits for verification
- Postpaid: Pay after using the verification services based on usage
How secure is DigiLocker verification for privacy-conscious customers?
How secure is DigiLocker verification for privacy-conscious customers?
- Government-managed: DigiLocker is owned and operated by the Government of India
- Explicit consent: Documents are shared only after user provides clear consent
- No document storage: Cashfree doesn’t store physical document copies
- Secure transmission: All data transfers use encrypted channels
- Limited access: Only specific requested details are shared
What happens if verification fails or times out?
What happens if verification fails or times out?
- EXPIRED: Link expired (10-minute validity) - generate a new link
- CONSENT_DENIED: User rejected consent - try document processing method
- Network issues: Retry after some time or use alternative method
- Poor image quality: Request better quality images
- Invalid document: Verify it’s a genuine Aadhaar card
- Processing errors: Retry or contact support
Are there any volume limits for Aadhaar verification?
Are there any volume limits for Aadhaar verification?
- Rate limits: Standard API rate limits apply - contact support for higher limits
- Daily volumes: No specific daily caps, but enterprise customers get priority processing
- Concurrent requests: Multiple parallel verifications supported
- Bulk processing: Available for large-scale verification needs
What is the validity of the received OTP?
What is the validity of the received OTP?
How fast do verification results come back?
How fast do verification results come back?
- Initial API response: Immediate (URL generation)
- User completion time: 2-3 minutes (depends on user actions)
- Final document retrieval: 1-2 seconds after user consent
- Image upload processing: 30-60 seconds
- Data extraction: Near real-time
- Verification result: Within 1-2 minutes
Can verification be integrated into mobile applications?
Can verification be integrated into mobile applications?
- Use WebView or in-app browser to load DigiLocker consent URL
- Handle redirect URLs to capture completion status
- Optimised mobile interface provided by DigiLocker
- Camera integration for document capture
- Image quality validation before upload
- Real-time feedback for better user experience