KwitKwit Docs

Webhooks

Receive billing events in your application

llms.txtReceive billing events in your application

Register endpoints under Developers → Webhooks. Kwit signs each delivery for verification.

Headers

HeaderDescription
Kwit-Signaturet=<unix>,v1=<hmac>
Kwit-EventEvent type, e.g. invoice.paid

Verify with SDK

const event = kwit.webhooks.verify(
  rawBody,
  req.headers["kwit-signature"],
  req.headers["kwit-event"],
  process.env.KWIT_WEBHOOK_SECRET,
);

Event types

customer.created, customer.updated, customer.deleted, subscription.created, subscription.updated, subscription.canceled, subscription.renewed, subscription.payment_succeeded, subscription.payment_failed, invoice.created, invoice.paid, invoice.voided.

Always respond with 200 quickly; process asynchronously in your worker queue.

On this page