[URGENT] - Two important health locker API not working

Hi,

The two most important health locker API’s are still found to be not working, which are the following:

/v0.5/subscription-requests/hiu/notify - API for receiving the GRANT/DENY/REVOKE notification for health locker request from ABDM.

​/v0.5​/subscriptions​/hiu​/notify - API for receiving notification regarding any data linked to ABDM from an HIP.(P.S : This was working before last week but not now)

Kindly please fix the issue at earliest

1 Like

Hey @padmesh97,

Please help us with the error you are facing.
Please provide curl or payload.

thanks

The issue is that I am not able to get the /v0.5/subscription-requests/hiu/notify call from ABDM upon confirmation of health locker subscription request from ABDM PHR app.

This call according to documentation is for notifying the requesting health locker for grant/deny/revoke status and subscription id in case of grant.

Their is no error faced during the flow of creating a health locker subscription request.

Both the calls, the one mentioned above and ​/v0.5​/subscriptions​/hiu​/notify are to be expected from ABDM which I am not able to recieve currently.

Also please tell which curl or payload is expected.

Hi, is there any update on this? The issue is that the expected calls mentioned above are not being sent by ABDM in response to a successful confirmation of a subscription request on the NDHM PHR app so there is no curl or payload that we can send.

Please let us know what the update is.

Thank you

Hey @padmesh97

1.please send the payload for {CM_HOST}}//subscription-requests/{request-id}/approve

  1. which hip you were trying for,
    please attach payload for for {GATEWAY_HOST}/v0.5/consents/hip/on-notify

thanks

Hey @Shubhanshu_Shukla,

  1. Just to be sure, we are using the ABDM PHR app to grant the subscription as of now so this API {CM_HOST}}//subscription-requests/{request-id}/approve in my knowledge is a PHR consumable API which is the ABDM PHR app currently, so no payload data is available with us.

  2. We are using our HIP for testing notification on our Health locker for data linked by any of the HIP’s against a granted subscription request.
    Also in the flow of linking care context to ABDM from our HIP and then be able to receive notification via API /v0.5​/subscriptions​/hiu​/notify on our Health locker, this {GATEWAY_HOST}/v0.5/consents/hip/on-notify API is not used anywhere in the flow.Please, can we be sure if I am missing or stating something incorrect.

Thanks

@Shubhanshu_Shukla

Is their any update on this?

Hey @padmesh97,

–>This API is working as expected. This is URL ‘https://sandbox.abdm.gov.in/swagger/ndhm-hiu.yaml’ and find curl below.

