ZyloPaydocs
Webhook endpoints

Delete a webhook endpoint

Stop all deliveries to the endpoint.

DELETE/v1/webhook_endpoints/{id}scope webhooks:manage

Pending deliveries are dropped; the delivery log is kept.

Path parameters

idstringrequired

Webhook endpoint ID (we_…).

Headers

ZyloPay-Versionstring

Pin the request to an API version (2026-09-28). Defaults to the version the API key was created with.

Idempotency-Keystring

Recommended. 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

StatusMeaning
400Invalid request (invalid_request_error / idempotency_error).
401Missing, invalid, expired or revoked API key (authentication_error).
403The key lacks the scope, the IP is not allowed, or the account is disabled (permission_error).
409Conflict: idempotency key reused or in progress, or the object is in the wrong state.
429Rate limit reached for this key (rate_limit_error); see Retry-After.
500Internal 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
}

On this page