Sign in
An image of the Stripe logo
Create account
Sign in
Home
Payments
Business operations
Financial services
Developer tools
No-code
All products
Home
Payments
Business operations
Home
Payments
Business operations
Financial services
Developer tools
Overview
Developer tools
    Get started
    Quickstarts
    Stripe Shell
    Stripe CLI
    Dashboard
    Stripe for Visual Studio Code
    Webhooks
      Events overview
      Listen for events
      Webhook builder
      Test webhooks
      Check signatures
      Best practices
      Go live
    File uploads
    Error handling
    Security at Stripe
    API
    API keys
    Upgrades
    Changelog
    Rate limits
    Automated testing
    Data Availability
    Expanding responses
    Domains and IP addresses
    Search
    Building With Stripe
    Prebuilt iOS UI
    Prebuilt Android UI
    Extensions
    Samples
    Checklist
    Feedback
SDKs
Sample projects
Videos
Stripe Apps
Stripe Connectors
Partners
HomeDeveloper toolsWebhooks

Stripe webhook events overview

Learn about webhooks and how events are triggered for your account.

Webhooks allow you to automate custom backend actions in response to the transitions that happen in a payment flow.

Why use webhooks

Let’s say you’ve registered to receive the checkout.session.completed event and a customer clicks the “Pay” button in your app or website. A webhook between Stripe and your app tells your app whether the customer’s payment is successful or not. After your webhook endpoint receives the checkout.session.completed event, your webhook function can then run backend actions to fulfill an order–such as calling your shipping provider’s APIs to schedule a shipment. Using an API for this workflow is like calling the API every millisecond to ask, was the payment successful?

Events overview

Events are our way of letting you know when something interesting happens in your account. When an event occurs, we create a new Event object. If you registered a webhook endpoint to receive that event, we send it to your endpoint as part of a POST request.

{ "object": { "id": "in_1KnN0G589O8KAxCGfVSpD0Pj", "object": "invoice", "account_country": "US",

How events are logged

This table describes the different ways Stripe logs an Event for your account.

SourceTriggerEvents
APIWhen user actions in your app or website result in an API call.Logs one or more events on the Events page.
DashboardWhen you call an API by modifying your Stripe resources in the Stripe Dashboard.Logs one or more events on the Events page.
APIWhen you manually trigger an event with the Stripe CLI.Logs one or more events on the Events page.
APIWhen you call an API directly with the Stripe CLI.Logs one or more events on the Events page.

See also

  • Learn how to stream events as they happen in your account.
  • Learn how to get started with webhooks by building a webhook endpoint.
Was this page helpful?
Need help? Contact Support.
Watch our developer tutorials.
Check out our product changelog.
Questions? Contact Sales.
Powered by Markdoc
You can unsubscribe at any time. Read our privacy policy.
On this page
Why use webhooks
Events overview
How events are logged
See also
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Login to your Stripe account and press Control + Backtick on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g. )
The Stripe Shell is best experienced on desktop.
$