API specifications
APIs to enable notifications
Key Design Considerations
List supported notifications
API details
This API is for the participants in the network to check the master list of notifications available to them.
OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
Subscription to notifications
API details
This API is for the participants in the network to check the master list of notifications available and subscribe to them.
The participant should send the below details in the request body while making a call for notification subscription.
- The notification topic_code (as topic_code) to understand the notification to which the participant want to subscribe.
- The sender_list from whom the notification will be expected by the subscriber.
The response to this API could be one of the following:
- A successful accepted (202) response from the HCX gateway if the strucuture of the request is valid and the validation of open attributes (protocol headers) is successful. Upon successful validation, HCX gateway forwards the same request to the intended recipient asynchronously.
- A successful OK (200) response from the HCX gateway if the strucuture of the request is valid and the validation of open attributes (protocol headers) is successful and the recipient is HCX gateway. There is no callback expected in this case.
- An error response if any of the validations fail.
If the request is validated and accepted by HCX gateway, based on recipient it will be processed. If it recipient is not HCX gateway, the request will be forwarded to recipient and the participant should expect a response via callback API from recipient.
OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
This API is for the participants in the network to check the subscription list and unsubscribe to them. The participant should send the below details in the request body while making a call for notification unsubscription.
- The protocol headers defined and used by all the other APIs to understand the sender, recipient, status etc,.
- The notification topic_code (as x-hcx-notification_subscription.topic_code) to understand the notification to which the participant want to unsubscribe.
The response to this API could be one of the following:
- A successful accepted (202) response from the HCX gateway if the strucuture of the request is valid and the validation of open attributes (protocol headers) is successful. Upon successful validation, HCX gateway forwards the same request to the intended recipient asynchronously.
- A successful OK (200) response from the HCX gateway if the strucuture of the request is valid and the validation of open attributes (protocol headers) is successful and the recipient is HCX gateway. There is no callback API call expected in this case.
- An error response if any of the validations fail.
If the request is validated and accepted by HCX gateway, based on recipient it will be processed. If it recipient is not HCX gateway, the request will be forwarded to recipient and the participant should expect a response via callback API from recipient.
OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
This API is for the participants to get the notification subscription list.
The participant should send the below details in the request body.
OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
Trigger notifications
API details
This API is for the participants to explicitly send the notification to recipients via HCX gateway. The participant should send the below details in the request body while making a call to send notification.
The notification protected headers defined and used by all the other APIs to understand the sender, recipient_type, recipients etc,.
description - work in progress.
The response to this API could be one of the following:
- A successful ok (200) response from the HCX gateway if the strucuture of the request is valid and the validation of open attributes (protocol headers) is successful. Upon successful validation, HCX gateway forwards the same request to the intended recipient asynchronously.
- An error response if any of the validations fail.
The HCX gateway will send the notification to all the recipients of the notification if the x-hcx-recipient_id is HCX gateway identifier.
OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
Updating the notification subscriptions
Subscription update alerts
API Details
This API is for the participants to explicitly send the notification to recipients via HCX gateway. The participant should send the below details in the request body.
- The notification topic_code (as topic_code) to understand the notification to which the participant want to subscribe.
- The sender_list from whom the notification will be expected by the subscriber.
- The status of the subscription.
The response to this API could be one of the following:
- A successful OK (200) response from the HCX gateway if the strucuture of the request is valid. There is no callback expected in this case.
- An error response if any of the validations fail.
If the request is validated and accepted by HCX gateway, based on recipient it will be processed. The changes to the subscription should be notified to the subscriber(s).
Unique notification identifier from HCX gateway using the master list.
NOTIFICATION@HCX01The list of subscribers to which the the subscription data will be updated.
PROVIDER@HCX011OK
Request Validation failed
Requested resource was not found
Downstream systems down/unhandled exceptions.
Last updated
Was this helpful?