Webhook endpoint · live running on QuikRun

Refund alerts, ready to receive.

POST a Stripe-style charge.refunded event to this URL and get back a clean, structured alert: money formatted, who was refunded, why, and when. Configure a webhook secret and it fans out to Slack.

Expected event shape

POST · JSON
POST /   content-type: application/json

{
  "type": "charge.refunded",
  "data": {
    "object": {
      "id": "ch_3P9x2c...",
      "amount_refunded": 4200,
      "currency": "usd",
      "customer": "cus_Q7pLmN4kXyZ",
      "created": 1721390400,
      "refunds": { "data": [{ "reason": "requested_by_customer" }] }
    }
  }
}

Example alert produced

charge.refunded
Amount refunded
42.00 USD
Customer
cus_Q7pLmN4kXyZ
Reason
Requested By Customer
Charge
ch_3P9x2c2eZvKYlo2C1a2b3c4d
When
2024-07-19T12:00:00.000Z
Event
charge.refunded
Set env.SLACK_WEBHOOK to fan real refunds out to Slack. Nothing is hardcoded.
:money_with_wings: Refund issued: 42.00 USD for cus_Q7pLmN4kXyZ (Requested By Customer) at 2024-07-19T12:00:00.000Z. Charge ch_3P9x2c2eZvKYlo2C1a2b3c4d.

Try it: curl -X POST this URL with the JSON above, or just reload to see the example rendered.

Built on QuikRun· fork it