MCP Control
Склад · Изменение

Поставщики · Предложения · Создание

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

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

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

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

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

Create supplier offers with server-assigned identity. Validate related identifiers with their search actions first. The change is atomic and idempotent. Existing records are not replaced. After a lost or unrecognized response, use supplier_offers_get_create_result with the exact original arguments to check the saved result without repeating the change. A nonempty supplier is a canonical users document ID and requires current CRM customer-read permission. The server checks the effective supplier through the existing user-reference adapter before SQL CAS; supplied null or empty string clears this optional reference. Omitted update supplier preserves and verifies the current value.

Параметры запроса
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
key
Canonical business identifier. Company identity is always supplied by authentication. обязательно по схеме · object
revision
Current revision; pass it unchanged to update or delete. обязательно по схеме · string
values
Authorized native entity fields, with credentials and internal service data excluded. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа supplier_offers_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "values": {
      "type": "object",
      "properties": {
        "product": {
          "description": "List of canonical identifiers from supplier_products_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
          "anyOf": [
            {
              "maxItems": 500,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 100000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "country": {
          "description": "country in supplier offers. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "price": {
          "description": "price in supplier offers. Supply only an intentional user-requested change; omitted fields are preserved.",
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "description": "currency in supplier offers. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "qt": {
          "description": "qt in supplier offers. Supply only an intentional user-requested change; omitted fields are preserved.",
          "anyOf": [
            {
              "type": "integer",
              "minimum": -2147483648,
              "maximum": 2147483647
            },
            {
              "type": "null"
            }
          ]
        },
        "inStoke": {
          "description": "inStoke in supplier offers. Supply only an intentional user-requested change; omitted fields are preserved.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "supplier": {
          "description": "Canonical existing supplier account identifier. The server verifies its company and location through the existing customer reference service. A nonempty value requires CRM and customers.read for the account and connection. Omit on update to preserve and verify the current supplier; null or empty string clears this optional reference.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "Values for the new business entity, following the native schema. The server allocates the ID and company."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable identifier for this exact change. Use the same requestId and arguments for retries. Never create a new request ID to bypass a conflict or pending confirmation."
    }
  },
  "required": [
    "values",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "object",
      "properties": {
        "ID": {
          "type": "string",
          "maxLength": 500000,
          "description": "Canonical supplier offers identifier from supplier_offers_list. Copy the exact identifier; it is not a name or display number."
        }
      },
      "required": [
        "ID"
      ],
      "additionalProperties": false,
      "description": "Canonical business identifier. Company identity is always supplied by authentication."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Current revision; pass it unchanged to update or delete."
    },
    "values": {
      "type": "object",
      "properties": {
        "created_at": {
          "description": "created at in supplier offers. Use an ISO timestamp with Z or an explicit UTC offset.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "product": {
          "description": "List of canonical identifiers from supplier_products_list. Each linked entity must belong to the same workspace. An empty value clears an optional link.",
          "anyOf": [
            {
              "maxItems": 10000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 500000
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "country": {
          "description": "country in supplier offers.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "price": {
          "description": "price in supplier offers.",
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "description": "currency in supplier offers.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "qt": {
          "description": "qt in supplier offers.",
          "anyOf": [
            {
              "type": "integer",
              "minimum": -2147483648,
              "maximum": 2147483647
            },
            {
              "type": "null"
            }
          ]
        },
        "inStoke": {
          "description": "inStoke in supplier offers.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "supplier": {
          "description": "Canonical existing supplier account identifier. The server verifies its company and location through the existing customer reference service.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "ID": {
          "description": "ID in supplier offers.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        },
        "company": {
          "description": "company in supplier offers.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "Authorized native entity fields, with credentials and internal service data excluded."
    }
  },
  "required": [
    "key",
    "revision",
    "values"
  ],
  "additionalProperties": false
}