# The Event object

> An event records something that happened to a payment or a refund.

Source: https://rais.app/docs/api/objects/event

The same object is sent, signed, to your webhook endpoints and can be read with the events API for 30 days.

## Attributes

- `id` (string): The unique identifier of the event.
- `object` (string): The type of the object. Always `event`.
- `api_version` (string): The API version the payload was rendered with.
- `created` (integer): When the event happened (Unix time, seconds).
- `livemode` (boolean): `false` for a sandbox event.
- `type` (string): What happened. One of `payment.succeeded`, `payment.failed`, `payment.cancelled`, `payment.reversed`, `refund.succeeded`, `refund.failed`.
- `data` (object): The object the event is about.
  - `object` (object): The Payment or Refund object as it was when the event happened.

## Example

```json
{
  "id": "evt_Qm9dMhJ0k8s2Wv7Yc3XnLpAb",
  "object": "event",
  "api_version": "2026-10-26",
  "created": 1793000300,
  "livemode": false,
  "type": "payment.succeeded",
  "data": {
    "object": {
      "id": "5b1c2f4e-9d3a-4c61-8a7e-0f2d6b9e1a33",
      "object": "payment",
      "status": "paid",
      "amount": 500000,
      "currency": "DZD"
    }
  }
}
```
