MCP Control
Бронирование · Чтение

Бронирование · Заказы · Предварительный расчёт

booking_workspace_order_quote
Часы и календарь у стойки записи

Попробуйте три запроса

Получить данные
  1. Вы указываетеЗаказ
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Бронирование / Заказы / Предварительный расчёт» выполни чтение по выбранной записи (заказ). Выведи кратко: companyId, результат.
Что искать в ответе
companyId
Поле ответа
result
Результат
Следующая страница
  1. Вы указываетеПредыдущий ответ
  2. ПомощникПродолжение
  3. Вы получаетеСледующая страница
Запрос в чат
Продолжи «Бронирование / Заказы / Предварительный расчёт» с позиции прошлого ответа. Сохрани фильтры и размер страницы 256. Покажи новые строки отдельно.
Как листать выдачу
Страница 1До 256 строк
Страница 2Продолжение
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Бронирование / Заказы / Предварительный расчёт» объясни companyId, результат. Отметь отсутствующие значения.
Поля для проверки
companyId
Поле ответа
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.

Описание разработчика

Preview a direct lodging booking through the native Booking transaction without writes or holds. Uses local civil dates, actual timezone, minimum stay, guest, occupancy, manual nightly prices and exact closure confirmation. Keep this chosen orderId and quoteHash for order_create.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
guestId
Native guestId value from the current Booking workspace. обязательно по схеме · string
items
Native items value from the current Booking workspace. обязательно по схеме · array · до элементов 8
comment
Native comment value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 2000
closureConfirmation
Native closureConfirmation value from the current Booking workspace. необязательно · string
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10000 · минимум 256 · максимум 10000
expectedHash
Контрольное значение из предыдущего чтения. необязательно · string
Что вернёт команда
companyId
Verified current native company. обязательно по схеме · string
result
Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа booking_workspace_order_quote
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native orderId value from the current Booking workspace."
    },
    "locationId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native locationId value from the current Booking workspace."
    },
    "guestId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native guestId value from the current Booking workspace."
    },
    "items": {
      "minItems": 1,
      "maxItems": 8,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Native productId value from the current Booking workspace."
          },
          "itemId": {
            "description": "Native itemId value from the current Booking workspace.",
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
          },
          "start": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "Native start value from the current Booking workspace."
          },
          "end": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "Native end value from the current Booking workspace."
          },
          "startTime": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "Native startTime value from the current Booking workspace."
          },
          "endTime": {
            "type": "string",
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "description": "Native endTime value from the current Booking workspace."
          },
          "nightlyPrices": {
            "description": "Native nightlyPrices value from the current Booking workspace.",
            "minItems": 1,
            "maxItems": 366,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                  "description": "Native date value from the current Booking workspace."
                },
                "price": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 10000000,
                  "description": "Native price value from the current Booking workspace."
                }
              },
              "required": [
                "date",
                "price"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "productId",
          "start",
          "end",
          "startTime",
          "endTime"
        ],
        "additionalProperties": false
      },
      "description": "Native items value from the current Booking workspace."
    },
    "comment": {
      "default": "",
      "description": "Native comment value from the current Booking workspace.",
      "type": "string",
      "maxLength": 2000
    },
    "closureConfirmation": {
      "description": "Native closureConfirmation value from the current Booking workspace.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "offset": {
      "default": 0,
      "description": "Native offset value from the current Booking workspace.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 10000,
      "description": "Native limit value from the current Booking workspace.",
      "type": "integer",
      "minimum": 256,
      "maximum": 10000
    },
    "expectedHash": {
      "description": "Native expectedHash value from the current Booking workspace.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "orderId",
    "locationId",
    "guestId",
    "items",
    "comment",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Verified current native company."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}