Skip to content
Hardcount
Run it locally
Pre-1.0 · one maintainer · Stripe and cards only · no SDKs (client libraries) yet · no production users yet. Docs describe v0.12.0 (30 Nov 2026) · What’s new →

The webhook event object

One outbound webhook event, as Hardcount created it. GET /v1/webhook-endpoints/events lists them. Each delivery POSTs {"id", "event_type", "created_at", "data"} to the endpoint, where data is this event’s payload.

{
"id": "hc_whevt_dbj84biq3gpgqfoq5c8g",
"tenant_id": "hc_ten_dajqj02q3gpgqfoq5c00",
"livemode": false,
"event_type": "credit.balance_depleted",
"payload": {
"credit_balance": {
"customer_id": "hc_cus_dakhnk2q3gpgqfoq5c0g",
"currency": "USD",
"balance_cents": 0,
"total_granted": 5000,
"total_used": 5000,
"total_expired": 0,
"total_retired": 0,
"total_deducted": 0
}
},
"created_at": "2026-11-01T00:05:00Z"
}
Field Type Always present What it means
id string Yes The event’s id (hc_whevt_…). A replay has its own id but is sent with the original event’s id and created_at.
tenant_id string No The account the event belongs to.
livemode boolean Yes The mode the event happened in. Only endpoints of the same mode get it.
event_type string Yes What happened, such as invoice.finalized. Webhook events lists every type.
payload object Yes The event’s data: the resource the event is about, under the resource’s name (invoice, subscription, customer, payment_method, dunning_run or credit_balance), as the API returns it, and the few keys the event adds beside it. Webhook events lists what each event carries; payment.dispute_opened and payment.dispute_closed carry a DisputeWebhookEventData; payment.refunded_in_stripe carries a StripeRefundWebhookEventData.
created_at string (date-time) Yes When the event was created.
replay_of_event_id string No Set on a replay. The original event it copies; a replay of a replay points to that same original. Absent on an original event.

Stuck, or found a bug? Ask in Discussions · Open an issue