Финансы · Исправление · Вручную · Движение
finance_correct_manual_movement
Попробуйте три запроса
- Вы указываетеMovementid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Финансы / Исправление / Вручную / Движение». Для изменения нужны movementId, причина. Покажи объект и ожидаемый эффект до выполнения.
- movementId
- Параметр
- reason
- Причина
- replacement
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Финансы / Исправление / Вручную / Движение» с параметром movementId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- movementId
- DEMO-101
- reason
- Исправление учебной записи
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Финансы / Исправление / Вручную / Движение» по исходному ответу. Покажи reversal, replacement. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Atomically correct one unchanged MCP-owned manual bookkeeping movement: append its exact inverse and record the explicit same-currency replacement through the existing manual finance operations. Both effects commit together or neither does. Requires current revision, company-wide finance create/update permissions and current OAuth and employee permissions. Existing payroll, deposits, orders, supplies and provider settlement are excluded. For uncertainty use finance_get_manual_movement_correction_result with the exact original arguments.
Параметры запроса
- 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
- reason
- Reason for replacing the original bookkeeping entry. This is recorded on the appended inverse; the original history remains unchanged. обязательно по схеме · string · до символов 1000
- replacement
- Explicit replacement using the existing manual movement contract, without an inner requestId. It must use the original currency. No provider transfer, payroll, deposit, supply or order settlement is performed. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- reversal
- Complete appended inverse of the original manual movement. обязательно по схеме · object
- replacement
- Complete replacement committed in the same transaction as the inverse. Either both effects exist or neither does. обязательно по схеме · object
Поля и технические схемы

Вход · 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."
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Reason for replacing the original bookkeeping entry. This is recorded on the appended inverse; the original history remains unchanged."
},
"replacement": {
"type": "object",
"properties": {
"direction": {
"type": "string",
"enum": [
"income",
"expense",
"transfer"
],
"description": "Record received income, a paid expense, or a transfer already made between two existing financial accounts. This operation records bookkeeping; it never instructs a bank or payment provider to transfer money."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Positive amount in the accounts’ existing units, at most 1000000000000. No currency conversion or provider settlement is performed."
},
"fromAccountId": {
"description": "Canonical financial account ID from finance_accounts_list/get. Required for expense and transfer; forbidden for income.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"toAccountId": {
"description": "Canonical financial account ID from finance_accounts_list/get. Required for income and transfer; forbidden for expense.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"categoryId": {
"description": "Optional existing company transaction category ID for income or expense. Omit to record an uncategorized entry, as in Accounting. When supplied, the category must belong to this company and enable the selected direction. Omit for an internal account transfer.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"occurredAt": {
"description": "When the already completed financial movement occurred, with Z or an explicit UTC offset and at most six fractional second digits. If omitted, the server records the commit time.",
"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)))$"
},
"comment": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Business reason for this manual bookkeeping entry. Do not include credentials or unrelated personal information."
}
},
"required": [
"direction",
"amount",
"comment"
],
"additionalProperties": false,
"description": "Explicit replacement using the existing manual movement contract, without an inner requestId. It must use the original currency. No provider transfer, payroll, deposit, supply or order settlement is performed."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for this whole atomic correction. Retry or recover using every original argument; never create a different ID merely because a response was uncertain."
}
},
"required": [
"movementId",
"expectedRevision",
"reason",
"replacement",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reversal": {
"type": "object",
"properties": {
"movement": {
"$ref": "#/$defs/_mcp7"
},
"revision": {
"$ref": "#/$defs/_mcp8"
}
},
"required": [
"movement",
"revision"
],
"additionalProperties": false,
"description": "Complete appended inverse of the original manual movement."
},
"replacement": {
"type": "object",
"properties": {
"movement": {
"$ref": "#/$defs/_mcp7"
},
"revision": {
"$ref": "#/$defs/_mcp8"
}
},
"required": [
"movement",
"revision"
],
"additionalProperties": false,
"description": "Complete replacement committed in the same transaction as the inverse. Either both effects exist or neither does."
}
},
"required": [
"reversal",
"replacement"
],
"additionalProperties": false,
"$defs": {
"_mcp7": {
"type": "object",
"properties": {
"movementId": {
"$ref": "#/$defs/_mcp0"
},
"direction": {
"$ref": "#/$defs/_mcp1"
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Recorded amount in native account units."
},
"currency": {
"$ref": "#/$defs/_mcp2"
},
"fromAccountId": {
"$ref": "#/$defs/_mcp3"
},
"toAccountId": {
"$ref": "#/$defs/_mcp4"
},
"categoryId": {
"$ref": "#/$defs/_mcp5"
},
"occurredAt": {
"type": "string",
"description": "Native recorded absolute transaction timestamp."
},
"comment": {
"type": "string",
"maxLength": 1000,
"description": "Recorded business reason."
},
"sourceMovementId": {
"$ref": "#/$defs/_mcp6"
}
},
"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."
},
"_mcp8": {
"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."
},
"_mcp0": {
"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."
},
"_mcp1": {
"type": "string",
"enum": [
"income",
"expense",
"transfer"
],
"description": "Bookkeeping direction written using the existing native balance rules."
},
"_mcp2": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Exact existing currency marker taken from the verified account. Transfers require identical markers."
},
"_mcp3": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
],
"description": "Debited account, or null for income."
},
"_mcp4": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
],
"description": "Credited account, or null for expense."
},
"_mcp5": {
"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."
},
"_mcp6": {
"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."
}
}
}