Delete Webhook Endpoint
Permanently deletes a webhook endpoint. This action cannot be undone.
After deletion, you will no longer receive events for this endpoint. Make
sure to update your application accordingly.
Request
Bearer token with your API key
The unique identifier of the webhook endpoint to delete
Response
Whether the deletion was successful
ID of the deleted endpoint
curl -X DELETE https://api.swiftpay.cx/api/webhooks/wh_abc123 \
-H "Authorization: Bearer mp_live_your_api_key"
{
"success": true,
"data": {
"id": "wh_abc123",
"deleted": true
}
}
Instead of deleting, consider disabling the endpoint with Update
Webhook if you might need it again.