Glossary

Stripe Thin Event

A Stripe thin event is a lightweight event notification that carries only identifying information, such as the event type, the event ID, a timestamp and the ID of the related object, so your code fetches the current state of that object from the API instead of reading it from the payload.

Also called: thin events, thin event notification, v2.core.event, event notification, related_object

14-day free trial · card required · cancel anytime

Definition

Stripe delivers events in two formats, and you choose one when you create an event destination. A snapshot event is the format most integrations grew up on: the payload is the complete Event object with a copy of the resource inside it. A thin event is the other format. Stripe describes it as “a lightweight notification containing the event type and resource ID.”

The notification tells you that something happened and what it happened to, and stops there. Stripe lists what it contains: the event type (for example v2.core.account.updated), the event ID, a created timestamp, and the related_object, which holds the ID of the resource “alongside that resource’s type and API URL.” Everything else is a second API call away. As Stripe puts it, “To access the full resource state or additional event data, your code needs to make a subsequent API call using this information.”

Stripe now recommends thin events for new integrations: “Thin events are unversioned, fully typed in the Stripe SDKs, and let your integration fetch the latest resource state.” Both API v1 and API v2 resources generate them, so this is not only an Accounts v2 or Billing meter feature. The catalog includes v1.charge.succeeded, v1.invoice.paid, v1.payout.paid and v1.refund.created alongside the newer v2.core.account events.

Key points

  • +A thin event notification carries the event type, the event ID, a created timestamp, a reason and the related_object (its ID, type and API URL).
  • +It does not carry the resource. You fetch the latest state from related_object.url, or retrieve the full event from the v2 Events API.
  • +The complete thin event adds a changes hash (before and after values) and a data hash with event-specific context.
  • +Thin event payloads are unversioned, so you can upgrade your API version or SDK without changing the event destination.
  • +Stripe recommends thin events for new integrations. Snapshot events remain for tools that need the full payload.
  • +Thin versions of snapshot events use a v1 prefix, for example customer.created becomes v1.customer.created.
  • +During a migration, a thin event that pairs with a snapshot event includes a snapshot_event field holding that event’s ID, which you can use for idempotency.

What the notification contains, and what you fetch next

Stripe’s sample notification is short enough to read whole. It has an id beginning evt_, object set to v2.core.event, a type, livemode, a created timestamp, a context, a reason hash and a related_object hash. In the sample, the reason is a request (with the request ID and idempotency key that caused the change), and the related_object points at an account with a url of /v2/core/accounts/ followed by its ID.

From there Stripe gives you three options. You can retrieve the latest state of the related object through related_object.url. You can retrieve the complete event, which adds two things the notification leaves out: a data hash with contextual information, and a changes hash with the previous values of anything that changed. Or, if the type and the ID are all you need, you can act on the notification with no further call.

The context field matters for platforms. Stripe’s Event object reference describes it as the “Authentication context needed to fetch the event or related object,” which is how a platform knows which connected account to make the follow-up call as.

In the SDKs the two stages have different types. Stripe says the initial payload is typed as {EventType}EventNotification, and after you fetch the full event it is typed as {EventType}Event.

Thin event versus snapshot event

The two formats answer different questions. A snapshot event answers “what did this object look like when the event fired?” A thin event answers “something changed on this object, go and look.”

Stripe’s comparison sets out the trade. A snapshot payload is large because it includes the API object. A thin payload is small because it includes only the object’s ID. Snapshot events are versioned by API version, so the destination’s version decides the payload shape, and if you use a statically typed SDK (.NET, Java or Go) the versions must match or deserialization fails. Thin events are unversioned: “you can upgrade your Stripe SDK or your integration’s API version without changing your event destination configuration.” Snapshot events are listed with the Events v1 API. Thin events are listed with the Events v2 API.

The snapshot format has its own staleness problem. Stripe says the embedded object is “an eventually-consistent snapshot of the updated resource at the time the event was generated,” and because it “can be stale by the time your application processes it,” you should fetch the latest version before acting on it anyway. Thin events build that fetch into the design.

Stripe still names cases for snapshot events: a third-party tool that needs the complete Event object, auditing which fields changed without another call, and integrations that want a point-in-time view and can tolerate eventually consistent data.

Moving from snapshot events to thin events

