How to stop receiving webhooks after a customer churns in HubSpot?

Hello @j4y

To stop receiving webhooks for a particular customer who has churned, you can use the HubSpot’s “unsubscribe” endpoint. This endpoint allows you to unsubscribe the customer’s email address or a specific event subscription from receiving webhooks.

Here are the steps you can follow:

Identify the customer who has churned and whose webhooks you want to unsubscribe.
Use the “unsubscribe” endpoint to unsubscribe the customer’s email address or a specific event subscription.
The “unsubscribe” endpoint requires the email address or event subscription ID that you want to unsubscribe.
Here is an example of how you can unsubscribe a customer’s email address:

DELETE https://api.hubapi.com/webhooks/v1/:appId/subscriptions/:subscriptionId/unsubscribe?email=:email

Replace :appId with your HubSpot application ID, :subscriptionId with the subscription ID that you want to unsubscribe, and :email with the email address of the customer you want to unsubscribe.

Alternatively, if you don’t have the subscription ID, you can also use the customer’s email address to unsubscribe from all events:

DELETE https://api.hubapi.com/webhooks/v1/:appId/unsubscribe/:email

Replace :appId with your HubSpot application ID, and :email with the email address of the customer you want to unsubscribe.

By using this endpoint, you can stop receiving webhooks for a particular customer who has churned without affecting other customers.