Consent Revoke callbacks are missing consent id

Hi @Shubhanshu_Shukla, @neha.parnami ,

When a consent is revoked, we usually get a callback that it has been revoked. But this callback is missing the consent id. Can we please have it fixed to give out the consent request as well?

As an HIU, it is important for us to sync/delete the medical records of the user for which the consent was granted earlier.

Callback endpoint: /v0.5/consents/hiu/notify
https://sandbox.abdm.gov.in/swagger/ndhm-hiu.yaml

Attaching all the payloads received during the Request init, consent approve and consent revoke

Requested (all good)

{
    "requestId": "0f3afb7d-869a-4460-b3cd-b2d7ba9436cd",
    "timestamp": "2022-02-08T13:38:58.431686",
    "consentRequest": {
        "id": "13a94e80-e105-4c8e-8e3d-dd64e09d1416"
    },
    "error": null,
    "resp": {
        "requestId": "9e152e99-065e-4d18-be5b-4c19c1ed23f0"
    }
}

Granted (all good)

{
    "req": {
        "timestamp": "2022-02-08T13:45:21.04597",
        "requestId": "f1a7b55f-a19f-432b-9b46-74ca216b92dd",
        "notification": {
            "consentRequestId": "13a94e80-e105-4c8e-8e3d-dd64e09d1416",
            "status": "GRANTED",
            "consentArtefacts": [
                {
                    "id": "fcc32340-ef8d-444c-a567-89f4d34e775e"
                },
                {
                    "id": "1a8ca3c6-a147-4c70-b17a-74ac1654899f"
                }
            ]
        }
    }
}

Revoked (missing consent id)

{
    "req": {
        "timestamp": "2022-02-08T13:58:35.109036",
        "requestId": "4c32793a-8a92-400f-90f1-ec45053d6257",
        "notification": {
            "consentRequestId": "",     // <-- MISSING
            "status": "REVOKED",
            "consentArtefacts": [
                {
                    "id": "1a8ca3c6-a147-4c70-b17a-74ac1654899f"
                },
                {
                    "id": "fcc32340-ef8d-444c-a567-89f4d34e775e"
                }
            ]
        }
    }
}
{
    "req": {
        "timestamp": "2022-02-08T13:58:35.088151",
        "requestId": "68927cc7-d549-412d-a3aa-47a6bdb65ee1",
        "notification": {
            "consentRequestId": "",     // <-- MISSING
            "status": "REVOKED",
            "consentArtefacts": [
                {
                    "id": "fcc32340-ef8d-444c-a567-89f4d34e775e"
                },
                {
                    "id": "1a8ca3c6-a147-4c70-b17a-74ac1654899f"
                }
            ]
        }
    }
}

Please look into it.

Thanks,
Ayush

@here any update on this as I’m also facing this issue

@IntegrationSupport Could you please check this? This issue is still present…