MCP Control
Склад · Чувствительное действие

Склад · Поставки · Запросы · Приёмка

inventory_supply_request_receive
Посылки на упаковочном столе

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

Подготовить
  1. Вы указываетеДокумент
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Склад / Поставки / Запросы / Приёмка». Для изменения нужны документ, версия. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
documentId
Документ
version
Версия
lines
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Склад / Поставки / Запросы / Приёмка» с параметром documentId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
documentId
DEMO-101
version
4
note
Нужна сверка
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Склад / Поставки / Запросы / Приёмка» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

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

Native supply-request receive. Receive explicit actual quantities against the approved request, update posted stock and received quantities through the existing ledger. Current native status/version and stable request ID are required.

Параметры запроса
documentId
Native documentId value; use the value and type returned by the corresponding service. обязательно по схеме · string
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
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
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
Поля и технические схемы
Входные поля и поля ответа inventory_supply_request_receive
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native documentId value; use the value and type returned by the corresponding service."
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "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": {
      "default": "",
      "description": "Native note value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 1000
    },
    "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": [
    "documentId",
    "version",
    "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"
          }
        }
      ]
    }
  }
}