@integration.support@nha.gov.in
I m trying update mobile number using Aadhaar number, but its gives error at the end.
API URL LINK: https://healthidsbx.abdm.gov.in/api/v2/account/change/mobile/update/authentication
here I m using password as empty and encrypting it by RSA method as in documentation
#Payload
{
authMethod:“AADHAAR_OTP”,
oldPassword:“R3gxyHbT1exQxA0gmmHlb4CobhbV+Iqf3tKQI0kTCIQBrxu4iLlZrEkG/h35gIIp+7l5LFicRIwnsvdwh2jmofb4qZNf+J2CeF7kzqbqpEsaH3ueY53rjzim1YhbFwoz4d1AXVNC8V8K4o7cXZ9WA0mcxRa/PrWSt14uTck49yFN6tqva12c9oG9tjhLXnn+jELv7Utb+fQ+XClJy2+Zy9w9bM+CqAIIEbBD0PiUQrxdSkXSHvsrk1UtRSSrD9r+SPzVyuqKagEabn3moo+KLp7p0U/7aroVTRmnY/lfCcf2Rfx7hG91lF/3gCAf8k8Ca5bkxFdX4q2IEbDAM++yAjs99DmEJN5gz7xm5QRnWVGVYUYiCCmY9QNcn2KCMlyL6BsFVtMOY4qXrEVD2eLI/SaHTEpJhNIf9P0eWM0geSiKoJ6mgR6Ibt8bCl0alIYKOdSTSI2yigytDHb7ktB7T3Or+ScKuorDZ6enXzzjePDjweYbiWO6+a6umj7mo2uOosjVN+vaHV5XyV9o7dCYijlrwEkNpjabPx/Ml8+44AqOtP5qBzL/LBXVH59OTjDpSQtpKwaGcUc4NSgBJNz7PgIKK4/dl6klSO6sLokicdLWaHYReqh/PhFbpHItik+BUVcauHzJ7cJpAdiz987i73JsSBFBgoR0H2jD82L7Dxw=”
otp:“f5nj9pH9KvhpfbvEhag9V1VCXKI+1C4JycrZYVZf4dmc0NFGsL2roOBamnhx9d4P2j3tks9zw4Q10AIRQ0/TahCjlYEsarPS0Ys7lLnOeuJSGfXOm92jPq7rrCxiEvH6KDzTrLDn5NEpdwcmcAY99E8DvErZoVNbWJZsioasgvxcFOFPMMu4TLjJ3A157F6jRPhv5znKEYcbEoJwY37LM0V5kJahZjdyp39kLCb7rJvW0ANf0IQetDeWrRMMxcGKDGuR5Z+VmSHfona00icdoRHkR0rXS7en3jXNy9KbltLMZ88GfF8h/dE1xq25qpFo1WaKGmOO7LckTHAG6R8xYKh4XqBungPVmcFuk9KLTuIRz3ADaGhhz001luHkoB/2eELDfnWknJ0WmT4xToCxmnDyHIaUAT7TlPeTs8WWotfAZW6xjUMlf8wkilq24NEeKjr2VCn1MQ46CmZ9M5lMrXaIqbgYP2zmTH+pQNZzLwNO/FWiqyYyli8/rQ5h7Ee/X5nI+fzfU8e8kvT259Cqf58VAY4t/TnMCUdYpZ4DYuRGvU3ngNfNxy0edAVF29cBN/TldPVEakr7TnVU6PrfSHdiVm4GZ0RmicI8H1CEDk/68Fpij05Hx/h2muyGwdxPv1EW/zjlyUIyuvfSDJ43ie7vsXkzj/xBdh875CNGlxA=”,
txnId: “4af0fcab-f08f-4f90-a1b0-bb9c4461b116”
}
And I m getting error :
“”"
{“code”:“HIS-400”,“message”:“Request is invalid. Please enter the correct data.”,“details”:[{“message”:“Input OTP/PASSWORD must be encrypted form.”,“code”:“HIS-1047”,“attribute”:{“key”:“oldPassword”,“value”:“R3gxyHbT1exQxA0gmmHlb4CobhbV+Iqf3tKQI0kTCIQBrxu4iLlZrEkG/h35gIIp+7l5LFicRIwnsvdwh2jmofb4qZNf+J2CeF7kzqbqpEsaH3ueY53rjzim1YhbFwoz4d1AXVNC8V8K4o7cXZ9WA0mcxRa/PrWSt14uTck49yFN6tqva12c9oG9tjhLXnn+jELv7Utb+fQ+XClJy2+Zy9w9bM+CqAIIEbBD0PiUQrxdSkXSHvsrk1UtRSSrD9r+SPzVyuqKagEabn3moo+KLp7p0U/7aroVTRmnY/lfCcf2Rfx7hG91lF/3gCAf8k8Ca5bkxFdX4q2IEbDAM++yAjs99DmEJN5gz7xm5QRnWVGVYUYiCCmY9QNcn2KCMlyL6BsFVtMOY4qXrEVD2eLI/SaHTEpJhNIf9P0eWM0geSiKoJ6mgR6Ibt8bCl0alIYKOdSTSI2yigytDHb7ktB7T3Or+ScKuorDZ6enXzzjePDjweYbiWO6+a6umj7mo2uOosjVN+vaHV5XyV9o7dCYijlrwEkNpjabPx/Ml8+44AqOtP5qBzL/LBXVH59OTjDpSQtpKwaGcUc4NSgBJNz7PgIKK4/dl6klSO6sLokicdLWaHYReqh/PhFbpHItik+BUVcauHzJ7cJpAdiz987i73JsSBFBgoR0H2jD82L7Dxw=”}}]}
“”"
process:
- generate OTP for new mobile number
- verify new number using otp, its generate txnId
- using pervious txnId generate aadhaar OTP, its also generate txnId
- using that txnId I verifying aadhaar otp but its give error