Склад · Чувствительное действие
Склад · Остатки · Возврат
inventory_stock_return
Попробуйте три запроса
Подготовить
- Вы указываетеSupplierid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Склад / Остатки / Возврат». Для изменения нужны lines, заметка. Покажи объект и ожидаемый эффект до выполнения.
- lines
- Параметр
- note
- Заметка
- supplierId
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Склад / Остатки / Возврат» с параметром note = Нужна сверка. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- note
- Нужна сверка
- supplierId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Склад / Остатки / Возврат» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Post native warehouse return through the existing Storage service and SQL stock ledger. Use explicitly selected products, warehouses, units and current posted quantities. Reservation, revision and role checks apply. This records stock only, not a bank payment. After uncertainty read inventory_storage_operation_get with the original operation/requestId.
Параметры запроса
- lines
- Native lines value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 100
- note
- Native note value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 1000
- supplierId
- Native supplierId value; use the value and type returned by the corresponding service. необязательно · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"lines": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native productId value; use the value and type returned by the corresponding service."
},
"storageId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native storageId value; use the value and type returned by the corresponding service."
},
"quantity": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native quantity value; use the value and type returned by the corresponding service."
},
"expected": {
"type": "number",
"minimum": -1000000000000,
"maximum": 1000000000000,
"description": "Current posted stock from inventory_storage_context, not available stock. Native optimistic concurrency rejects changes."
},
"price": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000,
"description": "Native price value; use the value and type returned by the corresponding service."
}
},
"required": [
"productId",
"storageId",
"quantity",
"expected",
"price"
],
"additionalProperties": false
},
"description": "Native lines value; use the value and type returned by the corresponding service."
},
"note": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Native note value; use the value and type returned by the corresponding service."
},
"supplierId": {
"description": "Native supplierId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"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."
}
},
"required": [
"lines",
"note",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"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"
}
}
]
}
}
}