Hi,
In the existing Prod flow of creating health ID using AADHAAR, we attempt to create an account without a PHR address to check and see if it gets linked to an existing account created with the mobile flow.
If it doesn’t, we make an edit profile call to add the health id where we use the token returned in create Health ID call.
In the new systems after the migration, the edit profile call is failing with an error :
Details entered by you does not match your Kyc Document.
What other way can be used to add the PHR Address to a newly created Health ID using Aadhaar based registration token?
Create Health ID
Request
curl --location --request POST 'https://healthidsbx.abdm.gov.in/api/v1/registration/aadhaar/createHealthIdWithPreVerified' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDczMjU1OTcsImlhdCI6MTY0NzMyNDk5NywianRpIjoiYmVkZWE1Y2EtZmY4Mi00ZjRkLTk1NDUtMWIxODVhMDhjNzVlIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJmMDJiMTYwNy00YTZiLTRmOTctYWJmMS1iYTRiNzg1YjBiMjgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzI0Iiwic2Vzc2lvbl9zdGF0ZSI6ImQ5YzgyZDUwLTEyZTgtNDhiYy04MjRkLWUwMmNmOWQyZGM1YyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAwMzI0Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OS4xMiIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDAzMjQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjEyIn0.WeYrAj2Yfv8gLc1CIkXOSazasvnsHnotlZKnveavvl-2EHW-LjUsoV0vcrBsJjZ_ssV6gfB6qIdSzPuEgMUfHrEvTk2hWA3xWRmf8Nu-eWmFFZxbKq2isPDkrUpiQSCDGYLJ0Dt9UD1wB7rPnWFhK-m1ogdPGpnPqlmmV2vOOQGoZ-i7WqRSgb4_b6NMTpNitKBJC24_CF1sDmAQnknhqjqmuC19j2GKIcJ7igTUNyxZJQ6IekdGpHj3m40yEZaEfyIioYjloPuLf3XweMPisr39l2a7xw7Oh80Shq7A3etBcJv4loS90SMn3o1WffbBPAl2yRgXH6geB6DdsoUYiw' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
"password": "<some password>",
"txnId": "a5d1d07d-32d9-41f9-a31c-4c7e4165a91b"
}'
Response
{
"token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNC03NDcxLTMzNDItNTYxOSIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsInN5c3RlbSI6IkFCSEEtTiIsIm1vYmlsZSI6Ijk3ODg1ODgwOTkiLCJleHAiOjE2NDczMjcxNzksImhlYWx0aElkTnVtYmVyIjoiMjQtNzQ3MS0zMzQyLTU2MTkiLCJpYXQiOjE2NDczMjUzNzl9.o86UbCpd9NsjiZIT2L5UNrMqrcjV50C9XuFzneACUI_sORb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3XCQ1J3y2qxcGNhS95yYE1rS2QACq5wEVf9r96EA_jqBSTUMrShiWi6PZmUonOPDNvyvDVNFA1UheQjBGTaRgSaYf1e2RIlBUbwwBgrrF9ZrIA_yfAfHOqpCyDaWwCQ_xB0pTGQFqOF9cSW9hp6egwLwcwgNuaaHxTgRFcMPOLLxkakQIGPP9dvHOn-eRQ3vYDFGvdD1De9rxRvZV2jxpZwyT6is79qCP4bd06TsSPbA1LdMB4ug05yhPWvUf5FtInvp4JK4d5j1aa3rGxMH2aCeMxshCIubnq9Nvss-0wYYhs76sXZSygdHx9yZcC-n6DnALgs3ie-HaN-iKs36FMJ2XDrCMwxlh51coGfY5GZppQPia3SWkBxNBuNl_IPqvaKNFJioxqHzmTXUqBqAN5Oefa_ZF5CsJQ",
"healthIdNumber": "24-7471-3342-5619",
"name": "Lourdes Dinesh S",
"gender": "M",
"yearOfBirth": "1997",
"monthOfBirth": "10",
"dayOfBirth": "1",
"firstName": "Lourdes",
"healthId": null,
"lastName": "S",
"middleName": "Dinesh",
"stateCode": "33",
"districtCode": "",
"stateName": "TAMIL NADU",
"districtName": "Kancheepuram",
"email": null,
"kycPhoto": null,
"profilePhoto": "sbEtmKwvLOUn7nRZMAdM5H55Un8aqMmthN1/8B9MGqL34mlit3SeGSFnUxyLjOcc/ht/WiihCP/Z",
"mobile": "9788588099",
"authMethods": [
"AADHAAR_OTP",
"MOBILE_OTP",
"DEMOGRAPHICS",
"AADHAAR_BIO",
"PASSWORD"
],
"pincode": null,
"tags": {},
"new": true
}
Edit Profile - Add PHR Address
Request
curl --location --request POST 'https://healthidsbx.abdm.gov.in/api/v1/account/profile' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDczMjU1OTcsImlhdCI6MTY0NzMyNDk5NywianRpIjoiYmVkZWE1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-eWmFFZxbKq2isPDkrUpiQSCDGYLJ0Dt9UD1wB7rPnWFhK-m1ogdPGpnPqlmmV2vOOQGoZ-i7WqRSgb4_b6NMTpNitKBJC24_CF1sDmAQnknhqjqmuC19j2GKIcJ7igTUNyxZJQ6IekdGpHj3m40yEZaEfyIioYjloPuLf3XweMPisr39l2a7xw7Oh80Shq7A3etBcJv4loS90SMn3o1WffbBPAl2yRgXH6geB6DdsoUYiw' \
--header 'X-HIP-ID: SBX_000324' \
--header 'Accept: */*' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Accept-Language: en-US' \
--header 'X-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNC03NDcxLTMzNDItNTYxOSIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsInN5c3RlbSI6IkFCSEEtTiIsIm1vYmlsZSI6Ijk3ODg1ODgwOTkiLCJleHAiOjE2NDczMjcxNzksImhlYWx0aElkTnVtYmVyIjoiMjQtNzQ3MS0zMzQyLTU2MTkiLCJpYXQiOjE2NDczMjUzNzl9.o86UbCpd9NsjiZIT2L5UNrMqrcjV50C9XuFzneACUI_sORb0EiQf9PjhpJhR1kcap-mIA111QcyL4ubkXxVnAaTIXrpRO7DXIBu3hyEZABcxaKqqS0sGZx7DePJa0aUBRX8OZHxpfV6QoZap1fF0LrYkbSosjML699Z_tpRGBJayhakSm8BE_5TXibRDadNLN6LMjuqNrihV4ZKe_j6f9JIKj12oLX_vNluhIwte8So8l3HePt1VOGACE5UKdmeiJOIHDzElU6ASucM_oQSj0gIU9xu22k8r-Jm3k8sq8ZzvFW07v71aSyA-I9GkZK4lQJqPlBwfze1NJEiqXtDo7Jnt-1PXXEKhWImWg8HQnpsE7tQ5eqWeG3l320GaAAw_v5cS6VpAIqFX-MctmekYvZdHk4LqrssdFDf0MUPnG4a-ry0zXoZg-pA0LSc8xf7cnLN_k6FCOZNc4bQKLzCI5aHxseRAMRaccVDICcFuswRSL67VRahH8Sfk08C2BGVOnqjoYDFqTZrIZD-Gzv4KUtl314jPlPL5baYYKZ6sMlDNbg2lIoooA4lD6vG3-vcxEDbld2g7hwnazQsnO2N8pnz8e8YOCB1qWAEEe_1ZlCo9LdmjBYp6KiuesUHkZR_E7VMGXzVRIvLlablrogl1iUM7N-ctazukM14xHTLc1tI' \
--data-raw '{
"healthId":"dinesh.test2"
}'
Response
{
"code": "HIS-422",
"message": "Unable to process the current request due to incorrect data entered.",
"details": [
{
"message": "Details entered by you does not match your Kyc Document.",
"code": "HIS-1030",
"attribute": {
"key": "name",
"value": "Lourdes Dinesh S"
}
}
]
}
Thanks,
Ayush