Mews · Schema

AccountingItemParameters

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
ClientToken string Token identifying the client application.
AccessToken string Access token of the client application.
Client string Name and version of the client application.
Extent object Extent of data to be returned. E.g. it is possible to specify that together with the accounting items, credit card transactions should be also returned.
ItemIds array Unique identifiers of the Accounting items. Required if no other filter is provided.
RebatedItemIds array Unique identifiers of the Accounting items we are finding rebates for. Required if no other filter is provided.
ClosedUtc object Interval in which the accounting item was closed. Required if no other filter is provided.
UpdatedUtc object Interval in which the accounting item was updated. Required if no other filter is provided.
ConsumedUtc object Interval in which the accounting item was consumed. Required if no other filter is provided.
Currency string ISO-4217 code of the `Currency` the item costs should be converted to.
States array States the accounting items should be in. If not specified, accounting items in `Open` or `Closed` states are returned.
View JSON Schema on GitHub

JSON Schema

mews-accountingitemparameters-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AccountingItemParameters",
  "title": "AccountingItemParameters",
  "required": [
    "AccessToken",
    "Client",
    "ClientToken",
    "Extent"
  ],
  "type": "object",
  "properties": {
    "ClientToken": {
      "minLength": 1,
      "type": "string",
      "description": "Token identifying the client application."
    },
    "AccessToken": {
      "minLength": 1,
      "type": "string",
      "description": "Access token of the client application."
    },
    "Client": {
      "minLength": 1,
      "type": "string",
      "description": "Name and version of the client application."
    },
    "Extent": {
      "title": "Accounting item extent",
      "allOf": [
        {
          "$ref": "#/components/schemas/AccountingItemExtent"
        }
      ],
      "description": "Extent of data to be returned. E.g. it is possible to specify that together with the accounting items, credit card transactions should be also returned."
    },
    "ItemIds": {
      "maxItems": 1000,
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Unique identifiers of the Accounting items. Required if no other filter is provided.",
      "nullable": true
    },
    "RebatedItemIds": {
      "maxItems": 1000,
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Unique identifiers of the Accounting items we are finding rebates for. Required if no other filter is provided.",
      "nullable": true
    },
    "ClosedUtc": {
      "title": "Time interval",
      "allOf": [
        {
          "$ref": "#/components/schemas/TimeFilterInterval"
        }
      ],
      "description": "Interval in which the accounting item was closed. Required if no other filter is provided.",
      "nullable": true,
      "x-max-interval-in-months": 3
    },
    "UpdatedUtc": {
      "title": "Time interval",
      "allOf": [
        {
          "$ref": "#/components/schemas/TimeFilterInterval"
        }
      ],
      "description": "Interval in which the accounting item was updated. Required if no other filter is provided.",
      "nullable": true,
      "x-max-interval-in-months": 3
    },
    "ConsumedUtc": {
      "title": "Time interval",
      "allOf": [
        {
          "$ref": "#/components/schemas/TimeFilterInterval"
        }
      ],
      "description": "Interval in which the accounting item was consumed. Required if no other filter is provided.",
      "nullable": true,
      "x-max-interval-in-months": 3
    },
    "Currency": {
      "type": "string",
      "description": "ISO-4217 code of the `Currency` the item costs should be converted to.",
      "format": "currency",
      "nullable": true
    },
    "States": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccountingState"
      },
      "description": "States the accounting items should be in. If not specified, accounting items in `Open` or `Closed` states are returned.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "x-schema-id": "AccountingItemParameters"
}