MCP Control
Бронирование · Чувствительное действие

Бронирование · Заказы · Изменение

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

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

Подготовить
  1. Вы указываетеЗаказ
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Бронирование / Заказы / Изменение». Для изменения нужны заказ, guestId. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
orderId
Заказ
guestId
Параметр
items
Список позиций
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Бронирование / Заказы / Изменение» с параметром orderId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
orderId
DEMO-101
guestId
DEMO-101
comment
Проверено на учебной записи
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Бронирование / Заказы / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

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

Change native lodging dates, objects, guest, nightly rates and comment at the current order version. Saved payments and provider-managed order protections remain authoritative. This can release and reserve real availability.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
orderId
Идентификатор выбранного заказа. обязательно по схеме · 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
version
Native version value from the current Booking workspace. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
Что вернёт команда
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_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Native requestId value from the current Booking workspace."
    },
    "orderId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native orderId 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."
          },
          "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"
        ],
        "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}$"
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value from the current Booking workspace."
    }
  },
  "required": [
    "requestId",
    "orderId",
    "guestId",
    "items",
    "comment",
    "version"
  ],
  "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"
          }
        }
      ]
    }
  }
}