On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/webhooks/implementation/all/rest/webhooks/wh-fg-subscription-manage-intro/wh-fg-subscription-manage-deactivate-intro.md)  
Filter  
FILTER BY TAG

Deactivate a Webhook Subscription {#wh-fg-subscription-manage-deactivate-intro}
===============================================================================

This section describes how to deactivate a webhook subscription.  
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 PUT request to one of these endpoints. The *`{webhookId}`* is the webhook subscription ID.

* **Test:** `PUT ``apitest.cybersource.com``/notification-subscriptions/v2/webhooks/`*{webhookId}*`/status`
* **Production:** `PUT ``api.cybersource.com``/notification-subscriptions/v2/webhooks/`*{webhookId}*`/status`
* **India Production:** `PUT https://api.in.cybersource.com/notification-subscriptions/v2/webhooks/`*{webhookId}*`/status`

Example: Deactivate a Webhook Subscription {#wh-fg-subscription-manage-deactivate-ex}
=====================================================================================

Request

```keyword
PUT https://apitest.cybersource.com/notification-subscriptions/v2/webhooks/ddb9bced-c3e3-1b1d-e053-9c588e0a3c42
```

Response to a Successful Request

```
{
  "status": "INACTIVE"
}
```

Response Codes {#wh-fg-subscription-manage-deactivate-reply-status}
===================================================================

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](https://developer.cybersource.com/api/reference/response-codes.md "").

REST Interactive Example: Deactivating a Webhook Subscription {#wh-fg-subscription-manage-deactivate-dev-ex}
============================================================================================================

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

#### Figure:

Deactivating a Webhook Subscription [![Image and link to the interactive code example for deactivating a
webhook subscription.](/content/dam/documentation/cybs/en-us/topics/payments-processing/payment-services/webhooks/images/dev-ex-status.png/jcr:content/renditions/original)](https://developer.cybersource.com/api-reference-assets/index.md?stage=pilot#webhooks_manage-webhooks_update-a-webhook-status "")  
RELATED TO THIS PAGE

