Mews · Schema

Travel agency contract

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the contract.
ServiceId string Unique identifier of the `Service` the contract is related to.
CompanyId string Unique identifier of the contracted `Company`.
IsActive boolean Whether the contract is still active.
CommissionIncluded boolean Whether commission of the travel agency is included in the rate. When `CommissionIncluded` is not provided in the response, that means commission is unspecified, when set to true it means the the comm
Commission number Commission of the travel agency.
ChannelManagerAbsoluteAdjustment number Flat fee added to (or subtracted from) the reservation price when coming from Channel Managers.
ChannelManagerRelativeAdjustment number Percentage of the reservation price added to (or subtracted from) price when coming from Channel Managers.
Options object Options of the travel agency contract.
AccountingCode string Accounting code of the travel agency contract.
InvoiceDueInterval string The maximum time, when the invoice has to be be paid in ISO 8601 duration format.
ChannelManagerBusinessSegmentId string Unique identifier of the `BusinessSegment` used for incoming reservations originating from Channel Managers, for this particular contract.
ContactPerson string Contact person of the travel agency.
ContactEmail string Contact email of the travel agency.
AdditionalContactInfo string Additional contact info of the travel agency.
Notes string Additional notes of the travel agency contract.
CreatedUtc string Creation date and time of the travel agency contract in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the travel agency contract in UTC timezone in ISO 8601 format.
View JSON Schema on GitHub

JSON Schema

mews-travelagencycontract-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TravelAgencyContract",
  "title": "Travel agency contract",
  "required": [
    "CompanyId",
    "CreatedUtc",
    "Id",
    "IsActive",
    "Options",
    "ServiceId",
    "UpdatedUtc"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the contract.",
      "format": "uuid"
    },
    "ServiceId": {
      "type": "string",
      "description": "Unique identifier of the `Service` the contract is related to.",
      "format": "uuid"
    },
    "CompanyId": {
      "type": "string",
      "description": "Unique identifier of the contracted `Company`.",
      "format": "uuid"
    },
    "IsActive": {
      "type": "boolean",
      "description": "Whether the contract is still active."
    },
    "CommissionIncluded": {
      "type": "boolean",
      "description": "Whether commission of the travel agency is included in the rate. When `CommissionIncluded` is not provided in the response, that means commission is unspecified, when set to true it means the the commission is included in the rate and false means the commission in not included in the rate.",
      "nullable": true
    },
    "Commission": {
      "type": "number",
      "description": "Commission of the travel agency.",
      "format": "double",
      "nullable": true
    },
    "ChannelManagerAbsoluteAdjustment": {
      "type": "number",
      "description": "Flat fee added to (or subtracted from) the reservation price when coming from Channel Managers.",
      "format": "double",
      "nullable": true
    },
    "ChannelManagerRelativeAdjustment": {
      "type": "number",
      "description": "Percentage of the reservation price added to (or subtracted from) price when coming from Channel Managers.",
      "format": "double",
      "nullable": true
    },
    "Options": {
      "title": "Travel agency contract options",
      "allOf": [
        {
          "$ref": "#/components/schemas/TravelAgencyContractOptions"
        }
      ],
      "description": "Options of the travel agency contract."
    },
    "AccountingCode": {
      "type": "string",
      "description": "Accounting code of the travel agency contract.",
      "nullable": true
    },
    "InvoiceDueInterval": {
      "type": "string",
      "description": "The maximum time, when the invoice has to be be paid in ISO 8601 duration format.",
      "nullable": true
    },
    "ChannelManagerBusinessSegmentId": {
      "type": "string",
      "description": "Unique identifier of the `BusinessSegment` used for incoming reservations originating from Channel Managers, for this particular contract.",
      "format": "uuid",
      "nullable": true
    },
    "ContactPerson": {
      "type": "string",
      "description": "Contact person of the travel agency.",
      "nullable": true
    },
    "ContactEmail": {
      "type": "string",
      "description": "Contact email of the travel agency.",
      "format": "email",
      "nullable": true
    },
    "AdditionalContactInfo": {
      "type": "string",
      "description": "Additional contact info of the travel agency.",
      "nullable": true
    },
    "Notes": {
      "type": "string",
      "description": "Additional notes of the travel agency contract.",
      "nullable": true
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Creation date and time of the travel agency contract in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the travel agency contract in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "x-schema-id": "TravelAgencyContract"
}