Mews · Schema

Outlet item

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the item.
EnterpriseId string Unique identifier of the [Enterprise](https://mews-systems.gitbook.io/connector-api/operations/enterprises/#enterprise).
BillId string Unique identifier of the [Outlet bill](https://mews-systems.gitbook.io/connector-api/operations/#outlet-bill) the item belongs to.
AccountingCategoryId string Unique identifier of the [Accounting category](https://mews-systems.gitbook.io/connector-api/operations/accountingcategories/#accounting-category) the item belongs to.
Type object
Name string Name of the item.
UnitCount integer Unit count of the item.
UnitAmount object Unit amount of the item.
CreatedUtc string Date and time of the item creation in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the item in UTC timezone in ISO 8601 format.
ConsumedUtc string Date and time of the item consumption in UTC timezone in ISO 8601 format.
ExternalIdentifier string An identifier of this item from another system.
Notes string Additional notes.
PaymentCardPaymentId string Unique identifier of the payment card `Payment` this item is linked to. This is only applicable to items where `Type` is `Payment`.
UnitCost object Total price of the reservation.
View JSON Schema on GitHub

JSON Schema

mews-outletitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OutletItem",
  "title": "Outlet item",
  "required": [
    "BillId",
    "ConsumedUtc",
    "CreatedUtc",
    "EnterpriseId",
    "Id",
    "Type",
    "UnitAmount",
    "UnitCount",
    "UpdatedUtc"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the item.",
      "format": "uuid"
    },
    "EnterpriseId": {
      "type": "string",
      "description": "Unique identifier of the [Enterprise](https://mews-systems.gitbook.io/connector-api/operations/enterprises/#enterprise).",
      "format": "uuid"
    },
    "BillId": {
      "type": "string",
      "description": "Unique identifier of the [Outlet bill](https://mews-systems.gitbook.io/connector-api/operations/#outlet-bill) the item belongs to.",
      "format": "uuid"
    },
    "AccountingCategoryId": {
      "type": "string",
      "description": "Unique identifier of the [Accounting category](https://mews-systems.gitbook.io/connector-api/operations/accountingcategories/#accounting-category) the item belongs to.",
      "format": "uuid",
      "nullable": true
    },
    "Type": {
      "$ref": "#/components/schemas/OutletItemType"
    },
    "Name": {
      "type": "string",
      "description": "Name of the item.",
      "nullable": true
    },
    "UnitCount": {
      "type": "integer",
      "description": "Unit count of the item.",
      "format": "int32"
    },
    "UnitAmount": {
      "title": "Amount",
      "allOf": [
        {
          "$ref": "#/components/schemas/Amount"
        }
      ],
      "description": "Unit amount of the item."
    },
    "CreatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Date and time of the item creation in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "UpdatedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Last update date and time of the item in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "ConsumedUtc": {
      "minLength": 1,
      "type": "string",
      "description": "Date and time of the item consumption in UTC timezone in ISO 8601 format.",
      "format": "date-time"
    },
    "ExternalIdentifier": {
      "type": "string",
      "description": "An identifier of this item from another system.",
      "nullable": true
    },
    "Notes": {
      "type": "string",
      "description": "Additional notes.",
      "nullable": true
    },
    "PaymentCardPaymentId": {
      "type": "string",
      "description": "Unique identifier of the payment card `Payment` this item is linked to. This is only applicable to items where `Type` is `Payment`.",
      "format": "uuid",
      "nullable": true
    },
    "UnitCost": {
      "title": "Currency value (ver 2018-06-07)",
      "allOf": [
        {
          "$ref": "#/components/schemas/CurrencyValueOld"
        }
      ],
      "description": "Total price of the reservation.",
      "nullable": true,
      "deprecated": true,
      "x-deprecatedMessage": "Use `UnitAmount` instead."
    }
  },
  "additionalProperties": false,
  "x-schema-id": "OutletItem"
}