Skip to content

Events

List events

Returns the events of your store in the environment of the key from the last 30 days, newest first.

GET/v1/events

Requires the events:read scope.

Filter with type (for instance payment.succeeded); page with starting_after.

curl 'https://api.rais.app/v1/events?type=payment.succeeded&limit=3' \
  -H "Authorization: Bearer rais_sk_test_..."
Response200
{
  "object": "list",
  "data": [
    {
      "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"
        }
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Request

Query parameters

typestring

Only events of this type: payment.succeeded, payment.failed, payment.cancelled, payment.reversed, refund.succeeded or refund.failed.

At most 64 characters.

limitinteger

How many objects to return: 1 to 100 (default 20).

Between 1 and 100. Default 20.

starting_afterstring

The cursor of the page to return: pass the next_cursor of the previous page (the id of its last object).

At most 100 characters.

Response

200A page of events.

objectstring

Always list.

Always list.

dataarray of Event

The events of this page, newest first.

See the Event object

has_moreboolean

True when there are older events.

next_cursorstringnullable

The value to pass as starting_after for the next page; null on the last page.

Errors

StatusCodeExample message
400invalid_parameterInvalid value.
400invalid_cursorNo such payment: the starting_after cursor is unknown.
401invalid_api_keyInvalid API key provided.
403insufficient_scopeThis API key does not have the 'payments:write' permission.
403account_disabledThis store is suspended or disabled.
403live_mode_not_enabledComplete business verification to take live payments.
429rate_limit_exceededToo many requests. Slow down and retry after the delay in the Retry-After header.
500internal_errorSomething went wrong on our side. Quote the request id to support.

Every error has the same envelope. See Errors.