Profile Edit - Add PHR Address with Aadhaar Registration Token

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.o86UbCpd9Nsji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GIYkMxizKTTCue8p3Gel45NgFcx15qLWn5P3XCQ1J3y2qxcGNhS95yYE1rS2QACq5wEVf9r96EA_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 eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn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HW-LjUsoV0vcrBsJjZ_ssV6gfB6qIdSzPuEgMUfHrEvTk2hWA3xWRmf8Nu-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

Hey, @adnan_360 can you please check this once.

Thanks

Hey @adnan_360 @depakpant,
Can you guys please take a look and suggest.

Thanks
Ayush

Hi @ayush,

Please use the below API to link ABHA address to a ABHA number

/v2/account/phr-linked

Thanks
Deepak

Hi @depakpant,

I tried what you suggested but this is also not working:

Create via Aadhaar V1 - Response

{
    ....
    "healthIdNumber": "25-3142-7040-4029",
    "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNS0zMTQyLTcwNDAtNDAyOSIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsInN5c3RlbSI6IkFCSEEtTiIsIm1vYmlsZSI6Ijk1NjExNjI5ODYiLCJleHAiOjE2NTEwNTM5MDEsImhlYWx0aElkTnVtYmVyIjoiMjUtMzE0Mi03MDQwLTQwMjkiLCJpYXQiOjE2NTEwNTIxMDF9.h1UbjVBh52Inu22zoG0VpmMQIlEJCVRgt3NwFketO1KSthW3TRsVR2RsqvTOIuuY9HVvCkpXBqizCB47dXLTv95yWkh2xDBhCZE_CXsImNOAqTj0IlpCQvXM5mddmxN13uzLlZVFPVMHLcho-6YyKbE4w0UzfLXKVuJ5H7oebyPwYXGD2mZrIQ0bFhrji94sf-KsL2endmrmanvIy9JzahBMUdar0oVrGc4nxLJ2ksC-8Qib5qk_TxYK0slbN-IImW_AW_JqU0NjNZifV_Gt7w-gfDekSR1e-OJYQ_gkjHDUKYOtyTAa5IBZBDkMcSds_bV3ik52sCIrOz2DgTr0q1UMpuDjHHpoVqg9_kMoSbWo6YymbpyJOcHI1ILWEb4KEyVQNiEuaCPQZoIJtyoidF-Tem6LJhYo4OZYbL8pAdySqWT3WwYNrgwOea0JPOULcqZ4VP1mUKVRmiAvM0iXxfyFiyc3s1WT6bA4SC8RQEa-RZs5CZF9AdKZpbCpfdu6dLl2dw4slHgT67NI-XuQgEqEAhoUuLbu43Y09k1cJ6Gk_MPJLs-cKK0FRsUGE-yGuA4lnRTTOICleVeG-dpI2eeh3QefdmSw6sG1fUy_7fJAjqTq5h9Lkz-5BPCrM4Sf6dJcglpG7CA5ct_9HjMysNsz0HlsXT3E7t70eD3iX6A",
    .....
}

Request - Add PHR

curl --location --request POST 'https://healthidsbx.abdm.gov.in/api/v2/account/phr-linked' \
--header 'Accept-Language: en-US' \
--header 'X-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNS0zMTQyLTcwNDAtNDAyOSIsImNsaWVudElkIjoiU0JYXzAwMDMyNCIsInN5c3RlbSI6IkFCSEEtTiIsIm1vYmlsZSI6Ijk1NjExNjI5ODYiLCJleHAiOjE2NTEwNTM5MDEsImhlYWx0aElkTnVtYmVyIjoiMjUtMzE0Mi03MDQwLTQwMjkiLCJpYXQiOjE2NTEwNTIxMDF9.h1UbjVBh52Inu22zoG0VpmMQIlEJCVRgt3NwFketO1KSthW3TRsVR2RsqvTOIuuY9HVvCkpXBqizCB47dXLTv95yWkh2xDBhCZE_CXsImNOAqTj0IlpCQvXM5mddmxN13uzLlZVFPVMHLcho-6YyKbE4w0UzfLXKVuJ5H7oebyPwYXGD2mZrIQ0bFhrji94sf-KsL2endmrmanvIy9JzahBMUdar0oVrGc4nxLJ2ksC-8Qib5qk_TxYK0slbN-IImW_AW_JqU0NjNZifV_G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yI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAwMzI0Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny4xNjUiLCJjbGllbnRJZCI6IlNCWF8wMDAzMjQiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zYnhfMDAwMzI0IiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42Ny4xNjUifQ.NJ4WbYbg9y92Jt84aZ54MflmoDcW4DKK5JcBR40TsyyZr1tV_06rS0bcvKibe6FcmXP5hUKOVt6hrI1hpB8p9asQXtIl_Gkue7zlEB2SgRLZdxpHDIbklXsNLu9TVXPGSV96eF43Sc2VKzqvqDLKtSp2umCLsjz7trzwBJ4iE2M6odjwiKLTcNLM8auMZmCKUhkV3r2E4IAMzsqTlJAnWbyJGASBav_Y37PhrXNfkwCbSju3NKEGOcEB_inCVGumUJvi8DznV_UKKBLRAUAjfRt6qNaAd3R3h59YlwFrfdJ1qifO3M0W4kSVAzjrt-_WWljI2IDYaOuEvoGF4Azjag' \
--data-raw '{
  "phrAddress": "pallavichaudhari",
  "preferred": true
}'

Response

{
    "status": true
}

Search Auth Modes Request - NEW API

curl --location --request GET 'https://dev.abdm.gov.in/cm/v1/apps/phrAddress/search/auth-mode?phrAddress=pallavichaudhari@sbx' \'

Search Response

{
    "error": {
        "code": 1414,
        "message": "No account found with the requested ABHA Address 'pallavichaudhari@sbx'. Please try with different ABHA address."
    }
}

Please suggest what is the correct flow for this.

Thanks,
Ayush

Don’t use this API to update the PHR address,

Pass the createHealthIdWithPreVerified API response in the update request. One cannot change the demographics details if the HID is created using Aadhaar.

{
“address”: “b-14 someshwar nagar”,
“dayOfBirth”: 31,
“districtCode”: 401,
“email”: “example@demo.com”,
“firstName”: “kishan”,
“healthId”: “deepakndhm”,
“lastName”: “singh”,
“middleName”: “kumar”,
“monthOfBirth”: “05”,
“pincode”: 412306,
“profilePhoto”: “/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkJCQkJCQoLCwoODw0PDhQSERESFB4WFxYXFh4uHSEdHSEdLikxKCUoMSlJOTMzOUlUR0NHVGZbW2aBeoGoqOIBCQkJCQkJCgsLCg4PDQ8OFBIRERIUHhYXFhcWHi4dIR0dIR0uKTEoJSgxKUk5MzM5SVRHQ0dUZltbZoF6gaio4v/CABEIBLAHgAMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAACAwABBAUGB//aAAgBAQAAAADwawLpMspcK7qrlE5F0Vtul2bVywMUNeBHUkW/bmxvYELGuNjh2VDvixxo5ViljKjDRMoahCULjs2JCShjhjh2OGxo0Y2MoXHOLszsKLhw7tD99mpZQxj8xceofmLEKFwXLTIyHwY1Ls+iEotjHY0M0pjRYxtGj4VFKLPohQlFQyy4Qipc0XG9pS+CP/2Q==”,
“stateCode”: 27,
“subdistrictCode”: 412,
“townCode”: 644,
“villageCode”: 543,
“wardCode”: “08”,
“yearOfBirth”: 1994
}