On This Page
Webhook Health Check and Automatic Revalidation
When you subscribe to a webhook event,
Cybersource
recommends that you
include a health check URL in the subscription request. Including a health check URL
enables Cybersource
to monitor your server status for reliability. If
Cybersource
detects that your health check URL is unresponsive,
notification deliveries are withheld until your health check URL becomes responsive
again. This ensures that you do not miss any notifications.To add a health check URL to your subscription request, include the
healthCheckurl
field and set it to your health check URL.
You must also include the deactivateflag
field and
set it to true
in order for Cybersource
to withhold
notifications for periods when your server becomes unresponsive.Automatic Activation
After successfully creating a subscription,
Cybersource
immediately pings your
health check URL. If Cybersource
receives a response, the
subscription status automatically becomes ACTIVE
and notifications
are delivered. When Cybersource
does not receive a response, your
subscription status remains SUSPENDED
until Cybersource
receives a response. If you did not include a health check
URL when you created the subscription, Cybersource
pings your
webhook URL for automatic activation instead. You can also activate a subscription
that is not automatically activated by sending a PUT request. For more information,
see Activating a Webhook Subscription.Automatic Revalidation
After the subscription's initial activation,
Cybersource
continues to
monitor your server status. If Cybersource
detects that your server
is unavailable, your subscription status automatically updates to
SUSPENDED
and notifications are withheld. When Cybersource
detects that your server is available again, your
subscription status automatically updates to ACTIVE
and all
withheld notifications are delivered.