Webhook delivery (v0)
Payload, event order and retries for webhook endpoints that use the old format (v1), the one API v0 integrations read.
This page is for API v0 integrations: endpoints added with Format: Old format (v1). For endpoints in the current format, see Webhooks overview.
To add an old-format endpoint, follow Set up webhooks and pick Old format (v1) under Format. Check each call as described in Webhook signatures (v0).
Event payload
Each webhook delivers a JSON payload containing an Event object:
{
"id": "770e8400-e29b-41d4-a716-446655440010",
"type": "payment_success",
"idempotencyKey": "770e8400-e29b-41d4-a716-446655440010",
"testMode": false,
"data": {
"order": {
"object": "order",
"id": "ord_xyz789"
// ... order details
}
}
}The keys inside data differ between payment events and subscription events — check
Payload shape by event before reading one.
Subscription checkouts and fulfillment
New subscriptions emit separate events from different stages of checkout. They can arrive in any order.
| Event | When it fires | Use for fulfillment? |
|---|---|---|
subscription_created | Stripe creates the subscription object (often while the first payment is still PENDING) | No — informational only unless data.lastPayment.status is PAID |
payment_success | The initial or renewal payment is confirmed (PAID) | Yes — grant access, deliver goods, sync your database |
subscription_updated | The subscription status changes (e.g. incomplete → active once the first payment confirms) | Reconcile — treat it as a prompt to re-check state, not as an ordered source of truth |
Do not fulfill subscription purchases on subscription_created alone when data.lastPayment.status or data.subscription.status is PENDING or incomplete. Wait for payment_success, or ignore the event until payment fields show PAID / active.
Subscription events carry data.lastPayment, not data.order or data.payment — those keys only exist on payment events. See Payload shape by event.
Webhook events can arrive out of order, and you cannot reorder them from the payload. Delivery is asynchronous, retried, and batched, and the event payload carries no timestamp to sort by. Because subscription_created (incomplete) and payment_success (active) race, a stateless consumer can receive active and then incomplete for the same subscription.
Handle this explicitly — do not derive the current state from whichever event happened to arrive last:
- Don't regress on stale events. Never downgrade a subscription you have already seen as
active/PAIDbecause a later-deliveredsubscription_createdorsubscription_updatedreportsincomplete. - Reconcile from the API when it matters. A
subscription_updatedevent tells you the status changed; to get the authoritative current status, retrieve the subscription withGET /v0/subscriptions/{id}rather than trusting the status on the last event you received.
Enable payment_success on every webhook endpoint that fulfills orders. If only subscription_created is selected, you will not receive a paid signal when checkout completes.
For renewals, use payment_success (initial and interval charges) or subscription_interval depending on your integration; the initial signup should always key off payment_success for the first charge.
Delivery and retries
Fungies guarantees at-least-once delivery for all webhook events. Your endpoint should handle potential duplicate events idempotently.
| Behavior | Details |
|---|---|
| Protocol | HTTPS (required for production) |
| Method | POST |
| Expected response | 2xx status code |
| Repeated failures | The endpoint is disabled after 10 consecutive failed events |
How long Fungies waits and how often it tries again depends on which delivery system sends your workspace's webhooks. Workspaces are moving to the new one; until yours has moved, the first column applies.
| Behavior | Until your workspace moves | After your workspace moves |
|---|---|---|
| Timeout | 25 seconds | 10 seconds |
| Retry attempts | Up to 5 retries after the first try | 12 tries in all |
| Retry interval | About 5 minutes apart | The gaps double from 30 seconds, then about 22 hours apart, for at least three days |
An endpoint that fails 10 events in a row (each after its retries are exhausted) is set to
inactive and stops receiving events until you re-enable it. See
Automatic disabling.
After your workspace moves, retries, redirects and an address that does not resolve work the same as for endpoints in the current format: see Delivery and retries.
Last updated