Retrieve an event

Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.

get/v1/events/{id}

Path parameters

idstring required

Query parameters

expandstring[]

Specifies which fields in the response should be expanded.

Response

Successful response.

accountstring

The connected account that originates the event.

api_versionstring nullable

The Stripe API version used to render data. This property is populated only for events on or after October 31, 2014.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

idstring required

Unique identifier for the object.

livemodeboolean required

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

object'event' required

String representing the object's type. Objects of the same type share the same value.

pending_webhooksinteger required

Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.

typestring required

Description of the event (for example, invoice.created or charge.refunded).

Changes