ZyloPaydocs
Webhook endpoints

Send a test event

Deliver a ping event to the endpoint now (one attempt) and return the delivery, with your endpoint's response.

POST/v1/webhook_endpoints/{id}/testscope webhooks:manage

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 the webhook delivery object.

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/test \
  -X POST \
  -H "Authorization: Bearer $ZYLOPAY_SECRET_KEY"

Example response

{
  "id": "wdl_2Hd7Ns4Lb9Rw6Pv1Xk3Zm8Tq",
  "object": "webhook_delivery",
  "livemode": false,
  "endpoint": "we_2Lk9Qm4Xz7Pv1Rt8Wb3Ns6Hd",
  "event": "evt_5Td1Ns3Vb8Xr4mKLw9Zp2Hq7",
  "event_type": "ping",
  "status": "succeeded",
  "attempts": 1,
  "manual": true,
  "next_attempt_at": null,
  "last_attempt_at": "2026-09-28T10:05:00.000Z",
  "last_status_code": 200,
  "last_error": null,
  "created": "2026-09-28T10:05:00.000Z",
  "completed_at": "2026-09-28T10:05:00.000Z"
}

On this page