I have tried for Access Token but I got Error - code - HIS-400 and HIS-1002 response. I didn’t get Access Token.
Follwing API Document : abha-API-services
In document mentioned this success response :
Base URL:
Method :
POST
End Point:
v1/auth/authPassword
Access Token get from this API :
dev.abdm.gov.in/gateway/v0.5/sessions
Used Client ID is :
SBX_002158
body :
{
"healthIdNumber": "91-5668-XXXX-XXXX",
"password": "XXXXXXXXXXX"
}
But I got ERROR Resonse. How do i get access token for ABHA service.
The response like ,
{
"code": "HIS-400",
"message": "Request is invalid. Please enter the correct data.",
"details": [
{
"message": "The field value should not be empty.",
"code": "HIS-1002",
"attribute": {
"key": "healthId",
"value": null
}
}
]
}
I passed healthIdNumber in body but here error mentioned key is healthId Is it correct ?