FILTER BY TAG

Delete a Webhook Subscription

This section describes how to delete a webhook subscription. Deleting a webhook subscription does not delete the history of webhook notifications.
This request requires the webhook subscription ID. The subscription ID is in the
webhookId
response field from the
create a webhook subscription
request.

Endpoints

Send a DELETE request to one of these endpoints. The
{webhookId}
is the webhook subscription ID.
  • Test:
    DELETE
    apitest.cybersource.com
    /notification-subscriptions/v2/webhooks/
    {webhookId}
  • Production:
    DELETE
    api.cybersource.com
    /notification-subscriptions/v2/webhooks/
    {webhookId}
  • India Production:
    DELETE https://api.in.cybersource.com/notification-subscriptions/v2/webhooks/
    {webhookId}

Example: Deleting a Webhook Subscription

DELETE
https://apitest.cybersource.com
/notification-subscriptions/v2/webhooks/b555a545-58a9-47c7-aef9-10a8e17f201a
{ "status": "successfully deleted" }

Response Codes

A successful request is indicated by the 200-level response code.
For more information about all of the possible response codes you can receive, see
Transaction Response Codes
.

REST Interactive Example: Deleting a Webhook Subscription

Click this image to access the interactive code example for deleting a webhook subscription.

Figure:

Deleting a Webhook Subscription
Image and link to the interactive code example for deleting a
                                webhook subscription.