---
title: "XBRL accounting / calculation linkbase checks across an entity's filings"
method: GET
path: "/api/v1/entities/{entity_id}/validation-results"
tags: ["Entities"]
---

# XBRL accounting / calculation linkbase checks across an entity's filings

`GET /api/v1/entities/{entity_id}/validation-results`

## Request

- Base URL: `https://api.hub-equity.com`
- URL: `https://api.hub-equity.com/api/v1/entities/{entity_id}/validation-results`
- Auth: HTTP bearer

Entity-scoped variant of `/filings/{id}/validation-results`: surfaces the accounting and calculation checks run on the entity's filings (optionally one fiscal year). `accounting_equation` / `calculation` / `hub_calculation` checks.

Default `status_filter` = `['warning','error']`. Sorted by severity then |relative_difference|, capped at 100 rows.

## Path parameters

- `entity_id` string, required

## Query parameters

- `fiscal_year` integer, nullable: Restrict to one fiscal year.
- `status_filter` string[], nullable: Statuses to include. Default ['warning','error']. Repeat the param for multiple (e.g. ?status_filter=valid&status_filter=skipped).

## Response `200`

Validation checks for the entity.

- ApiResponseValidationResult
  - `success` boolean, required
  - `data` ValidationResult
    - `entity_id` string, nullable
    - `entity_name` string, nullable
    - `filing_id` string, nullable
    - `fiscal_year` integer, nullable
    - `total_count` integer, required
    - `checks` ValidationCheck[], required
      - `validation_type` string, required: accounting_equation | calculation | calculation_filing | dqc_cf_sign | dqc_0015_never_negative
      - `status` string, required: valid | info | warning | error | skipped
      - `hub_concept_code` string, nullable
      - `expected_value` number, nullable
      - `actual_value` number, nullable
      - `difference` number, nullable
      - `relative_difference` number, nullable: Signed fraction (0.01 = 1% gap). NULL when not computable.
      - `details` object, nullable
      - `filing_id` string, nullable
    - `applied_filters` object
    - `notes` string[]
  - `error` ApiError: API error details.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` ApiMeta: API response metadata. Pagination fields (``page`` / ``per_page`` / ``total``) are populated on collection endpoints only. They are omitted from the payload on single-resource endpoints.
    - `timestamp` string, date-time
    - `request_id` string, nullable
    - `page` integer, nullable
    - `per_page` integer, nullable
    - `total` integer, nullable
  - `links` ApiLinks: HATEOAS-style pagination cursors. Host-relative path + query links for a collection page. Present on collection endpoints, ``null`` fields where a page doesn't exist (``next`` on the last page, ``prev`` on the first). The whole ``links`` object is omitted from single-resource responses (see ``ApiResponse`` serializer).
    - `self` string, nullable
    - `first` string, nullable
    - `prev` string, nullable
    - `next` string, nullable
    - `last` string, nullable

## Other responses

- `404`: Entity not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/hub-equity/apis/hub-equity-api.md) · [All operations](https://skmtc.dev/hub-equity/apis/hub-equity-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hub-equity/apis/hub-equity-api/revisions/e8eeda5dc13e?raw)
