checkAndGenerateMobileOTP API Not generating OTP and HealthId Null is null in response of confirm API

We have successfully generated the HealthIdNumber using rest client with below API Steps.

But while generating health ID Number one step we skipped due to OTP issue (checkAndGenerateMobileOTP API ) .

Please find the below steps.

  1. /v2/registration/aadhaar/generateOtp
  2. /v2/registration/aadhaar/verifyOTP
  3. /v2/registration/aadhaar/checkAndGenerateMobileOTP (OTP not Generated)

But response :

{ “txnId”: “d58109ef-3fb4-4fb0-8884-68da95b5e1dc”,

“mobileLinked”: true

}

  1. /v2/registration/aadhaar/verifyMobileOTP (Skipped this API when “mobileLinked”: true. Our assumption If we get false we might get OTP then we will call this API. But till now we did not get false.)
  2. /v2/registration/aadhaar/confirm (Got the HealthIdNumber=XXXX-XXX-XXX but HelathID=Null ) How to update this .

OTP is working now, kindly check.

Hi Team,

Still same issue. Tried with 2 Aadhar mobile numbers but still OTP is not generating.

curl --request POST
–url https://healthidsbx.ndhm.gov.in/api/v2/registration/aadhaar/checkAndGenerateMobileOTP
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDMyODQ1MjMsImlhdCI6MTY0MzI4MzkyMywianRpIjoiMTBkZTRmNzYtNmFlZC00NDAzLWE0NTAtNWYwNmUyOGM1MDZhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2YWQ2YjQ4Ny1mZTc1LTRiN2EtYjk1NS0wMzQ4OGU4OTRjNTgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwNTQxIiwic2Vzc2lvbl9zdGF0ZSI6IjAwMWE3YjdiLTNiNDQtNDk3OS05ZGViLTkyYzQ5MDYzNzA2MSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDA1NDEiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF8wMDA1NDEiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3Ljk4IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDU0MSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuOTgifQ.LewQ25an4UUURohNnFqiR4_FeFyGd4OhfGjU0XUQJ80czs0Sr-CHAZRNVEBNNiEUo4xn-nADoUNAxpy8Sh89PUFfJB7TC6XWSP4sgHwUwpePp_L_m93QcMDFLu1UlVbVGYglZuxzOJq5xtcPPGe5mt9m3WoEN8wuk7l-uCXzuZBTxQ2ZJNwjOLmuJc3ClrhP9QuHK2pAm44-CKqcAkpIS2XAkXAP1GTPy-Nj_9a0R4k2iTE5H56esDqaBu9_MH9sHNsgCM4vLxlO_gutP_q8-CHyKwJ9wGQLuaNgIr7tndChbusxa-y2xo2EFm_leJ5zWzYO0UzZjc1B0Onii1AI3A’
–header ‘Content-Type: application/json’
–cookie TS01c078b5=01115a1c9055273a43ce8009f0dde5261f31ec00378310318d9f49c699dbda3fff2efb5850dce4d098fb443e91a0b0b9a98b3028bf
–data ‘{
“mobile”: 9948XXX605,
“txnId”: “b0ceab85-8b8d-4928-b7b7-d28f80e4a2aa”
}’

Team any update on OTP issue for this API /v2/registration/aadhaar/checkAndGenerateMobileOTP

Hi @KrishnaDhanushInfoth,

/v2/registration/aadhaar/checkAndGenerateMobileOTP API does not send OTP if the provided mobile number is linked with Aadhaar. As the response of this API, you can clearly see the mobileLinked flag is true i.e. the mobile number is linked with Aadhaar.