MCP Control
Финансы · Чтение

Финансы · Результат операции «движение»

finance_get_reverse_manual_movement_result
Кассовый чек, калькулятор и монеты

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

Получить данные
  1. Вы указываетеMovementid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Финансы / Результат операции «движение»» выполни чтение по выбранной записи (movementId). Выведи кратко: статус, результат.
Что искать в ответе
status
Статус
result
Результат
После обрыва
  1. Вы указываетеПервоначальный ключ
  2. ПомощникПоиск квитанции
  3. Вы получаетеСостояние операции
Запрос в чат
Найди результат «Финансы / Результат операции «движение»» по ключу первоначальной попытки. Покажи состояние операции и раздели подтверждённые и пока неизвестные данные.
Порядок проверки
1
Взять исходный ключ
2
Проверить квитанцию
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Финансы / Результат операции «движение»» объясни статус, результат. Отметь отсутствующие значения.
Поля для проверки
status
Статус
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. Для поиска результата возьмите идентификатор из первоначальной попытки. Сохраните исходные аргументы. Прочитайте актуальную версию записи перед подготовкой запроса.

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

Read the committed result of finance_reverse_manual_movement using the exact original arguments and unchanged authorization. This never repeats the movement, changes a receipt, or contacts a provider. Requires the same business permissions and access to all locations.

Параметры запроса
movementId
Canonical manual movement ID returned by finance_record_manual_movement. Existing payroll, deposit, order, supply and other native transactions cannot be selected. обязательно по схеме · string · до символов 128
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
comment
Reason for reversing this manual bookkeeping entry. Its original row remains in the financial history. обязательно по схеме · string · до символов 1000
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
status
Whether the exact request has a committed transactional receipt. not_found does not prove a concurrently running request will never commit; keep the original requestId. обязательно по схеме · string · варианты completed, not_found
result
Original committed result, or null when no exact receipt exists. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа finance_get_reverse_manual_movement_result
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "movementId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical manual movement ID returned by finance_record_manual_movement. Existing payroll, deposit, order, supply and other native transactions cannot be selected."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Current movement revision returned by its successful record result. A changed native transaction cannot be reversed through this operation."
    },
    "comment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Reason for reversing this manual bookkeeping entry. Its original row remains in the financial history."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable identifier for this exact operation. Reuse the same requestId and arguments for retries or result recovery."
    }
  },
  "required": [
    "movementId",
    "expectedRevision",
    "comment",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "not_found"
      ],
      "description": "Whether the exact request has a committed transactional receipt. not_found does not prove a concurrently running request will never commit; keep the original requestId."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "movement": {
              "type": "object",
              "properties": {
                "movementId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_~:@+.-]+$",
                  "description": "Canonical financial transaction identifier. Preserve it with revision for a possible explicit reversal."
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "income",
                    "expense",
                    "transfer"
                  ],
                  "description": "Bookkeeping direction written using the existing native balance rules."
                },
                "amount": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "description": "Recorded amount in native account units."
                },
                "currency": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32,
                  "description": "Exact existing currency marker taken from the verified account. Transfers require identical markers."
                },
                "fromAccountId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Debited account, or null for income."
                },
                "toAccountId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Credited account, or null for expense."
                },
                "categoryId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Verified category, or null for a transfer or an explicit correcting reversal."
                },
                "occurredAt": {
                  "type": "string",
                  "description": "Native recorded absolute transaction timestamp."
                },
                "comment": {
                  "type": "string",
                  "maxLength": 1000,
                  "description": "Recorded business reason."
                },
                "sourceMovementId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_~:@+.-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Original manual movement being reversed, or null for a new manual entry."
                }
              },
              "required": [
                "movementId",
                "direction",
                "amount",
                "currency",
                "fromAccountId",
                "toAccountId",
                "categoryId",
                "occurredAt",
                "comment",
                "sourceMovementId"
              ],
              "additionalProperties": false,
              "description": "Compact committed bookkeeping result. No provider transaction, invoice or customer balance is created."
            },
            "revision": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$",
              "description": "Current movement revision returned by its successful record result. A changed native transaction cannot be reversed through this operation."
            }
          },
          "required": [
            "movement",
            "revision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original committed result, or null when no exact receipt exists."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}