post https://uat-partner.payu.in/api/v3/merchants/kyc_document/aadhaar_xml_offline
This API is used to submit the Aadhaar details in an XML file. The access token is required on the header. For more information on getting the access token, refer to Get Token API.
Steps to get Aadhar XML
- Go to URL https://myaadhaar.uidai.gov.in/en_IN.
- Click on login. Enter Aadhaar Number or VID and mentioned Security Code in the screen, then click on Send OTP.
- Enter the OTP received by registered mobile number for the given Aadhaar Number
- Click on Offline Ekyc Option & enter a share code which will be the password for the ZIP file and click on the Download button.
- The Zip file containing the digitally signed XML will be downloaded.
Endpoints
Sample request
curl --location -g --request POST '{{onboarding_url}}/api/v3/merchants/kyc_document/ckyc_data' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"dob": "01-01-1990",
"merchant_id": "{{merchant_id}}"
}'
Sample request
{
"name": "Sardar Khan",
"gender": "M",
"dob": "1996-02-14",
"address": " rz-276,ph-2, gopal nagar, NAJAFGARH, South West Delhi, Delhi, India, 110043",
"pincode": 110043
}