Delete a subscription
If you no longer need to receive event notifications from Tango, you can delete your webhook subscription using the DELETE http method. Here's how it works:
Use {URI} placeholder for the actual URI of the API you are working with.  /webhooks/{webhookId} is the specific path of the endpoint that targets the webhook you want to delete. Replace {webhookId} with the unique identifier of the webhook.
| Endpoint | Purpose | 
|---|---|
| DELETE {URI}/webhooks/{webhookId} | To delete a webhook subscription that’s no longer needed referencing its unique webhook ID | 
The following request and response shows deleting webhook subscription using DELETE {URI}/webhooks/{webhookId}. When you make this request, the server will delete the webhook with the specified ID. If the deletion is successful, you will receive a response code of 200 Ok, indicating that the webhook was deleted successfully.
--- Request
curl --request DELETE \
     --url https://integration-api.tangocard.com/raas/v2/webhooks/{webhookId} \
     --header 'accept: application/json' \
     --header 'authorization: Basic or OAuth...' \
     --header 'content-type: application/json'
-- Response
200 The possible response codes for this endpoint are as follows. For details, see i18nkey codes and their error messages:
- 200 OK
- 400 Bad Request
- 404 Not Found
- 422 Unprocessable Entity
Updated about 1 month ago
