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
idstringrequiredUnique event ID. Store processed IDs to deduplicate re-deliveries — webhooks are at-least-once.typestringrequiredDot-separated event name like order.created or payment.failed. Use consistent naming across your API.versionstringrequiredAPI version that generated this event. Lets consumers handle schema changes gracefully.livemodebooleanrequiredfalse for test/sandbox events. Prevents test events from triggering real business actions.data.objectobjectrequiredFull resource snapshot at the moment the event occurred. Avoids requiring a follow-up API call.delivery.attemptintegeroptionalDelivery 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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.