V2/auth/reactivate/init giving invalid credentials

Hi @IntegrationSupport,

I am trying to reactivate a health ID however am getting HIS-1008 error.

API sequence is
sessions
v2/auth/reactivate/init
Data being passed is healthIDNumber

Enter Health ID:91-5201-3178-8439

URL

https://healthidsbx.abdm.gov.in/api/v2/auth/reactivate/init
Headers
{'Authorization': 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTI5NTcxMTgsImlhdCI6MTY5MjkzNTUxOCwianRpIjoiMTQ2MzljMTYtYzEwZi00ZDJmLWE4OTUtMzU2ZWFiZjZlZDUyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI5NDE1YmQ0Mi0yZTIxLTQ3NzQtYWFjNS1kODQ5OGNkNDE0YTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxODU0Iiwic2Vzc2lvbl9zdGF0ZSI6ImYyNjI4OWJiLTQ0ZTQtNDg4Mi04MWY3LWJmNzU4YTVjNmZlMiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCIsImhwX2lkIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYXzAwMTg1NCI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudElkIjoiU0JYXzAwMTg1NCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny4yMDQiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMTg1NCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuMjA0In0.YtK8FHiRreo7eTyjFfJ3gkdIfNiXCUcfwY6QiX4cmwhqKi8C8nyHPAg587DSizaOH-kTINAMPP9bFGxJzH5Lulo0ngercjLVTLdW_SohTcGytYVcgcOmYGRRbbgsL5Ct2Fzxavxb29chVmo5Yc_N44WudJzDsBniN2rGYId9p0HybRNNym_sdDDLBu6EUFGBcuYOX2TS3B4ppoNba1TJ_Lz8RIJdrWxp7aCG0rFuOkEJNhwqEss-3eGIBqPc9AIY3AqV7uIBMyqeJGE24Fx3xUuXhxGcvRs4pkb4MH4wBfUL7FJadpGeKk13Ph_Jrms7_J5ZtHEBfbxg5yIwE1y0LQ', 'Accept-Language': 'en-US'}

Data
{'authMethod': 'MOBILE_OTP', 'healthid': '91-5201-3178-8439'}

Error
b'{"code":"HIS-422","message":"Unable to process the current request due to incorrect data entered.","details":[{"message":"Invalid credentials. ","code":"HIS-1008","attribute":null}]}' 

The healthID is correct as per this API

Can you please help on this?

Thanks

@IntegrationSupport any update on this?
Greatly appreciate it.

Thanks

@satyadeep Can you please check the body from swagger link.
It is working fine at our end.
https://app.swaggerhub.com/apis-docs/abdm.abha/abha-service/1.0#/Forgot%20ABHA%20number/retrievalHealthIdByMobileUsingPOST

@IntegrationSupport ,
the body from Swagger has:

AuthInitRequest{

|authMethod*|[...]|
| --- | --- |
|healthid*|[...]|
||
} 

as mentioned at https://app.swaggerhub.com/apis-docs/abdm.abha/abha-service/1.0#/Authentication/initiateReactivateAuthUsingPOST
My data also has
{'authMethod': 'MOBILE_OTP', 'healthid': '91-5201-3178-8439'}

Can you please check

THanks

@satyadeep Have escalated the issue with the tech team again. Will revert once resolution received.

Hi @IntegrationSupport,

Any update on this?

Thanks

Dear @IntegrationSupport
If I may, may I please request an update on this?

Thanks

@satyadeep
RESOLUTION
This error is correct due to Abha Number status is Active .

Following error was replicate using these step -

This error is correct due to Abha Number status is active

following error was replicate using these step

  1. deactivate the Abha Number

this error is correct due to Abha Number status is active

following error was replicate using these step

  1. deactivate the Abha Number

2)check current status for Abha Number

this error is correct due to Abha Number status is active

following error was replicate using these step

  1. deactivate the Abha Number

2)check current status for Abha Number

3)reactivate the Abha Number using Mobile Number

4)check the current Abha Number status

5)then hit the reactivate api