Webhook endpoints
Delete a webhook endpoint
Stop all deliveries to the endpoint.
DELETE
/v1/webhook_endpoints/{id}scope webhooks:managePending deliveries are dropped; the delivery log is kept.
Path parameters
idstringrequiredWebhook endpoint ID (
we_…).
Headers
ZyloPay-VersionstringPin the request to an API version (2026-09-28). Defaults to the version the API key was created with.
Idempotency-KeystringRecommended. A unique key per operation (a UUID v4); retries with the same key and body return the first response.
Returns
HTTP 200 with { id, object: "webhook_endpoint", deleted: true }.
Errors
| Status | Meaning |
|---|---|
400 | Invalid request (invalid_request_error / idempotency_error). |
401 | Missing, invalid, expired or revoked API key (authentication_error). |
403 | The key lacks the scope, the IP is not allowed, or the account is disabled (permission_error). |
409 | Conflict: idempotency key reused or in progress, or the object is in the wrong state. |
429 | Rate limit reached for this key (rate_limit_error); see Retry-After. |
500 | Internal error (api_error). Retry with the same Idempotency-Key. |
Branch on error.code. Every code is listed in error codes.
Example request
curl https://zylopay-api.fly.dev/api/v1/webhook_endpoints/we_2Lk9Qm4Xz7Pv1Rt8Wb3Ns6Hd \
-X DELETE \
-H "Authorization: Bearer $ZYLOPAY_SECRET_KEY"Example response
{
"id": "we_2Lk9Qm4Xz7Pv1Rt8Wb3Ns6Hd",
"object": "webhook_endpoint",
"deleted": true
}