Mews · Schema

Account

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the account.
Discriminator object Type of the account. Company Customer
Customer object Updated customer data.
Company object Updated company data.
View JSON Schema on GitHub

JSON Schema

mews-account-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Account",
  "title": "Account",
  "required": [
    "Discriminator",
    "Id"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the account.",
      "format": "uuid"
    },
    "Discriminator": {
      "title": "Account type",
      "allOf": [
        {
          "$ref": "#/components/schemas/AccountTypeEnum"
        }
      ],
      "description": "Type of the account.\n\nCompany\n\nCustomer",
      "x-enumNames": [
        "Company",
        "Customer"
      ],
      "x-enumDescriptions": [
        "",
        ""
      ]
    },
    "Customer": {
      "title": "Customer",
      "allOf": [
        {
          "$ref": "#/components/schemas/CustomerAccount"
        }
      ],
      "description": "Updated customer data.",
      "nullable": true
    },
    "Company": {
      "title": "Company",
      "allOf": [
        {
          "$ref": "#/components/schemas/CompanyAccount"
        }
      ],
      "description": "Updated company data.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "Account"
}