I have created a new service with type “PHR”, and this is reflected in the “https://dev.abdm.gov.in/gateway/v1/bridges/getServices” API call,
{
“id”: “fmko-phr-001”,
“name”: “FARMAKO PHR 001”,
“types”: [
“HIP”,
“HIU”,
“PHR”
],
“endpoints”: {},
“active”: true
},
However, when I used this id in the requester section for login api
“requester”: {
“type”: “PHR”,
“id”: “fmko-phr-001”
}
I receive error code : 1417 and the message “Requester id is not valid”
@IntegrationSupport can you please confirm that the service is PHR enabled, if not please do so.
Hey, @IntegrationSupport,
requrl : https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-init
{
"patientId": "eshan2409demo@sbx",
"purpose": "CM_ACCESS",
"authMode": "MOBILE_OTP",
"requester": {
"type": "PHR",
"id": "fmko-phr-001"
}
}
I am still receiving the response as
{
“error”: {
“code”: 1417,
“message”: “Requester id is not valid”
}
}
The service Id is the Requester Id i am supposed to use, right?
{
"id": "fmko-phr-001",
"name": "FARMAKO PHR 001",
"types": [
"HIP",
"HIU",
"PHR"
],
"endpoints": {},
"active": true
}
This is the serviceId i am using, that has PHR access enabled, as shown in the above request
Hey @IntegrationSupport @Ramandeep @Prajwal, What is the update on this? This is seriously delaying our development process for further milestones. Can you please help ASAP.
Thanks
@EshanFar Phr services are already provided. However, we shall enable HIP services from backend. You can test once it will be provided by our tech team.
Hi @EshanFar kindly register PHR services separately, as one service_id cannot be used as an HIP, HIU and PHR. I have configured the same, the new service_id is: “ fmko-phr-002
".
Thanks
Hi @Ramandeep24 @IntegrationSupport I am also still getting the same error “Requester id is not valid”
My sandbox client ID is SBX_004059
For the below request payload (https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-init):
{
“authMode”:“PASSWORD”,
“patientId”:"{{Patient_ID}}",
“purpose”:“CM_ACCESS”,
“requester”:{
“id”:“akshay-phr”,
“type”:“PHR”
}
}
I’m getting this response:
{
“error”: {
“code”: 1417,
“message”: “Requester id is not valid”
}
}
I’ve set HIP and HIU to false for my PHR ID (using https://dev.abdm.gov.in/devservice/v1/bridges/addUpdateServices) and this is the response
{
“id”: “akshay-phr”,
“name”: “Akshay PHR App”,
“types”: [
“PHR”
],
“endpoints”: {},
“active”: true
}
But, still I’m getting the “Requester id is not valid” error.
Please guide here.
Akshay
@avgunda We have initiated to enable “ fmko-phr-002
" as your phr service id to the backend tech team.
@IntegrationSupport My phr service id is “akshay-phr” linked to (SBX_004059), not the one mentioned above.