Mews · Schema

Company

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
ChainId string Unique identifier of the chain.
CreatedUtc string Creation date and time of the `Company` in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the `Company` in UTC timezone in ISO 8601 format.
UpdaterProfileId string Unique identifier of the user who updated the company.
Email string Email address of the company.
TaxIdentifier string Tax identification number of the company.
BillingCode string Billing code of the company.
AccountingCode string Accounting code of the company.
Notes string Additional notes.
Name string Name of the company.
MotherCompanyId string Unique identifier of mother company.
WebsiteUrl string The website url of the company.
InvoiceDueInterval string The maximum time (in ISO 8601 duration format), when the invoice has to be be paid.
CreditRatingBasic object Credit rating to define credit worthiness of the company. CreditOk (Company can book services.) PaymentRequiredUpfront (Company must pay upfront.) LocalDecisionRequired (Requires local approval.)
Department string The internal segmentation of a company, e.g. sales department.
DunsNumber string The Dun & Bradstreet unique 9-digit DUNS number.
ReferenceId string External system identifier - custom identifier used by an external system such as an external database.
ExternalIdentifier string Identifier of company from external system.
AdditionalTaxIdentifier string Additional tax identifier of the company.
Contact string Other contact details, such as telephone, email or similar.
ContactPerson string Contact person of the company.
FiscalIdentifier string Fiscal identifier of the company.
Iata string Iata of the company.
Telephone string Contact telephone number.
SourceId string Unique identifier of the `Source`.
Classifications object Classifications of the company.
Options object Options of the company.
View JSON Schema on GitHub

JSON Schema

mews-companyaccount-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CompanyAccount",
  "title": "Company",
  "required": [
    "ChainId",
    "Classifications",
    "CreatedUtc",
    "Name",
    "Options",
    "UpdatedUtc",
    "UpdaterProfileId"
  ],
  "type": "object",
  "properties": {
    "ChainId": {
      "type": "string",
      "description": "Unique identifier of the chain.",
      "format": "uuid"
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Creation date and time of the `Company` in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the `Company` in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdaterProfileId": {
      "type": "string",
      "description": "Unique identifier of the user who updated the company.",
      "format": "uuid"
    },
    "Email": {
      "type": "string",
      "description": "Email address of the company.",
      "format": "email",
      "nullable": true
    },
    "TaxIdentifier": {
      "type": "string",
      "description": "Tax identification number of the company.",
      "nullable": true
    },
    "BillingCode": {
      "type": "string",
      "description": "Billing code of the company.",
      "nullable": true
    },
    "AccountingCode": {
      "type": "string",
      "description": "Accounting code of the company.",
      "nullable": true
    },
    "Notes": {
      "type": "string",
      "description": "Additional notes.",
      "nullable": true
    },
    "Name": {
      "minLength": 1,
      "type": "string",
      "description": "Name of the company."
    },
    "MotherCompanyId": {
      "type": "string",
      "description": "Unique identifier of mother company.",
      "format": "uuid",
      "nullable": true
    },
    "WebsiteUrl": {
      "type": "string",
      "description": "The website url of the company.",
      "format": "uri",
      "nullable": true
    },
    "InvoiceDueInterval": {
      "type": "string",
      "description": "The maximum time (in ISO 8601 duration format), when the invoice has to be be paid.",
      "nullable": true
    },
    "CreditRatingBasic": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CreditRatingBasicEnum"
        }
      ],
      "description": "Credit rating to define credit worthiness of the company.\n\nCreditOk (Company can book services.)\n\nPaymentRequiredUpfront (Company must pay upfront.)\n\nLocalDecisionRequired (Requires local approval.)",
      "nullable": true
    },
    "Department": {
      "type": "string",
      "description": "The internal segmentation of a company, e.g. sales department.",
      "nullable": true
    },
    "DunsNumber": {
      "type": "string",
      "description": "The Dun & Bradstreet unique 9-digit DUNS number.",
      "nullable": true
    },
    "ReferenceId": {
      "type": "string",
      "description": "External system identifier - custom identifier used by an external system such as an external database.",
      "nullable": true
    },
    "ExternalIdentifier": {
      "type": "string",
      "description": "Identifier of company from external system.",
      "nullable": true
    },
    "AdditionalTaxIdentifier": {
      "type": "string",
      "description": "Additional tax identifier of the company.",
      "nullable": true
    },
    "Contact": {
      "type": "string",
      "description": "Other contact details, such as telephone, email or similar.",
      "nullable": true
    },
    "ContactPerson": {
      "type": "string",
      "description": "Contact person of the company.",
      "nullable": true
    },
    "FiscalIdentifier": {
      "type": "string",
      "description": "Fiscal identifier of the company.",
      "nullable": true
    },
    "Iata": {
      "type": "string",
      "description": "Iata of the company.",
      "nullable": true
    },
    "Telephone": {
      "type": "string",
      "description": "Contact telephone number.",
      "nullable": true
    },
    "SourceId": {
      "type": "string",
      "description": "Unique identifier of the `Source`.",
      "format": "uuid",
      "nullable": true
    },
    "Classifications": {
      "title": "Company classifications",
      "allOf": [
        {
          "$ref": "#/components/schemas/CompanyAccountClassifications"
        }
      ],
      "description": "Classifications of the company."
    },
    "Options": {
      "title": "Company options",
      "allOf": [
        {
          "$ref": "#/components/schemas/CompanyAccountOptions"
        }
      ],
      "description": "Options of the company."
    }
  },
  "additionalProperties": false,
  "description": "",
  "x-schema-id": "CompanyAccount"
}