# Get required documents scheme by visa version

> For the complete documentation index, see [llms.txt](https://developer.fluxir.com/llms.txt).

**GET** `/api/app/documents-scheme`

When normalized is true, item and enum value name identifiers are normalized.

## Authorization

- oidc (openIdConnect)

## Header parameters

- `X-Tenant` (string)
  Tenant ID

## Query parameters

- `visaSchemeVersionId` (integer)
  The visa scheme version identifier.
- `normalized` (boolean)
  Whether returned name identifiers should be normalized.

## Responses

### 200

OK

- `id` (integer<int64>)
- `documentsSchemeVersionId` (integer<int64>)
- `nameId` (string)
- `order` (integer<int32>)
- `isOptional` (boolean)
- `isRecurrent` (boolean)
- `maxRecurrency` (integer<int32>)
- `description` (string)
- `title` (object)
  - `id` (integer<int64>)
  - `nameId` (string)
  - `isSystem` (boolean)
  - `values` (object[])
    - `id` (integer<int64>)
    - `language` (string)
    - `value` (string)
  - `isMarkdown` (boolean)
- `items` (object[])
  - `id` (integer<int64>)
  - `nameId` (string)
  - `description` (object)
    - `id` (integer<int64>)
    - `nameId` (string)
    - `isSystem` (boolean)
    - `values` (object[])
      - `id` (integer<int64>)
      - `language` (string)
      - `value` (string)
    - `isMarkdown` (boolean)
  - `order` (integer<int32>)
  - `isSystem` (boolean)
  - `title` (object)
    - `id` (integer<int64>)
    - `nameId` (string)
    - `isSystem` (boolean)
    - `values` (object[])
      - `id` (integer<int64>)
      - `language` (string)
      - `value` (string)
    - `isMarkdown` (boolean)
  - `itemType` ("String" | "StringMultiLine" | "Number" | "Enum" | "EnumSet" | "Boolean" | "Date" | "Time" | "DateTime" | "DateYear" | "DateMonth" | "DateDay" | "TimeHour12" | "TimeHour24" | "TimeMinute" | "TimeSecond" | "Country" | "PhoneNumber" | "File" | "FilePassport" | "City" | "Address" | "Email" | "ExternalList" | "OnlineImage" | "Label")
  - `enumValue` (object)
    - `id` (integer<int64>)
    - `nameId` (string)
    - `isSystem` (boolean)
    - `enumValues` (object[])
      - `id` (integer<int64>)
      - `nameId` (string)
      - `title` (object)
        - `id` (integer<int64>)
        - `nameId` (string)
        - `isSystem` (boolean)
        - `values` (object[])
          - `id` (integer<int64>)
          - `language` (string)
          - `value` (string)
        - `isMarkdown` (boolean)
      - `description` (object)
        - `id` (integer<int64>)
        - `nameId` (string)
        - `isSystem` (boolean)
        - `values` (object[])
          - `id` (integer<int64>)
          - `language` (string)
          - `value` (string)
        - `isMarkdown` (boolean)
    - `source` (string)
  - `validationIsRequired` (boolean)
  - `validationMinLength` (integer<int32>)
  - `validationMaxLength` (integer<int32>)
  - `validationRegexp` (string)
  - `isPii` (boolean)
  - `availabilityCondition` (string)
  - `hasAvailabilityCondition` (boolean)

Example:

```json
[
  {
    "id": 0,
    "documentsSchemeVersionId": 0,
    "nameId": "string",
    "order": 0,
    "isOptional": true,
    "isRecurrent": true,
    "maxRecurrency": 0,
    "description": "string",
    "title": {
      "id": 0,
      "nameId": "string",
      "isSystem": true,
      "values": [
        {
          "id": 0,
          "language": "string",
          "value": "string"
        }
      ],
      "isMarkdown": true
    },
    "items": [
      {
        "id": 0,
        "nameId": "string",
        "description": {
          "id": 0,
          "nameId": "string",
          "isSystem": true,
          "values": [
            {
              "id": null,
              "language": null,
              "value": null
            }
          ],
          "isMarkdown": true
        },
        "order": 0,
        "isSystem": true,
        "title": {
          "id": 0,
          "nameId": "string",
          "isSystem": true,
          "values": [
            {
              "id": null,
              "language": null,
              "value": null
            }
          ],
          "isMarkdown": true
        },
        "itemType": "String",
        "enumValue": {
          "id": 0,
          "nameId": "string",
          "isSystem": true,
          "enumValues": [
            {
              "id": null,
              "nameId": null,
              "title": null,
              "description": null
            }
          ],
          "source": "string"
        },
        "validationIsRequired": true,
        "validationMinLength": 0,
        "validationMaxLength": 0,
        "validationRegexp": "string",
        "isPii": true,
        "availabilityCondition": "string",
        "hasAvailabilityCondition": true
      }
    ]
  }
]
```

### 400

Bad Request

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```

### 401

Unauthorized

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```

### 403

Forbidden

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```

### 404

Not Found

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```

### 500

Internal Server Error

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```

### 501

Not Implemented

- `error` (object)
  - `code` (string)
  - `message` (string)
  - `details` (string)
  - `data` (object)
  - `validationErrors` (object[])
    - `message` (string)
    - `members` (string[])

Example:

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "details": "string",
    "data": {},
    "validationErrors": [
      {
        "message": "string",
        "members": [
          "string"
        ]
      }
    ]
  }
}
```