Delete a webhook

To delete a registered webhook, you can make use of the following endpoint in your API.

This endpoint requires authenticated access, see here for more details.

https://payments.yoco.com/api/webhooks/{id}

Headers

ParameterTypeDescription
Authorization
string
The secret key for your account.

Path parameters

ParameterTypeDescription
id
string
The unique identifier for the webhook.
important

You can find the webhook identifier by calling the API endpoint specified in List all webhooks.

Sample request

curl --location --request DELETE 'https://payments.yoco.com/api/webhooks/sub_PgrMbbNpWGVc147s6AnHM6aE' \
--header 'Authorization: Bearer <secret key>'
important

Replace <secret-key> with your secret API integration key. For more information, see here.

Sample response

HTTPS: 200 OK
{
"message" : "subscription sub_PgrMbbNpWGVc147s6AnHM6aE successfully deleted"
}