MCP Control
Заказы · Чтение

Текущие · Заказы · Просмотр · Заметки · Операция

active_order_get_notes_operation
Упакованный заказ на стойке

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Текущие / Заказы / Просмотр / Заметки / Операция» выполни чтение в текущей компании. Выведи кратко: состояние, результат.
Что искать в ответе
state
Состояние
result
Результат
Задать параметры
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Текущие / Заказы / Просмотр / Заметки / Операция» на учебном примере с input.orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
input.orderId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Текущие / Заказы / Просмотр / Заметки / Операция» объясни состояние, результат. Отметь отсутствующие значения.
Поля для проверки
state
Состояние
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

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

Read the immutable outcome of an exact active_order_update_notes request. Rechecks current order access and original write permissions. Never repeats a write; not_committed can be explicitly resumed.

Параметры запроса
input
Exact original arguments including original requestId. обязательно по схеме · object
Что вернёт команда
state
Whether the business mutation committed. обязательно по схеме · string · варианты completed, not_committed
result
Original committed patch or null; this is not current order state. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа active_order_get_notes_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
          "description": "Canonical active Firestore order ID from active_orders_search/get, not a display number."
        },
        "expectedRevision": {
          "type": "string",
          "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
          "description": "Exact Firestore revision from active_order_notes_context; detects changes even if a native writer did not increment version."
        },
        "values": {
          "type": "object",
          "properties": {
            "comment": {
              "description": "Native order.Comment. Empty string explicitly clears this field.",
              "type": "string",
              "maxLength": 4000
            },
            "customerComment": {
              "description": "Native order.CommentClient. Omission preserves the existing customer note.",
              "type": "string",
              "maxLength": 4000
            },
            "productionComment": {
              "description": "Native order.CommentForProduction. This stores text; it does not submit to production or send a message.",
              "type": "string",
              "maxLength": 4000
            }
          },
          "additionalProperties": false,
          "description": "Only explicitly supplied native comment fields change. Null, items, prices, payments, status and inventory fields are not accepted."
        },
        "requestId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{8,128}$",
          "description": "Stable request ID for exactly this patch; reuse unchanged after a lost response."
        }
      },
      "required": [
        "orderId",
        "expectedRevision",
        "values",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original arguments including original requestId."
    }
  },
  "required": [
    "input"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "completed",
        "not_committed"
      ],
      "description": "Whether the business mutation committed."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "orderId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Canonical active Firestore order ID from active_orders_search/get, not a display number."
            },
            "appliedFromRevision": {
              "type": "string",
              "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
              "description": "Exact Firestore revision from active_order_notes_context; detects changes even if a native writer did not increment version."
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Native version after this exact commit. Read notes context again before another edit."
            },
            "values": {
              "type": "object",
              "properties": {
                "comment": {
                  "description": "Native order.Comment. Empty string explicitly clears this field.",
                  "type": "string",
                  "maxLength": 4000
                },
                "customerComment": {
                  "description": "Native order.CommentClient. Omission preserves the existing customer note.",
                  "type": "string",
                  "maxLength": 4000
                },
                "productionComment": {
                  "description": "Native order.CommentForProduction. This stores text; it does not submit to production or send a message.",
                  "type": "string",
                  "maxLength": 4000
                }
              },
              "additionalProperties": false,
              "description": "Exact committed patch; omitted comments were preserved."
            }
          },
          "required": [
            "orderId",
            "appliedFromRevision",
            "version",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original committed patch or null; this is not current order state."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}