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

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

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

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

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

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

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

Read the atomic result of an exact active_order_cancel request without repeating a write. Rechecks current company/location and Order permissions.

Параметры запроса
input
Exact original cancellation arguments. обязательно по схеме · object
Что вернёт команда
state
Whether the exact business mutation committed. обязательно по схеме · string · варианты completed, not_committed
result
Immutable committed cancellation result, or null before commit. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа active_order_get_cancel_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": "Native active Order document ID."
        },
        "expectedRevision": {
          "type": "string",
          "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
          "description": "Exact Firestore revision from active_order_cancel_context."
        },
        "reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500,
          "description": "Reason recorded in native Order status and history."
        },
        "requestId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{8,128}$",
          "description": "Stable request ID for this exact cancellation; reuse it after an uncertain result."
        }
      },
      "required": [
        "orderId",
        "expectedRevision",
        "reason",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original cancellation arguments."
    }
  },
  "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 exact business mutation committed."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "orderId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Native active Order document ID."
            },
            "appliedFromRevision": {
              "type": "string",
              "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
              "description": "Exact Firestore revision from active_order_cancel_context."
            },
            "previousStatus": {
              "type": "string",
              "description": "Native Status before cancellation."
            },
            "status": {
              "type": "string",
              "const": "cancel",
              "description": "Canonical native canceled status."
            },
            "version": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Native Order version after commit."
            },
            "canceledAt": {
              "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))$",
              "description": "Timestamp of the committed cancellation."
            }
          },
          "required": [
            "orderId",
            "appliedFromRevision",
            "previousStatus",
            "status",
            "version",
            "canceledAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Immutable committed cancellation result, or null before commit."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}