Skip to main content

Webhooks API

List Webhooks

GET /api/webhooks

Create Webhook

POST /api/webhooks
{
  "merchantId": "clx...",
  "url": "https://your-api.com/webhook",
  "events": ["payment_page.payment", "invoice.paid"],
  "secret": "whsec_your_signing_secret"
}

Update Webhook

PATCH /api/webhooks/:id

Delete Webhook

DELETE /api/webhooks/:id

Test Webhook

POST /api/webhooks/:id/test
Sends a test payload to verify your endpoint is reachable and returns the response status.

Webhook Delivery Log

GET /api/webhooks/:id/deliveries?page=1
Returns delivery history with status codes, response times, and retry counts.