Stripe’s migration guide runs both formats side by side and then retires the old one. The phases are: add a new thin webhook route, create a thin event destination that mirrors your existing subscriptions, run it in shadow mode, cut over with idempotency, and retire the snapshot destination once it is stable.

Two details make that workable. First, Stripe creates thin versions of your existing snapshot events, so customer.created has a thin counterpart, v1.customer.created. Second, when a single action triggers both, the thin event includes a snapshot_event field with the original snapshot event’s ID. Stripe says to use it “as your idempotency key to prevent duplicate processing when running both handlers simultaneously.”

Handlers that read previous_attributes need one change. Stripe maps previous_attributes to changes.before and the changed values in data.object to changes.after, and notes that on a thin event changes.after “contains only the changed properties, not the complete resource.” The changes hash is null on events with nothing to compare, such as a creation, so check for it before reading it.

If you use Accounts v2, Stripe says you might listen to both formats at once. The account events themselves, such as v2.core.account.updated, are in the thin event catalog.

Why the format matters for your books

An accounting sync is a long chain of “this happened, so record that.” The event format decides what “this” means at the moment you record it.

With a snapshot event, the record can be built from the payload, which is the object as it was when the event fired. With a thin event, the record is built from whatever the object looks like when you fetch it. Most of the time those are the same. They differ when several changes land close together. Suppose a card payment succeeds and is partly refunded a minute later. A handler that fetches the charge on the v1.charge.succeeded notification may already see the refund in amount_refunded. That is usually what you want for a balance, but if your records are meant to show each step on its own date, you need the changes hash from the full event, not just the current object.

The rules that make any webhook handler safe still apply. Stripe tells destinations not to depend on receiving events in a specific order and to track event IDs to catch duplicate deliveries. Live-mode deliveries are retried for up to three days, and the Retrieve event and List events APIs give you full payloads for the past 30 days, which is the window for recovering anything a destination missed.

If you are not writing your own integration, none of this needs action. The format is a choice made by whoever owns the event destination, and the books should look the same either way when the handler is written correctly.

Frequently asked questions

What is a thin event in Stripe?

A thin event is a lightweight event notification. It contains the event type, the event ID, a created timestamp, a reason and the related_object, which gives the ID, type and API URL of the resource that changed. It does not include the resource itself, so your code fetches the current state from the API or retrieves the complete event.

What is the difference between thin events and snapshot events?

A snapshot event includes the complete Event object with a copy of the resource as it was when the event fired, and it is versioned by API version. A thin event includes only identifiers, is unversioned and is typed in the Stripe SDKs. With thin events you fetch the latest state yourself. Snapshot events are listed with the Events v1 API and thin events with the Events v2 API.

How do I see what changed in a Stripe thin event?

Retrieve the complete event, either with fetchEvent() in the SDK or a GET request to /v2/core/events/ with the event ID. The full event has a changes hash with before and after values for the properties that changed. The notification itself has no changes hash, and changes is null on events such as a creation.

Do v1 objects like charges and invoices have thin events?

Yes. Both API v1 and API v2 resources generate thin events. Stripe creates thin versions of snapshot events with a v1 prefix, so the catalog includes types such as v1.charge.succeeded, v1.invoice.paid, v1.payout.paid and v1.refund.created.

Should I switch my webhook endpoint to thin events?

Stripe recommends thin events for new integrations. For an existing integration, Stripe’s migration guide runs a thin destination alongside the snapshot one, uses the snapshot_event field as an idempotency key while both run, and retires the snapshot destination once the thin handler is stable. Keep snapshot events if a third-party tool you rely on needs the full payload.

What customers say about running Stripe through Acodei

Stripe Verified Partner BadgeIntuit QuickBooks
★★★★★
“If you're testing out all the different Stripe/QuickBooks integration apps right now, let me save you some time. This one is the best one by far.”
RyanOwner at Indie Music Academy
★★★★★
“Works well and is really helpful for massive transactions. The support is really fast and helpful. 100% recommended.”
AndresCo-founder and CEO at Kanguro Collections and Reinsurance

Related reading

More glossary terms

See the full glossary

Ready to try Acodei?

Connect Stripe to QuickBooks Online in minutes and let the fees, refunds, and payouts land where your accountant expects them.

14-day free trial · card required · cancel anytime