Skip to main content
The Ko-fi plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • commission (commission)
  • donation (donation)
  • shopOrder (shopOrder)
  • subscription (subscription)

HTTP handler setup

app/api/webhook/route.ts

Events

Commission

Commission

commission A paid commission. Ko-fi documents the type but publishes no example payload. Payload
webhookHooks example

Donation

Donation

donation A tip or donation. amount is a decimal string, and message holds the note left with it. Payload
webhookHooks example

Shop Order

Shop Order

shopOrder A shop purchase, with shop_items and, for physical goods, shipping. Payload
webhookHooks example

Subscription

Subscription

subscription A membership payment, which fires on every payment including the first. tier_name names the tier. Payload
webhookHooks example