Koskamo

Backfill Missed Stripe Webhook Events

Retrieves and processes missed webhook events from the last 30 days to restore data consistency after a disabled endpoint, preventing revenue loss from unprocessed payments or subscriptions.

How it works

Changes data in your accountsOperations and infrastructure

First, identify the root cause of the webhook failure by checking the Stripe Dashboard for error codes like timeouts or 500s. Re-enable the endpoint to resume new events. Then, use the Stripe API to list events with `delivery_success=false` filtered by relevant types. Process these events using an idempotent handler to avoid duplicates, ensuring side effects are applied only once per event ID.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Backfill Missed Stripe Webhook Events
Help me recover from a disabled Stripe webhook. First, explain how to check the Dashboard for failure reasons. Then, provide the API call to fetch missed events using `delivery_success=false`. Finally, suggest an idempotency check to ensure I don't double-process orders during backfill.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

Stripe's List Events API exposes every event from the last 30 days, and it takes a delivery_success filter
Stripe Webhook Endpoint Disabled: Recovery Playbook | AnyHook

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.