Mews · Schema

Identity document

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the document.
CustomerId string Identifier of the `Customer`.
Type object Type of the document. IdentityCard Passport Visa DriversLicense
Number string Number of the document (e.g. passport number).
Expiration string Expiration date in ISO 8601 format.
Issuance string Date of issuance in ISO 8601 format.
IssuingCountryCode string ISO 3166-1 code of the `Country`.
IssuingCountrySubdivisionCode string Identifier of the country subdivision where the document was issued (province, state or region).
IssuingCity string City where the document was issued.
IdentityDocumentSupportNumber string Identity document support number. Only required for Spanish identity cards in Spanish hotels.
View JSON Schema on GitHub

JSON Schema

mews-identitydocument-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/IdentityDocument",
  "title": "Identity document",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the document.",
      "format": "uuid"
    },
    "CustomerId": {
      "type": "string",
      "description": "Identifier of the `Customer`.",
      "format": "uuid"
    },
    "Type": {
      "title": "Document type",
      "allOf": [
        {
          "$ref": "#/components/schemas/IdentityDocumentTypeEnum"
        }
      ],
      "description": "Type of the document.\n\nIdentityCard\n\nPassport\n\nVisa\n\nDriversLicense",
      "x-enumNames": [
        "IdentityCard",
        "Passport",
        "Visa",
        "DriversLicense"
      ],
      "x-enumDescriptions": [
        "",
        "",
        "",
        ""
      ]
    },
    "Number": {
      "type": "string",
      "description": "Number of the document (e.g. passport number).",
      "nullable": true
    },
    "Expiration": {
      "type": "string",
      "description": "Expiration date in ISO 8601 format.",
      "format": "date",
      "nullable": true
    },
    "Issuance": {
      "type": "string",
      "description": "Date of issuance in ISO 8601 format.",
      "format": "date",
      "nullable": true
    },
    "IssuingCountryCode": {
      "type": "string",
      "description": "ISO 3166-1 code of the `Country`.",
      "nullable": true
    },
    "IssuingCountrySubdivisionCode": {
      "type": "string",
      "description": "Identifier of the country subdivision where the document was issued (province, state or region).",
      "nullable": true
    },
    "IssuingCity": {
      "type": "string",
      "description": "City where the document was issued.",
      "nullable": true
    },
    "IdentityDocumentSupportNumber": {
      "type": "string",
      "description": "Identity document support number. Only required for Spanish identity cards in Spanish hotels.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "IdentityDocument"
}