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

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

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

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

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

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

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

Inspect an uncertain active_order_remove_writeoff_line with its original arguments. Never repeats a stock or Order mutation.

Параметры запроса
input
Exact original correction arguments including unchanged requestId. обязательно по схеме · object
Что вернёт команда
state
Presence of an atomic correction receipt; not_committed does not prove no request is running. обязательно по схеме · string · варианты completed, not_committed
result
Original correction result or null. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа active_order_get_writeoff_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,160}$",
          "description": "Exact active native Order ID."
        },
        "expectedRevision": {
          "type": "string",
          "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
          "description": "Exact current Firestore revision from active_order_writeoff_context."
        },
        "lineId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
          "description": "Exact unique native order.writeoff line ID; never derive it from a product name."
        },
        "reason": {
          "default": "",
          "description": "Optional literal reason stored in native Order history.",
          "type": "string",
          "maxLength": 1000
        },
        "requestId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{8,128}$",
          "description": "Stable request ID for these exact arguments; keep it after transport uncertainty."
        }
      },
      "required": [
        "orderId",
        "expectedRevision",
        "lineId",
        "reason",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original correction arguments including unchanged 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": "Presence of an atomic correction receipt; not_committed does not prove no request is running."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "orderId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
              "description": "Exact active native Order ID."
            },
            "removedLineId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
              "description": "Exact unique native order.writeoff line ID; never derive it from a product name."
            },
            "appliedFromRevision": {
              "type": "string",
              "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
              "description": "Exact current Firestore revision from active_order_writeoff_context."
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Native Order version after removal."
            },
            "remainingLineCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 2000,
              "description": "Remaining current order.writeoff snapshot rows."
            },
            "stockPosted": {
              "type": "boolean",
              "const": false,
              "description": "Only the active Order writeoff snapshot changed. No posted stock movement was reversed."
            },
            "recalculationMayRestore": {
              "type": "boolean",
              "const": true,
              "description": "A later native recipe recalculation can regenerate this line, matching native snapshot editing semantics."
            }
          },
          "required": [
            "orderId",
            "removedLineId",
            "appliedFromRevision",
            "version",
            "remainingLineCount",
            "stockPosted",
            "recalculationMayRestore"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original correction result or null."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}