Issues with PHR APIs

Hi @IntegrationSupport

In the Login Collection APIs

  1. The https://dev.abdm.gov.in/cm/v1/apps/phrAddress/search/auth-mode API returns the following response for the PHR address uday@sbx:

{
“error”: {
“code”: 1417,
“message”: “ABHA address contains invalid characters: ‘’”
}
}

  1. The https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-init API returns the following response:

{
“error”: {
“code”: 1417,
“message”: “Requester id is not valid”
}
}

  1. The https://dev.abdm.gov.in/cm/v1/apps/login/hid/auth-init API returns the status code 200 OK but does not return the transaction ID.

Please let us know how to resolve these issues

@Uday Did Your Query Solved ??

@IntegrationSupport
I am facing same problem is I added PHR type in

https://dev.abdm.gov.in/devservice/v1/bridges/addUpdateServices

our Client ID is SBX_001699
Please Replay ASAP

@Uday - refer above screenshot, Issue is fixed code change deployed.

@IntegrationSupport Thank you for resolving this issue. Please let us know how to fix the second and third issues mentioned above.

@Uday ji,
Please check for second issue.


curl --location --request POST ‘https://dev.abdm.gov.in/cm/v1/apps/phrAddress/auth-init
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODA1MDY0MjAsImlhdCI6MTY4MDUwNTgyMCwianRpIjoiNDhlNDU1NzQtZDViMC00NWE1LWI3MjEtODFhNDAwYTEzYjQwIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2YWU3NzlkNi1kZmY5LTRiZGMtYWI0ZC0xYzA1ODcwMDA2OTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJURVNUX1BIUiIsInNlc3Npb25fc3RhdGUiOiJiY2E0MTJmOC00YjM0LTQyZmQtYmI0MC05MWJiN2JhNDE2NWMiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGlwIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiVEVTVF9QSFIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlRFU1RfUEhSIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtdGVzdF9waHIifQ.jnYLWIxpBoFqLHlBFG1D75D9jqT6vYKsipOSP9OcHJVE0HvlCGp04b6ZOQM53sMFZwe-xrVxhxYaE1VOlrV65yhCjsRpgg_c8JPdzVrHRTMq4fPLAATCaVe1QjuxoEtOtICY0B5etjJZm8xHcQymzfQx2NXyxkhu_QiHaQ99-IDxHYlYrrEUOLFu_NtWLvcE0Az5LZGcjnvuv6LCo7BZp265qXRVukUefM6mQWZUh6vPDOnp6HU382FDWbP8K1y7QK4VlOGf6rlQoevHYKFZVia_EePs5nrQuxlADbstLb8i001GgQR3SsEPLZvKwB7XhuL8t0-W4kYiK4ATyebsdA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS011c04bd=01445fed0487d690e260804ff7aab3cc16c68ad998852803fa533b2cec8770115bd711d2517758406e923ae34afc6bb8abfa782925’
–data-raw ‘{
“authMode”: “PASSWORD”,
“patientId”: “gnd05@sbx”,
“purpose”: “CM_ACCESS”,
“requester”: {
“id”: “phr_001”,
“type”: “PHR”
}
}’
its working fine .

@Govind_Deshmukh ji, @IntegrationSupport
The APIs are working perfectly fine now. Thank you for resolving the issues!

Hi Uday,
Have you got cleared with the Third issue

Hi Meghana,

To resolve the second and third issues I had to create a new service ID as a PHR and use it as the requester ID in the APIs.

You can use the below curl to do the same:

curl --location ‘https://dev.abdm.gov.in/gateway/v1/bridges/addUpdateServices
–header ‘accept: /’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer Token’
–data ‘[
{
“id”: “Service-id”,
“name”: “Service-Name”,
“type”: “PHR”,
“active”: true
}
]’

Hi Uday
Thank you it worked

@IntegrationSupport / @Uday/ @MeghanaN Still now working for me, I have created a new service and that service is avaialble in get API.

Still getting a same error : Requester id is not valid

Did i miss something? Please help us.

Afterting creating a new service with only PHR access, That issue has been resolved.

If anyone facing issue with encryption then make sure you download the public certificate from https://phrsbx.abdm.gov.in/api/v1/phr/public/certificate, which is different from the HIP and HIU certificate,

@IntegrationSupport: If possible document it, will help for others.

1 Like

@barotdhruv93

Have you got cleared with the Third issue. I am facing the same issue

Could you help me?

How did you created “only PHR” service ?

When I check using https://dev.abdm.gov.in/devservice/v1/bridges/getServices I’m getting the below response
{
“id”: “akshay-phr”,
“name”: “Akshay PHR App”,
“types”: [
“PHR”
],
“endpoints”: {},
“active”: true
}

Is the above response fine ?