# An entity's annual accounts

Source: https://amanucci.com/fr/docs/developers/api/reports/readAnnualAccounts

## GET /v1/entities/{entityId}/annual-accounts

An entity's annual accounts

One entity's annual accounts for a fiscal year in the NBB micro / abbreviated layout: the balance sheet (assets, then equity and liabilities) and the income statement, gross margin first, each rubric with its NBB code, label and last year's figure. The rubrics and the account rules are pack data derived from the NBB taxonomy. An account no rubric takes is listed `unplaced` and the read says it does not balance; a bank in overdraft and a customer or supplier on the wrong side are flagged. Every amount is a decimal string. 422 `annual_accounts_unavailable` for a legal form with no NBB schema. Guarded as `readStatements`.

Operation ID: `readAnnualAccounts`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "previous_year",
        "none"
      ],
      "default": "previous_year"
    },
    "required": false,
    "name": "compare",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^FY\\d{4}$",
      "description": "`FY2026`, named by the year it starts in. Default: the last fiscal year that has ended."
    },
    "required": false,
    "description": "`FY2026`, named by the year it starts in. Default: the last fiscal year that has ended.",
    "name": "fiscalYear",
    "in": "query"
  }
]
```

### Responses

#### 200 The fiscal year's annual accounts.

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

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