An event records something that happened, such as payment.succeeded. It's thin on purpose: it names the object and what happened to it, never the object's data, personal data or a secret. Fetch the object with the API to act on its current state. See Webhooks.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting evt_. A repeat of the same event carries the same ID. |
object | string | Always event. |
type | string | What happened, resource.action. See the event types. |
livemode | boolean | true in live mode. |
related_object | object | The object it's about: its type and id. |
request_id | string or null | The request that caused it, req_..., if one did. |
source | enum | api, dashboard or automatic. |
created | timestamp | When it happened. |
Events are listed for 13 months, in the order Sovgate recorded them, which isn't always the order things happened.
Example
Endpoints
| Endpoint | What it does |
|---|---|
GET /v1/events/{id} | Get an event by its ID. |
GET /v1/events | List your events, in the order recorded. |