# The filings' figures

Source: https://amanucci.com/docs/developers/api/filings/getFilingTotals

## GET /v1/entities/{entityId}/filing-totals

The filings' figures

The Filing strip: over every live filing whose day falls in `period` or `from`/`to` (`listFilings`' day: the deadline's due date, else the last period's end, else the window's), counted by the server so no page bound caps them — `next`, the open filing whose deadline is the nearest on or after the business day `asOf`; `ready` (validated, not yet signed); `blocked`, the payloads the schema refused, the first named in `day` order; `accepted`, those holding their proof, and how many were signed on or before their deadline (Brussels day). A firm seat reads with `filing.prepare` or `filing.sign`.

Operation ID: `getFilingTotals`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "date",
      "description": "The first filing day to count, inclusive."
    },
    "required": false,
    "description": "The first filing day to count, inclusive.",
    "name": "from",
    "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",
      "format": "date",
      "description": "The last filing day to count, inclusive."
    },
    "required": false,
    "description": "The last filing day to count, inclusive.",
    "name": "to",
    "in": "query"
  }
]
```

### Responses

#### 200 The strip's figures.

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

#### 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"
    }
  }
}
```
