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

Оформить приход на склад

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

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

Подготовить приход
  1. Вы указываете6 кружек
  2. ПомощникЧерновик прихода
  3. Вы получаетеПозиция и количество
Запрос в чат
Подготовь приход 6 учебных кружек на выбранный склад. Уточни единицу и закупочную стоимость до проведения.
Учебный пример ответа
Кружка
6 шт.
Операция
Подготовка
Провести приход
  1. Вы указываетеСогласованные строки
  2. ПомощникПриход на склад
  3. Вы получаетеДокумент и остаток
Запрос в чат
Проведи согласованный приход шести кружек по выбранному товару, складу и цене. Покажи номер документа и изменение остатка.
Учебный пример ответа
Документ
DEMO-302
Приход
+6 шт.
Сверить результат
  1. Вы указываетеИсходный приход
  2. ПомощникСверка ответа
  3. Вы получаетеКонтрольные поля
Запрос в чат
Сверь число строк, сумму и изменение остатков в ответе по исходному приходу. Укажи валюту отдельно.
Учебный пример ответа
Строк
1
Учебная сумма
18 USD
Как работает действие

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

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

Create one incoming native receipt with current OAuth scope and employee permission. Stock increases immediately even in created status. Optional already-paid Supply bookkeeping and its reciprocal receipt link commit atomically. Company, actor, record IDs and line IDs are server-owned. Supports durable result recovery. Does not edit existing receipts, complete a Request, handle attachments or send a payment.

Параметры запроса
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
recordId
Created receipt ID; use inventory_receipts_get for its current record. обязательно по схеме · string · до символов 128
revision
Native revision at commit time. Later edits do not change this historical result. обязательно по схеме · string
amount
Sum of the explicit line totals. обязательно по схеме · number · минимум 0
currency
Recorded native currency marker. обязательно по схеме · string · до символов 16
lineCount
Number of committed native incoming lines. обязательно по схеме · integer · минимум 1 · максимум 100
paymentRecordId
Optional committed Supply bookkeeping ID; null if payment was omitted. No bank transfer occurs. обязательно по схеме · string / null
stockEffect
Native stock includes this receipt immediately, regardless of created status. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа inventory_receipt_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "values": {
      "type": "object",
      "properties": {
        "storage": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$",
          "description": "Receipt storage ID found through inventory_storages search. It and each product must belong to your authorized company and locations."
        },
        "currency": {
          "type": "string",
          "minLength": 1,
          "maxLength": 16,
          "pattern": "^\\S+$",
          "description": "Existing native currency marker. Optional payment account must use this same marker; there is no conversion."
        },
        "date": {
          "description": "Receipt timestamp with timezone; omit for server time.",
          "type": "string",
          "format": "date-time",
          "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "supplier": {
          "description": "Optional existing supplier user ID from customers_search. Requires customers.read and CRM; no supplier is created.",
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$"
        },
        "tax": {
          "description": "Optional existing header tax value. It does not change the sum of the explicit line totals.",
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000000
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "minItems": 1,
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "Product": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$",
                "description": "Canonical product ID found through catalog search."
              },
              "Price": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000000,
                "description": "Explicit unit price in the receipt currency."
              },
              "Gross": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000000,
                "description": "Received quantity in the native product unit. The receipt contributes this quantity immediately."
              },
              "Net": {
                "description": "Optional native net quantity; no unit conversion occurs.",
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000000
              },
              "amount": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000000,
                "description": "Explicit native line total. Header amount is the sum of line totals; it is not recomputed from Gross × Price."
              },
              "Tax": {
                "description": "Optional native line tax value, preserved separately.",
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000000
              },
              "Type": {
                "default": "+",
                "description": "Incoming stock only. This operation cannot perform a write-off or transfer.",
                "type": "string",
                "enum": [
                  "+",
                  "in"
                ]
              },
              "Storage": {
                "description": "Optional existing storage for this line; omission uses header storage.",
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_~:@+.-]+$"
              },
              "date": {
                "description": "Optional movement time as ISO with timezone or existing native u/l milliseconds; omission uses receipt date.",
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "string",
                    "pattern": "^[ul]\\d{1,15}$"
                  }
                ]
              },
              "Reasion": {
                "description": "Optional native reason text, retaining the field spelling.",
                "type": "string",
                "maxLength": 2000
              },
              "Comment": {
                "description": "Optional line comment.",
                "type": "string",
                "maxLength": 2000
              }
            },
            "required": [
              "Product",
              "Price",
              "Gross",
              "amount",
              "Type"
            ],
            "additionalProperties": false
          },
          "description": "Incoming receipt lines, up to 100. Server generates every native line ID."
        },
        "payment": {
          "description": "Optionally record already-completed payment bookkeeping in the same transaction. Requires company-wide finance_transactions.create and finance_accounts.read. Does not send money or contact a bank.",
          "type": "object",
          "properties": {
            "fromAccountId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Existing financial account for a Supply expense already paid; find it with finance_accounts_list."
            },
            "amount": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 1000000000000,
              "description": "Actual amount already paid, which may differ from the receipt total."
            },
            "comment": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000,
              "description": "Reason or reference for the recorded payment."
            },
            "occurredAt": {
              "description": "When the payment occurred, with timezone; omit for server time.",
              "type": "string",
              "format": "date-time",
              "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "fromAccountId",
            "amount",
            "comment"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "storage",
        "currency",
        "items"
      ],
      "additionalProperties": false,
      "description": "Incoming receipt and optional already-paid bookkeeping. Server controls company, employee, record IDs and native status."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable key for these exact arguments. After a timeout inspect inventory_receipt_get_operation; never invent a new key for the same receipt."
    }
  },
  "required": [
    "values",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "recordId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Created receipt ID; use inventory_receipts_get for its current record."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Native revision at commit time. Later edits do not change this historical result."
    },
    "amount": {
      "type": "number",
      "minimum": 0,
      "description": "Sum of the explicit line totals."
    },
    "currency": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16,
      "description": "Recorded native currency marker."
    },
    "lineCount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Number of committed native incoming lines."
    },
    "paymentRecordId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional committed Supply bookkeeping ID; null if payment was omitted. No bank transfer occurs."
    },
    "stockEffect": {
      "type": "string",
      "const": "immediate",
      "description": "Native stock includes this receipt immediately, regardless of created status."
    }
  },
  "required": [
    "recordId",
    "revision",
    "amount",
    "currency",
    "lineCount",
    "paymentRecordId",
    "stockEffect"
  ],
  "additionalProperties": false
}