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

Склад · Поставки · Запросы · Создание

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

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

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

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

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

Native supply-request create. Manage the canonical request and retain its history; this does not send a supplier message or make a payment. Current native status/version and stable request ID are required.

Параметры запроса
storageId
Native storageId value; use the value and type returned by the corresponding service. обязательно по схеме · string
supplierId
Native supplierId value; use the value and type returned by the corresponding service. обязательно по схеме · string
date
Native date value; use the value and type returned by the corresponding service. необязательно · string
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_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "storageId": {
      "$ref": "#/$defs/_mcp0"
    },
    "supplierId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native supplierId value; use the value and type returned by the corresponding service."
    },
    "date": {
      "description": "Native date value; use the value and type returned by the corresponding service.",
      "type": "string",
      "format": "date",
      "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])))$"
    },
    "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": {
            "$ref": "#/$defs/_mcp0"
          },
          "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": [
    "storageId",
    "supplierId",
    "lines",
    "note",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native storageId value; use the value and type returned by the corresponding service."
    }
  }
}
Выход · 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"
          }
        }
      ]
    }
  }
}