Бронирование · Чувствительное действие
Бронирование · Заказы · Создание
booking_workspace_order_create
Попробуйте три запроса
Подготовить
- Вы указываетеЗаказ
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Бронирование / Заказы / Создание». Для изменения нужны заказ, филиал. Покажи объект и ожидаемый эффект до выполнения.
- orderId
- Заказ
- locationId
- Филиал
- guestId
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Бронирование / Заказы / Создание» с параметром orderId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- orderId
- DEMO-101
- locationId
- DEMO-101
- guestId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Бронирование / Заказы / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create the exact reviewed lodging quote as one native guest-linked Order and calendar reservation. Requires the identical quote hash; prices and occupancy are checked inside the write transaction. Does not charge or send a message.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- 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
- expectedQuoteHash
- Native expectedQuoteHash value from the current Booking workspace. обязательно по схеме · 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
Поля и технические схемы

Вход · 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."
},
"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}$"
},
"expectedQuoteHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native expectedQuoteHash value from the current Booking workspace."
}
},
"required": [
"requestId",
"orderId",
"locationId",
"guestId",
"items",
"comment",
"expectedQuoteHash"
],
"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"
}
}
]
}
}
}