Финансы · Чувствительное действие
Создать транзакцию
Записывает доход, расход или перевод между счетами через штатную форму финансов.
finance_transaction_create
Попробуйте три запроса
Подготовить
- Вы указываетеSupplyid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Создать транзакцию». Для изменения нужны тип, сумма. Покажи объект и ожидаемый эффект до выполнения.
- type
- Тип
- amount
- Сумма
- comment
- Комментарий
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Создать транзакцию» с параметром type = +. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- type
- +
- supplyId
- DEMO-101
- locationId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Создать транзакцию» по исходному ответу. Покажи transaction, replayed. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Record a native financial transaction through the same Orders finance writer as the interface, including receipt files and an optional owned supplier payment. This records bookkeeping; it does not instruct a bank or payment provider. Type + is income, - expense, = account transfer. Use existing company accounts, current currency and a stable requestId. Repeating the same request returns the original transaction.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- supplyId
- Native supplyId value; use the value and type returned by the corresponding service. необязательно · string
- locationId
- Идентификатор точки из текущего подключения. необязательно · string
- type
- Native type value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты +, -, =
- amount
- Native amount value; use the value and type returned by the corresponding service. обязательно по схеме · number · максимум 1000000000000
- fromAccount
- Native fromAccount value; use the value and type returned by the corresponding service. необязательно · string / null
- toAccount
- Native toAccount value; use the value and type returned by the corresponding service. необязательно · string / null
- category
- Native category value; use the value and type returned by the corresponding service. необязательно · string / null
- comment
- Native comment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 4000
- invoice
- Native invoice value; use the value and type returned by the corresponding service. обязательно по схеме · array · по умолчанию [] · до элементов 10
Что вернёт команда
- transaction
- Native transaction value; use the value and type returned by the corresponding service. обязательно по схеме · object
- replayed
- Native replayed value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
},
"supplyId": {
"description": "Native supplyId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"locationId": {
"description": "Native locationId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"type": {
"type": "string",
"enum": [
"+",
"-",
"="
],
"description": "Native type value; use the value and type returned by the corresponding service."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Native amount value; use the value and type returned by the corresponding service."
},
"fromAccount": {
"description": "Native fromAccount value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
]
},
"toAccount": {
"description": "Native toAccount value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
]
},
"category": {
"description": "Native category value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
]
},
"comment": {
"default": "",
"description": "Native comment value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 4000
},
"invoice": {
"default": [],
"description": "Native invoice value; use the value and type returned by the corresponding service.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"image": {
"type": "string",
"maxLength": 2000,
"format": "uri",
"description": "Native image value; use the value and type returned by the corresponding service."
},
"Number": {
"description": "Native Number value; use the value and type returned by the corresponding service.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"Available": {
"description": "Native Available value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"Language": {
"description": "Native Language value; use the value and type returned by the corresponding service.",
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"maxLength": 20
}
}
},
"required": [
"image"
],
"additionalProperties": false
}
}
},
"required": [
"requestId",
"type",
"amount",
"comment",
"invoice"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"transaction": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native transaction value; use the value and type returned by the corresponding service."
},
"replayed": {
"type": "boolean",
"description": "Native replayed value; use the value and type returned by the corresponding service."
}
},
"required": [
"transaction",
"replayed"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}