Hi team, similar to the issue faced by Pratik (Link), I am unable to use the enrolment APIs for healthID.
Here is the response received:
{
"code": "900908",
"message": "Resource forbidden ",
"description": "User is NOT authorized to access the Resource. API Subscription validation failed."
}
I’ve logged in successfully using the sessions API, and I used the Postman request as recommended. I can see that I have the healthID role as well. Please help with this - let me know if any other information is needed.
ClientID: SBX_003211
Curl Request (authorisation line removed for brevity):
curl --location 'https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp' \
--header 'REQUEST-ID: f1241736-78f9-4fc3-a758-48fb5eabfe69' \
--header 'TIMESTAMP: 2023-09-15T03:18:31.382Z' \
--header 'Content-Type: application/json' \
--data '{
"scope": [
"abha-enrol"
],
"loginHint": "aadhaar",
"loginId": "alfecPjUrNa/EEecry/a7Y+ZispvPF3RDPX/UCCKbvfd5LDnPCwFJEWJErZ08BCf+meB6LUkTQNT8A+DiYwbnauhxNqT9ZDVuBzET9FpT/7z96QQ6DBWy4H0YAj+VOQgHVH/tHjnRAIGIxXU3fmrwNsgnaTj6I1ilz5LrXnu47e4rNGBfuF4++sc1RRU1fn9p0o2AbgqxRPAvzhKcranyiA8ptMFqbzpMSZ3QpVZswegk8Yb1qCHfTPIzEsf13W4/Z1Cn+xQbG3n6F/3hIZF5SnyDmHDJgnDJK9kpsLeqZbgJ6nPiYw4pfF/rKfhtxQM3wJic4SF8sfHI4B4V9lwO2RqymO4Ia4s+RwDmoFs8K7lJgBUpraa7Rwvlro2KAGB10+4t8S9QinfkvRd/y1kgssdAVKO2VH+//PvRqC+nYyMoBICyvVygksUT9vbFPmKDhhwKJ/mJN2Odi5AXDlWJEll1BdoJOfl02GlMdhM4V/RUlFg2WDr3Cl8EEnvUB1RarDcq0dsRh32MKXL1ODx7EF3ydP1Qc8C/PisdIHpWDv0/auibPx7u35zJYVora6uzBzr3XoB4fs5NYNXfIun24Qa6ffpu/z0+olqds4cRa5TuBn+6jtULFOW4pEHRsG5x3rCr7VlFGZSU45gmg0k70bmNnujYEWUKbc/cbpgffM=",
"otpSystem": "aadhaar"
}