# Get passport type by document scheme version ID

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

**GET** `/api/app/passport-type/by-version-id/{versionId}`

Retrieve the passport type associated with the specified document scheme version identifier.

## Authorization

- oidc (openIdConnect)

## Header parameters

- `X-Tenant` (string)
  Tenant ID

## Path parameters

- `versionId` (integer, required)

## Query parameters

- `withDetails` (boolean)

## Responses

### 200

OK

- `id` (integer<int64>)
- `originationCountry` (string)
- `versions` (object[])
  - `id` (integer<int64>)
  - `name` (string)
  - `description` (string)
  - `state` ("InDevelopment" | "NeedReview" | "PublishCandidate" | "Published" | "Paused" | "Revoked")
  - `ownerType` ("None" | "Visa" | "Passport" | "Insurance" | "TravelServiceProvider" | "FlightItineraryLetter" | "HotelItineraryLetter" | "TravelerProfile" | "AirportLounge" | "FastTrack")
  - `lastModificationTime` (string<date-time>)
  - `applicationFormTemplates` (object[])
    - `id` (integer<int64>)
    - `documentsSchemeVersionId` (integer<int64>)
    - `countryCode` (string)
    - `documentFileId` (integer<int64>)
    - `templateItems` (object[])
      - `id` (integer<int64>)
      - `applicationFormTemplateId` (integer<int64>)
      - `nameId` (string)
      - `value` (string)
      - `pageNumber` (integer<int32>)
      - `xCoordinate` (number<double>)
      - `yCoordinate` (number<double>)
      - `fontSize` (number<float>)
      - `isBold` (boolean)
      - `isItalic` (boolean)
      - `isUnderlined` (boolean)
      - `isPinned` (boolean)
      - `repetitiveItemMargin` (number<float>)
      - `resizable` (boolean)
      - `width` (number<float>)
      - `height` (number<float>)
      - `withLabel` (boolean)
      - `labelPosition` ("Left" | "Top")
      - `labelSize` (number<float>)
      - `labelFontSize` (number<float>)
      - `labelBold` (boolean)
      - `labelItalic` (boolean)
      - `labelUnderlined` (boolean)
      - `previewContent` (string)
    - `templateSections` (object[])
      - `id` (integer<int64>)
      - `nameId` (string)
      - `marginTop` (number<double>)
    - `defaultFontSize` (number<float>)
    - `isDynamic` (boolean)
    - `defaultRepetitiveItemMargin` (number<float>)
  - `onlineFormTemplates` (object[])
    - `id` (integer<int64>)
    - `documentsSchemeVersionId` (integer<int64>)
    - `countryCode` (string)
    - `url` (string)
    - `items` (object[])
      - `id` (integer<int64>)
      - `nameId` (string)
      - `path` (string)

Example:

```json
{
  "id": 0,
  "originationCountry": "string",
  "versions": [
    {
      "id": 0,
      "name": "string",
      "description": "string",
      "state": "InDevelopment",
      "ownerType": "None",
      "lastModificationTime": "1970-01-01T00:00:00.000Z",
      "applicationFormTemplates": [
        {
          "id": 0,
          "documentsSchemeVersionId": 0,
          "countryCode": "string",
          "documentFileId": 0,
          "templateItems": [
            {
              "id": null,
              "applicationFormTemplateId": null,
              "nameId": null,
              "value": null,
              "pageNumber": null,
              "xCoordinate": null,
              "yCoordinate": null,
              "fontSize": null,
              "isBold": null,
              "isItalic": null,
              "isUnderlined": null,
              "isPinned": null,
              "repetitiveItemMargin": null,
              "resizable": null,
              "width": null,
              "height": null,
              "withLabel": null,
              "labelPosition": "Left",
              "labelSize": null,
              "labelFontSize": null,
              "labelBold": null,
              "labelItalic": null,
              "labelUnderlined": null,
              "previewContent": null
            }
          ],
          "templateSections": [
            {
              "id": null,
              "nameId": null,
              "marginTop": null
            }
          ],
          "defaultFontSize": 0,
          "isDynamic": true,
          "defaultRepetitiveItemMargin": 0
        }
      ],
      "onlineFormTemplates": [
        {
          "id": 0,
          "documentsSchemeVersionId": 0,
          "countryCode": "string",
          "url": "string",
          "items": [
            {
              "id": null,
              "nameId": null,
              "path": null
            }
          ]
        }
      ]
    }
  ]
}
```

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