Заказы · Чтение
Кухонный дисплей · Этикетки · Предпросмотр
kds_label_preview
Попробуйте три запроса
Получить данные
- Вы указываетеФилиал
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Кухонный дисплей / Этикетки / Предпросмотр» выполни чтение по выбранной записи (филиал). Выведи кратко: companyId, результат.
- companyId
- Поле ответа
- result
- Результат
Задать параметры
- Вы указываетеФилиал
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Кухонный дисплей / Этикетки / Предпросмотр» на учебном примере с mode = product. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- mode
- product
- storage
- fridge
- durationUnit
- days
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Кухонный дисплей / Этикетки / Предпросмотр» объясни companyId, результат. Отметь отсутствующие значения.
- companyId
- Поле ответа
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Calculate a product or defrost label using the native KDS renderer, location timezone, supplied packing time and shelf life. Returns authoritative label fields and a SHA256 HTML descriptor. Read the HTML with kds_label_preview_read. Does not infer a safe shelf life or queue printing.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- productId
- Идентификатор найденного товара. обязательно по схеме · string · до символов 160
- employeeId
- Native employeeId value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 160
- templateId
- Native templateId value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 160
- templateRevision
- Native templateRevision value; use the value and type returned by the corresponding service. необязательно · string · до символов 64
- mode
- Native mode value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты product, defrost
- storage
- Native storage value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты fridge, freezer, ambient
- temperature
- Native temperature value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 80
- packedAt
- Native packedAt value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 946684800000 · максимум 4102444800000
- shelfLife
- Native shelfLife value; use the value and type returned by the corresponding service. обязательно по схеме · number · максимум 87600
- durationUnit
- Native durationUnit value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты days, hours
- copies
- Native copies value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 1 · максимум 100
- language
- Язык результата или локализуемого значения согласно схеме. обязательно по схеме · string · по умолчанию "ru" · варианты ru, en
Что вернёт команда
- 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
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"locationId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,120}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"productId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^/\\x00-\\x1f]+$",
"description": "Native productId value; use the value and type returned by the corresponding service."
},
"employeeId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^/\\x00-\\x1f]+$",
"description": "Native employeeId value; use the value and type returned by the corresponding service."
},
"templateId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^/\\x00-\\x1f]+$",
"description": "Native templateId value; use the value and type returned by the corresponding service."
},
"templateRevision": {
"description": "Native templateRevision value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 64
},
"mode": {
"type": "string",
"enum": [
"product",
"defrost"
],
"description": "Native mode value; use the value and type returned by the corresponding service."
},
"storage": {
"type": "string",
"enum": [
"fridge",
"freezer",
"ambient"
],
"description": "Native storage value; use the value and type returned by the corresponding service."
},
"temperature": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Native temperature value; use the value and type returned by the corresponding service."
},
"packedAt": {
"type": "integer",
"minimum": 946684800000,
"maximum": 4102444800000,
"description": "Native packedAt value; use the value and type returned by the corresponding service."
},
"shelfLife": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 87600,
"description": "Native shelfLife value; use the value and type returned by the corresponding service."
},
"durationUnit": {
"type": "string",
"enum": [
"days",
"hours"
],
"description": "Native durationUnit value; use the value and type returned by the corresponding service."
},
"copies": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Native copies value; use the value and type returned by the corresponding service."
},
"language": {
"default": "ru",
"description": "Native language value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"ru",
"en"
]
}
},
"required": [
"locationId",
"productId",
"employeeId",
"templateId",
"mode",
"storage",
"temperature",
"packedAt",
"shelfLife",
"durationUnit",
"copies",
"language"
],
"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"
}
}
]
}
}
}