---
title: "Get chain"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sureshake.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sureshake API › filings

`GET /v2/filings/chain/{entityId}/{schemaType}`

## Path parameters

- `entityId` (`filing-get-chain.path.entityId`; string, required)
  - format `uuid`
- `schemaType` (`filing-get-chain.path.schemaType`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sureshake.com/v2/filings/chain/<entityId>/<schemaType>'
```

### TypeScript

```typescript
const url = 'https://api.sureshake.com/v2/filings/chain/<entityId>/<schemaType>';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sureshake.com/v2/filings/chain/<entityId>/<schemaType>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Default Response

#### Example

```json
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
      "schemaType": "income_statement",
      "schemaVersion": "string",
      "reportingPeriodId": "4d3a574f-0d14-4aef-b0da-4f1f86c93716",
      "status": "draft",
      "content": {
        "property1": null,
        "property2": null
      },
      "contentHash": "string",
      "chainHash": "string",
      "previousFilingId": "9fc03ee5-508d-4b05-b0f6-b18b684875ec",
      "idempotencyKey": "string",
      "verificationTier": "L0",
      "verificationMeta": {
        "property1": null,
        "property2": null
      },
      "createdBy": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "submittedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0,
    "hasMore": true,
    "page": 0,
    "totalPages": 0
  }
}
```

- `data` (`filing-get-chain.response.200.data`; array<object>, required)
  - `id` (`filing-get-chain.response.200.data.id`; string, required)
    - format `uuid`
  - `entityId` (`filing-get-chain.response.200.data.entityId`; string, required)
    - format `uuid`
  - `schemaType` (`filing-get-chain.response.200.data.schemaType`; string, required)
    - one of `"income_statement"`, `"balance_sheet"`, `"cash_flow_statement"`, `"statement_of_financial_condition"`, `"accounts_receivable_aging"`, `"accounts_payable_aging"`, `"inventory_aging"`, `"customer_concentration"`, `"vendor_concentration"`, `"debt_schedule"`, `"cash_and_bank_summary"`
  - `schemaVersion` (`filing-get-chain.response.200.data.schemaVersion`; string, required)
  - `reportingPeriodId` (`filing-get-chain.response.200.data.reportingPeriodId`; string, required)
    - format `uuid`
  - `status` (`filing-get-chain.response.200.data.status`; string, required)
    - one of `"draft"`, `"submitted"`, `"verified"`, `"amended"`
  - `content` (`filing-get-chain.response.200.data.content`; map<unknown>, required)
  - `contentHash` (`filing-get-chain.response.200.data.contentHash`; string, required, nullable)
  - `chainHash` (`filing-get-chain.response.200.data.chainHash`; string, required, nullable)
  - `previousFilingId` (`filing-get-chain.response.200.data.previousFilingId`; string, required, nullable)
    - format `uuid`
  - `idempotencyKey` (`filing-get-chain.response.200.data.idempotencyKey`; string, required, nullable)
  - `verificationTier` (`filing-get-chain.response.200.data.verificationTier`; string, required)
    - one of `"L0"`, `"L1"`, `"L2"`
  - `verificationMeta` (`filing-get-chain.response.200.data.verificationMeta`; map<unknown>, required, nullable)
  - `createdBy` (`filing-get-chain.response.200.data.createdBy`; string, required)
  - `createdAt` (`filing-get-chain.response.200.data.createdAt`; string, required)
    - format `date-time`
  - `updatedAt` (`filing-get-chain.response.200.data.updatedAt`; string, required)
    - format `date-time`
  - `submittedAt` (`filing-get-chain.response.200.data.submittedAt`; string, required, nullable)
    - format `date-time`
- `meta` (`filing-get-chain.response.200.meta`; object, required)
  - `total` (`filing-get-chain.response.200.meta.total`; number, required) — Total number of items available
  - `limit` (`filing-get-chain.response.200.meta.limit`; number, required) — Number of items per page
  - `offset` (`filing-get-chain.response.200.meta.offset`; number, required) — Number of items skipped
  - `hasMore` (`filing-get-chain.response.200.meta.hasMore`; boolean, required) — Whether more items are available
  - `page` (`filing-get-chain.response.200.meta.page`; number, optional) — Current page number
  - `totalPages` (`filing-get-chain.response.200.meta.totalPages`; number, optional) — Total number of pages

### 400

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.400.error`; object, required)
  - `code` (`filing-get-chain.response.400.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.400.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.400.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.400.error.traceId`; string, optional) — Unique ID for log correlation

### 401

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.401.error`; object, required)
  - `code` (`filing-get-chain.response.401.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.401.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.401.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.401.error.traceId`; string, optional) — Unique ID for log correlation

### 403

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.403.error`; object, required)
  - `code` (`filing-get-chain.response.403.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.403.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.403.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.403.error.traceId`; string, optional) — Unique ID for log correlation

### 404

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.404.error`; object, required)
  - `code` (`filing-get-chain.response.404.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.404.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.404.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.404.error.traceId`; string, optional) — Unique ID for log correlation

### 409

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.409.error`; object, required)
  - `code` (`filing-get-chain.response.409.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.409.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.409.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.409.error.traceId`; string, optional) — Unique ID for log correlation

### 422

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.422.error`; object, required)
  - `code` (`filing-get-chain.response.422.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.422.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.422.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.422.error.traceId`; string, optional) — Unique ID for log correlation

### 500

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.500.error`; object, required)
  - `code` (`filing-get-chain.response.500.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.500.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.500.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.500.error.traceId`; string, optional) — Unique ID for log correlation

### 503

Default Response

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": null,
    "traceId": "string"
  }
}
```

- `error` (`filing-get-chain.response.503.error`; object, required)
  - `code` (`filing-get-chain.response.503.error.code`; string, required) — Machine-readable error code (e.g., NOT_FOUND)
  - `message` (`filing-get-chain.response.503.error.message`; string, required) — Human-readable error message
  - `details` (`filing-get-chain.response.503.error.details`; unknown, optional) — Optional structured error details
  - `traceId` (`filing-get-chain.response.503.error.traceId`; string, optional) — Unique ID for log correlation


Source: https://docs.sureshake.com/reference/filing-get-chain/index.md
