Бронирование · Изменение
Бронирование · Предложения · Сохранение
booking_workspace_offer_save
Попробуйте три запроса
Подготовить
- Вы указываетеGuestid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Бронирование / Предложения / Сохранение». Для изменения нужны guestId, тип. Покажи объект и ожидаемый эффект до выполнения.
- guestId
- Параметр
- type
- Тип
- status
- Статус
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Бронирование / Предложения / Сохранение» с параметром type = price. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- type
- price
- status
- active
- guestId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Бронирование / Предложения / Сохранение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Native Booking offer_save. Uses the same current company handlers and business rules as booking.sabsus.site. Read all hash-bound chunks and follow native pagination. Recover uncertain writes with booking_workspace_get_operation and the original request ID.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- guestId
- Native guestId value from the current Booking workspace. обязательно по схеме · string
- offerId
- Native offerId value from the current Booking workspace. необязательно · string
- type
- Native type value from the current Booking workspace. обязательно по схеме · string · варианты price, discount_percent, discount_amount, free_product, quantity_price
- status
- Native status value from the current Booking workspace. обязательно по схеме · string · варианты active, inactive
- productId
- Идентификатор найденного товара. обязательно по схеме · string
- itemId
- Native itemId value from the current Booking workspace. обязательно по схеме · string / string · по умолчанию ""
- establishment
- Native establishment value from the current Booking workspace. обязательно по схеме · string / string · по умолчанию ""
- title
- Native title value from the current Booking workspace. обязательно по схеме · string · до символов 120
- description
- Native description value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 1000
- price
- Native price value from the current Booking workspace. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 10000000
- discountPercent
- Native discountPercent value from the current Booking workspace. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 100
- discountAmount
- Native discountAmount value from the current Booking workspace. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 10000000
- priceConditions
- Native priceConditions value from the current Booking workspace. обязательно по схеме · array · по умолчанию [] · до элементов 30
- startAt
- Native startAt value from the current Booking workspace. необязательно · null
- endAt
- Native endAt value from the current Booking workspace. необязательно · null
- usageLimit
- Native usageLimit value from the current Booking workspace. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 1000000000
- quantity
- Native quantity value from the current Booking workspace. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 1000000000
- orderTypes
- Native orderTypes value from the current Booking workspace. обязательно по схеме · array · по умолчанию [] · до элементов 3
- autoApply
- Native autoApply value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию true
- promocode
- Native promocode value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 60
Что вернёт команда
- 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."
},
"guestId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native guestId value from the current Booking workspace."
},
"offerId": {
"description": "Native offerId value from the current Booking workspace.",
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
},
"type": {
"type": "string",
"enum": [
"price",
"discount_percent",
"discount_amount",
"free_product",
"quantity_price"
],
"description": "Native type value from the current Booking workspace."
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
],
"description": "Native status value from the current Booking workspace."
},
"productId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native productId value from the current Booking workspace."
},
"itemId": {
"default": "",
"description": "Native itemId value from the current Booking workspace.",
"anyOf": [
{
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "string",
"const": ""
}
]
},
"establishment": {
"default": "",
"description": "Native establishment value from the current Booking workspace.",
"anyOf": [
{
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "string",
"const": ""
}
]
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Native title value from the current Booking workspace."
},
"description": {
"default": "",
"description": "Native description value from the current Booking workspace.",
"type": "string",
"maxLength": 1000
},
"price": {
"default": 0,
"description": "Native price value from the current Booking workspace.",
"type": "number",
"minimum": 0,
"maximum": 10000000
},
"discountPercent": {
"default": 0,
"description": "Native discountPercent value from the current Booking workspace.",
"type": "number",
"minimum": 0,
"maximum": 100
},
"discountAmount": {
"default": 0,
"description": "Native discountAmount value from the current Booking workspace.",
"type": "number",
"minimum": 0,
"maximum": 10000000
},
"priceConditions": {
"default": [],
"description": "Native priceConditions value from the current Booking workspace.",
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Native from value from the current Booking workspace."
},
"value": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Native value value from the current Booking workspace."
}
},
"required": [
"from",
"value"
],
"additionalProperties": false
}
},
"startAt": {
"description": "Native startAt value from the current Booking workspace.",
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
]
},
"endAt": {
"description": "Native endAt value from the current Booking workspace.",
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
]
},
"usageLimit": {
"default": 0,
"description": "Native usageLimit value from the current Booking workspace.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"quantity": {
"default": 0,
"description": "Native quantity value from the current Booking workspace.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"orderTypes": {
"default": [],
"description": "Native orderTypes value from the current Booking workspace.",
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"delivery",
"pickup",
"atPlace"
]
}
},
"autoApply": {
"default": true,
"description": "Native autoApply value from the current Booking workspace.",
"type": "boolean"
},
"promocode": {
"default": "",
"description": "Native promocode value from the current Booking workspace.",
"type": "string",
"maxLength": 60
}
},
"required": [
"requestId",
"guestId",
"type",
"status",
"productId",
"itemId",
"establishment",
"title",
"description",
"price",
"discountPercent",
"discountAmount",
"priceConditions",
"usageLimit",
"quantity",
"orderTypes",
"autoApply",
"promocode"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"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)))$"
}
}
}Выход · 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"
}
}
]
}
}
}