Event
A recorded event and the resource snapshot associated with it. The snapshot preserves the payload version used when the event was created. Only pending_webhooks changes as webhook deliveries succeed.
The event's type identifies the change and determines the resource in data.object. See Event types for all event types that webhook endpoints can subscribe to and their payload resources.
- idType: stringrequired
Unique event ID. Use this value to retrieve the event through the Events API; it can differ from a webhook delivery's event ID.
- createdType: stringFormat: date-timerequired
Time the event was created, as an RFC 3339 timestamp. Fractional seconds may be included.
- typeType: Event typeenumrequired
Identifies the change recorded by the Event. See Event types for each type's trigger and resource snapshot.
values- checkout
_session .completed Sent when a Checkout Session has been completed.
- payment
.succeeded Sent when a payment has succeeded.
- payment
.failed Sent when a payment has failed.
- payment
_intent .authorized Sent when a Payment Intent has been authorized.
- payment
_intent .captured Sent when a Payment Intent has been captured.
- account
.created Sent when an account has been created.
- account
.updated Sent when an account has been updated.
- account
.capability .requested Sent when a capability has been requested for an account.
- checkout
- accountType: stringrequired
Account that produced the event. Receiving a connected account's webhook does not grant access to that account's event history.
- apiType: string
_version requiredPayload version used for the recorded resource snapshot. Retrieving the event does not convert it to another version.
- livemodeType: booleanrequired
Whether the event occurred in live mode (
true) or test mode (false). - datarequired
Resource snapshot and previous values associated with the event. Choose the resource indicated by
typeand the payload version indicated byapi_version. The recorded snapshot can differ from the resource's current state.Event data for checkout_session.completed; api_version v2.
- objectType: Checkout Session (v2)requiredProperties: 14
Resource snapshot recorded when the event occurred.
- previousType: Previous attributes
_attributes requiredProperties: 1Previous values for changed resource fields, or null when none are supplied. Keys correspond to fields in object and can include dotted paths for nested values.
- pendingType: integer
_webhooks min:0requiredNumber of webhook deliveries that have not succeeded. This includes failed deliveries whose retries have ended. A value of
0means all associated deliveries succeeded or the event had no webhook destinations; it does not confirm payment or resource status. - requestType: Event requestrequiredProperties: 2
Request associated with the event, or
nullwhen no request information is available.

