MCP Control
Заказы · Изменение

Заказы · Закупки · Изменение

orders_workspace_purchase_update
Упакованный заказ на стойке

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

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

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

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

Native Order Workspace purchase_update. Uses the same current company handlers and permissions as order-web.web.app. Read every hash-bound chunk and follow any native pagination. Saved configuration, queued work and provider confirmation are distinct. Recover uncertain writes with orders_workspace_get_operation and the original request ID.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
storageId
Native storageId value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string
supplier
Native supplier value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string / null · по умолчанию null
comment
Native comment value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string · по умолчанию "" · до символов 2000
items
Native items value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · array · до элементов 100
sourceOrderIds
Native sourceOrderIds value. Resolve existing identifiers and read the current native state before changes. необязательно · array · до элементов 50
purchaseId
Native purchaseId value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string
expectedVersion
Native expectedVersion value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
Что вернёт команда
companyId
Verified current native company. обязательно по схеме · string
result
Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа orders_workspace_purchase_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Stable request ID for this exact operation. Preserve after uncertainty; recover with get_operation."
    },
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native locationId value. Resolve existing identifiers and read the current native state before changes."
    },
    "storageId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native storageId value. Resolve existing identifiers and read the current native state before changes."
    },
    "supplier": {
      "default": null,
      "description": "Native supplier value. Resolve existing identifiers and read the current native state before changes.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "comment": {
      "default": "",
      "description": "Native comment value. Resolve existing identifiers and read the current native state before changes.",
      "type": "string",
      "maxLength": 2000
    },
    "items": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
            "description": "Native productId value. Resolve existing identifiers and read the current native state before changes."
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 10000000,
            "description": "Native quantity value. Resolve existing identifiers and read the current native state before changes."
          },
          "unitCost": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "Native unitCost value. Resolve existing identifiers and read the current native state before changes."
          }
        },
        "required": [
          "productId",
          "quantity",
          "unitCost"
        ],
        "additionalProperties": false
      },
      "description": "Native items value. Resolve existing identifiers and read the current native state before changes."
    },
    "sourceOrderIds": {
      "description": "Native sourceOrderIds value. Resolve existing identifiers and read the current native state before changes.",
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
      }
    },
    "purchaseId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native purchaseId value. Resolve existing identifiers and read the current native state before changes."
    },
    "expectedVersion": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expectedVersion value. Resolve existing identifiers and read the current native state before changes."
    }
  },
  "required": [
    "requestId",
    "locationId",
    "storageId",
    "supplier",
    "comment",
    "items",
    "purchaseId",
    "expectedVersion"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Verified current native company."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings."
    }
  },
  "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"
          }
        }
      ]
    }
  }
}