Заказы · Чтение
Заказы · Штатные · Предварительный расчёт
orders_native_quote
Попробуйте три запроса
Получить данные
- Вы указываетеЗаказ
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Заказы / Штатные / Предварительный расчёт» выполни чтение по выбранной записи (заказ). Выведи кратко: статус, quoteHash.
- status
- Статус
- quoteHash
- Поле ответа
- order
- Поле ответа
Задать параметры
- Вы указываетеЗаказ
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Заказы / Штатные / Предварительный расчёт» на учебном примере с orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- orderId
- DEMO-101
- expectedVersion
- 4
- locationId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Заказы / Штатные / Предварительный расчёт» объясни статус, quoteHash. Отметь отсутствующие значения.
- status
- Статус
- quoteHash
- Поле ответа
- order
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Preview a new or amended order through the current Orders service. Supports exact set_quantity/remove/set_price, modifiers, promotions, taxes, guests, table reservations and booking times. Native permission, settlement, availability and pricing rules apply. New orderId must be retained for commit. This preview does not reserve stock or a table. Use its hash only with orders_native_create/update, not the separate orders_quote simulation.
Параметры запроса
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string
- expectedVersion
- Native expectedVersion value; use the value and type returned by the corresponding service. необязательно · integer · минимум 0 · максимум 9007199254740991
- stockConfirmation
- Native stockConfirmation value; use the value and type returned by the corresponding service. необязательно · string
- availabilityConfirmations
- Native availabilityConfirmations value; use the value and type returned by the corresponding service. необязательно · array · до элементов 200
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- cashShiftId
- Native cashShiftId value; use the value and type returned by the corresponding service. необязательно · string
- clientId
- Native clientId value; use the value and type returned by the corresponding service. необязательно · string / null
- promocode
- Native promocode value; use the value and type returned by the corresponding service. необязательно · string · до символов 160
- offerIds
- Native offerIds value; use the value and type returned by the corresponding service. необязательно · array · до элементов 100
- operations
- Native operations value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 200
- discountIds
- Native discountIds value; use the value and type returned by the corresponding service. необязательно · array · до элементов 50
- manualDiscount
- Native manualDiscount value; use the value and type returned by the corresponding service. необязательно · number · минимум 0 · максимум 1000000000
- taxRelief
- Native taxRelief value; use the value and type returned by the corresponding service. необязательно · array · до элементов 30
- gifts
- Native gifts value; use the value and type returned by the corresponding service. необязательно · array · до элементов 50
- fees
- Native fees value; use the value and type returned by the corresponding service. необязательно · array · до элементов 50
- patch
- Native patch value; use the value and type returned by the corresponding service. обязательно по схеме · object · по умолчанию {}
Что вернёт команда
- status
- Native status value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты quoted, review_required
- quoteHash
- Native quoteHash value; use the value and type returned by the corresponding service. обязательно по схеме · string / null
- order
- Native order value; use the value and type returned by the corresponding service. обязательно по схеме · object / null
- warnings
- Native warnings value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 200
- review
- Native review value; use the value and type returned by the corresponding service. обязательно по схеме · object / null
- reserved
- Native reserved value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"orderId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native orderId value; use the value and type returned by the corresponding service."
},
"expectedVersion": {
"description": "Native expectedVersion value; use the value and type returned by the corresponding service.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"stockConfirmation": {
"description": "Native stockConfirmation value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"availabilityConfirmations": {
"description": "Native availabilityConfirmations value; use the value and type returned by the corresponding service.",
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"productId": {
"$ref": "#/$defs/_mcp0"
},
"confirmation": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native confirmation value; use the value and type returned by the corresponding service."
}
},
"required": [
"productId",
"confirmation"
],
"additionalProperties": false
}
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"cashShiftId": {
"description": "Native cashShiftId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"clientId": {
"description": "Native clientId value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
{
"type": "null"
}
]
},
"promocode": {
"description": "Native promocode value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 160
},
"offerIds": {
"description": "Native offerIds value; use the value and type returned by the corresponding service.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
}
},
"operations": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"add",
"set_quantity",
"remove",
"add_modifier",
"remove_modifier",
"set_price"
],
"description": "Native op value; use the value and type returned by the corresponding service."
},
"product_id": {
"description": "Native product_id value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"line_id": {
"description": "Native line_id value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"quantity": {
"description": "Native quantity value; use the value and type returned by the corresponding service.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000
},
"price": {
"description": "Native price value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"multipleOf": 0.01
},
{
"type": "null"
}
]
},
"comment": {
"description": "Native comment value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"new_line": {
"description": "Native new_line value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"option_set_id": {
"description": "Native option_set_id value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"modifier_product_ids": {
"description": "Native modifier_product_ids value; use the value and type returned by the corresponding service.",
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
}
},
"modifier_selections": {
"$ref": "#/$defs/_mcp5"
}
},
"required": [
"op"
],
"additionalProperties": false
},
"description": "Native operations value; use the value and type returned by the corresponding service."
},
"discountIds": {
"description": "Native discountIds value; use the value and type returned by the corresponding service.",
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
}
},
"manualDiscount": {
"description": "Native manualDiscount value; use the value and type returned by the corresponding service.",
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"multipleOf": 0.01
},
"taxRelief": {
"description": "Native taxRelief value; use the value and type returned by the corresponding service.",
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"fromTaxId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native fromTaxId value; use the value and type returned by the corresponding service."
},
"toTaxId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native toTaxId value; use the value and type returned by the corresponding service."
},
"lineIds": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"description": "Native lineIds value; use the value and type returned by the corresponding service."
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Native reason value; use the value and type returned by the corresponding service."
},
"documentId": {
"description": "Native documentId value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 200
}
},
"required": [
"fromTaxId",
"toTaxId",
"lineIds",
"reason"
],
"additionalProperties": false
}
},
"gifts": {
"description": "Native gifts value; use the value and type returned by the corresponding service.",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"promotionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native promotionId value; use the value and type returned by the corresponding service."
},
"productId": {
"$ref": "#/$defs/_mcp0"
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000,
"description": "Native quantity value; use the value and type returned by the corresponding service."
},
"modifier_selections": {
"$ref": "#/$defs/_mcp5"
}
},
"required": [
"promotionId",
"productId",
"quantity"
],
"additionalProperties": false
}
},
"fees": {
"description": "Native fees value; use the value and type returned by the corresponding service.",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native id value; use the value and type returned by the corresponding service."
},
"price": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"multipleOf": 0.01,
"description": "Native price value; use the value and type returned by the corresponding service."
},
"comment": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native comment value; use the value and type returned by the corresponding service."
},
"source": {
"default": "orders",
"description": "Native source value; use the value and type returned by the corresponding service.",
"type": "string",
"const": "orders"
}
},
"required": [
"id",
"price",
"comment",
"source"
],
"additionalProperties": false
}
},
"patch": {
"default": {},
"description": "Native patch value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"dining": {
"description": "Native dining value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"newSeat": {
"description": "Native newSeat value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"addedSeats": {
"description": "Native addedSeats value; use the value and type returned by the corresponding service.",
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"productId": {
"$ref": "#/$defs/_mcp0"
},
"seat": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Native seat value; use the value and type returned by the corresponding service."
}
},
"required": [
"productId",
"seat"
],
"additionalProperties": false
}
},
"lines": {
"description": "Native lines value; use the value and type returned by the corresponding service.",
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"lineId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native lineId value; use the value and type returned by the corresponding service."
},
"seat": {
"description": "Native seat value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"served": {
"description": "Native served value; use the value and type returned by the corresponding service.",
"type": "boolean"
}
},
"required": [
"lineId"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"hall_id": {
"description": "Native hall_id value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"table_id": {
"description": "Native table_id value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"clear_table": {
"description": "Native clear_table value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"booking": {
"description": "Native booking value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"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."
}
},
"required": [
"start",
"finish"
],
"additionalProperties": false
},
"type": {
"description": "Native type value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"atplace",
"pickup",
"delivery",
"catering"
]
},
"comment": {
"description": "Native comment value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 4000
},
"comment_for_production": {
"description": "Native comment_for_production value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 4000
},
"number_people": {
"description": "Native number_people value; use the value and type returned by the corresponding service.",
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"number_kids": {
"description": "Native number_kids value; use the value and type returned by the corresponding service.",
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"date_must_finish": {
"description": "Native date_must_finish value; use the value and type returned by the corresponding service.",
"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)))$"
},
"clear_date_must_finish": {
"description": "Native clear_date_must_finish value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"send_to_production": {
"description": "Native send_to_production value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"color": {
"description": "Native color value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^#[A-Fa-f0-9]{6,8}$"
}
},
"additionalProperties": false
}
},
"required": [
"orderId",
"locationId",
"operations",
"patch"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native productId value; use the value and type returned by the corresponding service."
},
"_mcp5": {
"description": "Native modifier_selections value; use the value and type returned by the corresponding service.",
"maxItems": 30,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp4"
}
},
"_mcp4": {
"type": "object",
"properties": {
"option_set_id": {
"$ref": "#/$defs/_mcp1"
},
"modifier_product_ids": {
"$ref": "#/$defs/_mcp2"
},
"quantities": {
"$ref": "#/$defs/_mcp3"
}
},
"required": [
"option_set_id",
"modifier_product_ids"
],
"additionalProperties": false
},
"_mcp1": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native option_set_id value; use the value and type returned by the corresponding service."
},
"_mcp2": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"description": "Native modifier_product_ids value; use the value and type returned by the corresponding service."
},
"_mcp3": {
"description": "Native quantities value; use the value and type returned by the corresponding service.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"additionalProperties": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10000000
}
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"quoted",
"review_required"
],
"description": "Native status value; use the value and type returned by the corresponding service."
},
"quoteHash": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Native quoteHash value; use the value and type returned by the corresponding service."
},
"order": {
"anyOf": [
{
"type": "object",
"properties": {
"orderId": {
"$ref": "#/$defs/_mcp0"
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native version value; use the value and type returned by the corresponding service."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "Native currency value; use the value and type returned by the corresponding service."
},
"total": {
"type": "number",
"description": "Native total value; use the value and type returned by the corresponding service."
},
"tax": {
"type": "number",
"description": "Native tax value; use the value and type returned by the corresponding service."
},
"discount": {
"type": "number",
"description": "Native discount value; use the value and type returned by the corresponding service."
},
"paid": {
"type": "number",
"description": "Native paid value; use the value and type returned by the corresponding service."
},
"delivery": {
"type": "number",
"description": "Native delivery value; use the value and type returned by the corresponding service."
},
"lines": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"lineId": {
"$ref": "#/$defs/_mcp0"
},
"productId": {
"$ref": "#/$defs/_mcp0"
},
"quantity": {
"type": "number",
"description": "Native quantity value; use the value and type returned by the corresponding service."
},
"unitPrice": {
"type": "number",
"description": "Native unitPrice value; use the value and type returned by the corresponding service."
},
"amount": {
"type": "number",
"description": "Native amount value; use the value and type returned by the corresponding service."
},
"optionId": {
"anyOf": [
{
"type": "string",
"maxLength": 160
},
{
"type": "null"
}
],
"description": "Native optionId value; use the value and type returned by the corresponding service."
}
},
"required": [
"lineId",
"productId",
"quantity",
"unitPrice",
"amount",
"optionId"
],
"additionalProperties": false
},
"description": "Native lines value; use the value and type returned by the corresponding service."
},
"metadata": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native metadata value; use the value and type returned by the corresponding service."
}
},
"required": [
"orderId",
"locationId",
"version",
"currency",
"total",
"tax",
"discount",
"paid",
"delivery",
"lines",
"metadata"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Native order value; use the value and type returned by the corresponding service."
},
"warnings": {
"maxItems": 200,
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
},
"description": "Native warnings value; use the value and type returned by the corresponding service."
},
"review": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "null"
}
],
"description": "Native review value; use the value and type returned by the corresponding service."
},
"reserved": {
"type": "boolean",
"const": false,
"description": "Native reserved value; use the value and type returned by the corresponding service."
}
},
"required": [
"status",
"quoteHash",
"order",
"warnings",
"review",
"reserved"
],
"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"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
},
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native orderId value; use the value and type returned by the corresponding service."
}
}
}