Hip on notify API sequence

@IntegrationSupport
Hi team, please let us know the sequence for consents HIP notify API, which should be executed first and by whom and after which API?
/v0.5/consents/hip/on-notify
/v0.5/consents/hip/notify

And where will I get value for consentId?

Hi,
Please find the sequence for consents

Initially request is sent from HIU to CM
/v0.5/consent-requests/init
/v0.5/consent-requests/on-init - [consentrequest id is created by CM]
Also HIU can check for status of request
/v0.5/consent-requests/status
/v0.5/consent-requests/on-status
The CM, notifies the HIU, and also sends a notification to the HIP of the patient’s consent if granted
/v0.5/consents/hiu/notify
/v0.5/consents/hiu/on-notify
consent id (consent artefact id - will be got from consents/hip/notify or consents/hiu/notify from CM)
Only the GRANTED and REVOKED status notifications will be sent to HIP

/v0.5/consents/hip/notify
/v0.5/consents/hip/on-notify

Regards,
FIME