Финансы · Записи · Вручную · Движение
finance_record_manual_movement
Попробуйте три запроса
- Вы указываетеFromaccountid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Финансы / Записи / Вручную / Движение». Для изменения нужны direction, сумма. Покажи объект и ожидаемый эффект до выполнения.
- direction
- Параметр
- amount
- Сумма
- comment
- Комментарий
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Финансы / Записи / Вручную / Движение» с параметром direction = income. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- direction
- income
- fromAccountId
- DEMO-101
- toAccountId
- DEMO-101
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Финансы / Записи / Вручную / Движение» по исходному ответу. Покажи movement, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Record one already completed manual income, expense or same-currency account transfer using the native accounting balance rules. Requires access to all locations and current OAuth and employee permissions. Company, actor and currency are server-resolved. Does not post order payments, payroll, deposits, supplies or cash-shift settlement. To correct an entry, use finance_correct_manual_movement to append its inverse and explicit replacement atomically. After an uncertain response check finance_get_record_manual_movement_result with the exact original arguments.
Параметры запроса
- direction
- 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. обязательно по схеме · string · варианты income, expense, transfer
- amount
- Positive amount in the accounts’ existing units, at most 1000000000000. No currency conversion or provider settlement is performed. обязательно по схеме · number · максимум 1000000000000
- fromAccountId
- Canonical financial account ID from finance_accounts_list/get. Required for expense and transfer; forbidden for income. необязательно · string · до символов 128
- toAccountId
- Canonical financial account ID from finance_accounts_list/get. Required for income and transfer; forbidden for expense. необязательно · string · до символов 128
- categoryId
- 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. необязательно · string · до символов 128
- occurredAt
- 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. необязательно · string
- comment
- Business reason for this manual bookkeeping entry. Do not include credentials or unrelated personal information. обязательно по схеме · string · до символов 1000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- movement
- Compact committed bookkeeping result. No provider transaction, invoice or customer balance is created. обязательно по схеме · object
- revision
- Current movement revision returned by its successful record result. A changed native transaction cannot be reversed through this operation. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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."
},
"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": [
"direction",
"amount",
"comment",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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
}