# Events

Source: https://amanucci.com/nl/docs/developers/api/events/listEvents

## GET /v1/entities/{entityId}/events

Events

The entity's business events — what the books believe happened: every purchase, sale, payment and bank movement the Assembler minted, beside the finalize door's sales and the manual entries — each with its date, amount, bank row, entry state, evidence, party and live case, and its decision `status`. Unbounded by nature, so it pages by cursor (rule 5), in the walk `order` names. Filters: `kind`, `status`, `period` or `from`/`to` (inclusive, on the decision date), `amountFrom`/`amountTo` (the amount as shown, signed), `q` (a case-insensitive substring of the party's name or the summary). Read-only: the Assembler writes.

Operation ID: `listEvents`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^-?\\d{1,14}(\\.\\d{1,4})?$",
      "example": "500",
      "description": "Only the events whose amount as shown (a credit note's negative, a payment's signed) is at least this decimal, inclusive, in their own currency; an event with no amount never matches. Not above `amountTo`, compared as decimals."
    },
    "required": false,
    "description": "Only the events whose amount as shown (a credit note's negative, a payment's signed) is at least this decimal, inclusive, in their own currency; an event with no amount never matches. Not above `amountTo`, compared as decimals.",
    "name": "amountFrom",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^-?\\d{1,14}(\\.\\d{1,4})?$",
      "example": "500",
      "description": "Only the events whose amount as shown is at most this decimal, inclusive, in their own currency."
    },
    "required": false,
    "description": "Only the events whose amount as shown is at most this decimal, inclusive, in their own currency.",
    "name": "amountTo",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token)."
    },
    "required": false,
    "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token).",
    "name": "cursor",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "format": "date"
    },
    "required": false,
    "name": "from",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "purchase",
        "sale",
        "credit_note",
        "payment",
        "salary",
        "loan",
        "tax_payment",
        "asset_disposal",
        "dividend",
        "bank_movement",
        "opening_balance",
        "period_adjustment",
        "manual_entry",
        "migrated_entry"
      ]
    },
    "required": false,
    "name": "kind",
    "in": "query"
  },
  {
    "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 200,
      "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced."
    },
    "required": false,
    "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced.",
    "name": "limit",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "id",
        "day",
        "day.desc",
        "day.asc",
        "amount.desc",
        "amount.asc"
      ],
      "default": "id",
      "description": "The walk. `id` (the default): newest minted first, by when the event came to be, then id — the log. `day`: newest decision date first, then newest id. Every other walk is a key and a direction, a view whose rows sharing the key come by when the event came to be, then the id, in the walk's direction, a row with no value for the key last both ways: `day.desc` / `day.asc` the decision date; `amount.desc` / `.asc` the amount as shown (a credit note's negative, a payment's signed), the entity's functional currency first and every other after it by code. A cursor resumes only the walk that minted it: change the order and start at the first page."
    },
    "required": false,
    "description": "The walk. `id` (the default): newest minted first, by when the event came to be, then id — the log. `day`: newest decision date first, then newest id. Every other walk is a key and a direction, a view whose rows sharing the key come by when the event came to be, then the id, in the walk's direction, a row with no value for the key last both ways: `day.desc` / `day.asc` the decision date; `amount.desc` / `.asc` the amount as shown (a credit note's negative, a payment's signed), the entity's functional currency first and every other after it by code. A cursor resumes only the walk that minted it: change the order and start at the first page.",
    "name": "order",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "The days to list, resolved by the server against today in the books' own day (Europe/Brussels): `7d` and `30d` (the last 7 or 30 days, today included), `month`, `last-month`, `quarter`, `last-quarter` and `year` (the whole calendar unit holding today, or the one before it), a year `2026`, a quarter `2026-q3`, a month `2026-03`, `all` (no bound), or a day range `2026-01-05..2026-02-10` (inclusive, its ends in order). Not with `from` or `to`.",
      "example": "quarter"
    },
    "required": false,
    "description": "The days to list, resolved by the server against today in the books' own day (Europe/Brussels): `7d` and `30d` (the last 7 or 30 days, today included), `month`, `last-month`, `quarter`, `last-quarter` and `year` (the whole calendar unit holding today, or the one before it), a year `2026`, a quarter `2026-q3`, a month `2026-03`, `all` (no bound), or a day range `2026-01-05..2026-02-10` (inclusive, its ends in order). Not with `from` or `to`.",
    "name": "period",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "A case-insensitive substring, 1..100 characters; `%` and `_` match themselves."
    },
    "required": false,
    "description": "A case-insensitive substring, 1..100 characters; `%` and `_` match themselves.",
    "name": "q",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "needs_you",
        "waiting",
        "proposed",
        "posted"
      ]
    },
    "required": false,
    "name": "status",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "format": "date"
    },
    "required": false,
    "name": "to",
    "in": "query"
  }
]
```

### Responses

#### 200 One page of events.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/EventPage"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