curl --location --request POST ‘https://dev.abdm.gov.in/cm/subscription-requests/87d46a60-e67a-4993-aa9c-eb763c383cf2/approve
–header ‘Authorization: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI3My03ODU0LTA3MDctNDA0NCIsImNsaWVudElkIjoic2J4IiwibW9iaWxlIjoiKzkxOTM1NDYyOTA2OCIsImhlYWx0aElkIjoiYXJ2aW5kLnRvbWFyQHNieCIsImV4cCI6MTY0MDY4NzMxNSwiaGVhbHRoSWROdW1iZXIiOiI3My03ODU0LTA3MDctNDA0NCIsImlhdCI6MTY0MDY4NTUxNX0.G3GXjyzMXBdsBmx8Of7vCb4sR79RH_fSiVRwXu7UBTE1BARDF8uJZ3HThLwgse-O-friGGJ6c0jxuAEL-P7uingndGO-FLD2489NJUewB_XPDmfA84XH_cZmFarbP5w7WJMsjGv5XBJm5t1SG7Qdz4ZsBMqfNRRUG0FhhP2wa_XzkT6u2LEO2tV8tEAheNuYuUvoCDVy88xj08sMWjAM97QLe8STaVA0Rfe2M5UwsxOIA1wDI0Ti5Ep4mLJdIbh6StdxeJWedyxLsQPK6YYg8WW24cz_AFUiQLtc0x56JE-j9k_Ab1aRpkfN6N8ZnpugGWcDY5PaVoZeopmCkAlDUdQY3_c4MUiTAGFAQpDMAxJ07uOWWCM7IiOHM2IOrHctnGSqW4u3Pyk9Pz2kF93nbeA11FrOrFD2tMp-8xaKuDhRyMjbuLeUBIMqcOfv5Tj-CKR28TKv4Q_ccqhnpNPlXbS4RcerVoC5auX-QR84Yql55cQ-V0kttCYhB8ZXzdY4Di36U9Rl_Y9kuywQDV2ORYJZOxo5vvKwCYAcRLEQzWhi7vYQEPWLpFIg8ffj0v8r2-H8wvpvS4uXNwFtiBTUerjaU3aHgDflfX3u4KvA2NhvxHwFWqks-IiCS9Dcku3tAAgH39BiYxMwV0VyApTBwaQjPCCGQ3uZlXLFK203kyE’
–header ‘X-Auth-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI3My03ODU0LTA3MDctNDA0NCIsImNsaWVudElkIjoic2J4IiwibW9iaWxlIjoiKzkxOTM1NDYyOTA2OCIsImhlYWx0aElkIjoiYXJ2aW5kLnRvbWFyQHNieCIsImV4cCI6MTY0MDY4NzMxNSwiaGVhbHRoSWROdW1iZXIiOiI3My03ODU0LTA3MDctNDA0NCIsImlhdCI6MTY0MDY4NTUxNX0.G3GXjyzMXBdsBmx8Of7vCb4sR79RH_fSiVRwXu7UBTE1BARDF8uJZ3HThLwgse-O-friGGJ6c0jxuAEL-P7uingndGO-FLD2489NJUewB_XPDmfA84XH_cZmFarbP5w7WJMsjGv5XBJm5t1SG7Qdz4ZsBMqfNRRUG0FhhP2wa_XzkT6u2LEO2tV8tEAheNuYuUvoCDVy88xj08sMWjAM97QLe8STaVA0Rfe2M5UwsxOIA1wDI0Ti5Ep4mLJdIbh6StdxeJWedyxLsQPK6YYg8WW24cz_AFUiQLtc0x56JE-j9k_Ab1aRpkfN6N8ZnpugGWcDY5PaVoZeopmCkAlDUdQY3_c4MUiTAGFAQpDMAxJ07uOWWCM7IiOHM2IOrHctnGSqW4u3Pyk9Pz2kF93nbeA11FrOrFD2tMp-8xaKuDhRyMjbuLeUBIMqcOfv5Tj-CKR28TKv4Q_ccqhnpNPlXbS4RcerVoC5auX-QR84Yql55cQ-V0kttCYhB8ZXzdY4Di36U9Rl_Y9kuywQDV2ORYJZOxo5vvKwCYAcRLEQzWhi7vYQEPWLpFIg8ffj0v8r2-H8wvpvS4uXNwFtiBTUerjaU3aHgDflfX3u4KvA2NhvxHwFWqks-IiCS9Dcku3tAAgH39BiYxMwV0VyApTBwaQjPCCGQ3uZlXLFK203kyE’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS011c04bd=01115a1c904cf4029ec0fe659dcdcfca29ace03eb13a8c0640e1bd859faa5682ab2ec83578fa1e713e59440ddd096097151b8b7271’
–data-raw '{
“isApplicableForAllHIPs”: true,
“includedSources”: [
{
“categories”: [
“LINK”,“DATA”
],
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“DischargeSummary”,
“OPConsultation”,
“ImmunizationRecord”,
“WellnessRecord”,
“HealthDocumentRecord”
],
“period”: {
“from”: “2021-12-02T04:39:04.368Z”,
“to”: “2025-12-03T04:39:04.368Z”
},

        "purpose": {
            "code": "PATRQT",
            "text": "Self Requested"
        }
    }], "excludedSources": []}'

–>corresponding callback of ​/v0.5​/subscriptions​/hiu​/notify is {{GATEWAY_HOST}}/v0.5/subscriptions/hiu/on-notify.
Whenever new data is available the HIU will be notified if there is an active subscription.
Please find the swagger API link below https://sandbox.abdm.gov.in/swagger/ndhm-hiu.yaml
Thanks

Hi @Arvind_Tomar

Yes we understand the API’s are working fine but still there the issue is being faced by us as an HIU from ABDM gateway.

Can we connect over this on a quick phone call, because its urgent and this issue is taking much longer and we are not able to get any substantial help from devforum.

Thanks

Hi @padmesh97

The issue is resolved. It is working fine.

Thanks.

1 Like