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

Аренда · Изменение

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

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

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

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

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

Change the period, quantity, modifiers or comment of an existing Rentals-created Order using its current version and a new exact rentals_quote hash. Native repricing preserves existing payments and reports the new amount; it does not charge or refund the difference. Closed/submitted/POS-archived orders remain protected. Changing a paid rental customer is prohibited. Requires the current native Booking/Services management role and subscription.

Параметры запроса
establishmentId
Native establishmentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
productId
Идентификатор найденного товара. обязательно по схеме · string
start
Native start value; use the value and type returned by the corresponding service. обязательно по схеме · string
finish
Native finish value; use the value and type returned by the corresponding service. обязательно по схеме · string
quantity
Native quantity value; use the value and type returned by the corresponding service. обязательно по схеме · integer · по умолчанию 1 · минимум 1 · максимум 100
modifiers
Native modifiers value; use the value and type returned by the corresponding service. обязательно по схеме · array · по умолчанию [] · до элементов 30
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
guestId
Existing customer ID, or empty for an anonymous rental. обязательно по схеме · string / string · по умолчанию ""
comment
Native comment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 2000
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedQuoteHash
Exact hash returned by rentals_quote for these identical arguments. обязательно по схеме · string
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа rentals_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "establishmentId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native establishmentId value; use the value and type returned by the corresponding service."
    },
    "productId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native productId value; use the value and type returned by the corresponding service."
    },
    "start": {
      "type": "string",
      "format": "date-time",
      "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      "description": "Native start value; use the value and type returned by the corresponding service."
    },
    "finish": {
      "type": "string",
      "format": "date-time",
      "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      "description": "Native finish value; use the value and type returned by the corresponding service."
    },
    "quantity": {
      "default": 1,
      "description": "Native quantity value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "modifiers": {
      "default": [],
      "description": "Native modifiers value; use the value and type returned by the corresponding service.",
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "optionSetId": {
            "type": "string",
            "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
            "description": "Native optionSetId value; use the value and type returned by the corresponding service."
          },
          "productIds": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            "description": "Native productIds value; use the value and type returned by the corresponding service."
          },
          "quantities": {
            "description": "Native quantities value; use the value and type returned by the corresponding service.",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        },
        "required": [
          "optionSetId",
          "productIds"
        ],
        "additionalProperties": false
      }
    },
    "orderId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Stable chosen native Order ID, reused unchanged across quote, commit and recovery."
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "guestId": {
      "default": "",
      "description": "Existing customer ID, or empty for an anonymous rental.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        {
          "type": "string",
          "const": ""
        }
      ]
    },
    "comment": {
      "default": "",
      "description": "Native comment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "expectedQuoteHash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Exact hash returned by rentals_quote for these identical arguments."
    }
  },
  "required": [
    "establishmentId",
    "productId",
    "start",
    "finish",
    "quantity",
    "modifiers",
    "orderId",
    "version",
    "guestId",
    "comment",
    "requestId",
    "expectedQuoteHash"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "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"
          }
        }
      ]
    }
  }
}