API Design
Webhook Event JSON Example
Webhook payload JSON example matching the format used by Stripe, GitHub, and Shopify webhooks. Includes event type, resource snapshot, and delivery metadata.
Field Reference
idrequiredstringUnique event ID. Store processed IDs to deduplicate re-deliveries — webhooks are at-least-once.typerequiredstringDot-separated event name like order.created or payment.failed. Use consistent naming across your API.versionrequiredstringAPI version that generated this event. Lets consumers handle schema changes gracefully.livemoderequiredbooleanfalse for test/sandbox events. Prevents test events from triggering real business actions.data.objectrequiredobjectFull resource snapshot at the moment the event occurred. Avoids requiring a follow-up API call.delivery.attemptoptionalintegerDelivery attempt count. Increments on retry after a failure or timeout.Variants
GitHub PushShape used by GitHub webhook push events.
Payment FailedEvent fired when a payment attempt fails.
Common Use Cases
- →Real-time notifications when orders, payments, or users change state
- →Triggering CI/CD pipelines on code push via GitHub or GitLab webhooks
- →Syncing data between microservices without polling
webhookeventintegrationStripeGitHub
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
API DesignREST API ResponseGeneric REST API response wrapper with data payload, status, and pagination meta.E-commerceE-commerce OrderFull e-commerce order JSON with line items, pricing, shipping, and payment status.API DesignError ResponseREST API error JSON with status code, machine-readable error code, and validation details.