Склад · Чтение
Склад · Квитанции · Просмотр · Операция
inventory_receipt_get_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Склад / Квитанции / Просмотр / Операция» выполни чтение в текущей компании. Выведи кратко: статус, результат.
- status
- Статус
- result
- Результат
Задать параметры
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Склад / Квитанции / Просмотр / Операция» на учебном примере с values.currency = USD. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- values.currency
- USD
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Склад / Квитанции / Просмотр / Операция» объясни статус, результат. Отметь отсутствующие значения.
- status
- Статус
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the result of inventory_receipt_create using exactly its original arguments and requestId. It never repeats a write. Requires the original permissions, including optional supplier/payment access. not_found does not rule out an in-flight commit; retain the original key.
Параметры запроса
- values
- Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- status
- Whether this exact request has a durable result; not_found does not exclude a pending commit. обязательно по схеме · string · варианты completed, not_found
- result
- Original committed receipt summary, or null when the result is not yet found. обязательно по схеме · object / null
Поля и технические схемы

Вход · 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": {
"status": {
"type": "string",
"enum": [
"completed",
"not_found"
],
"description": "Whether this exact request has a durable result; not_found does not exclude a pending commit."
},
"result": {
"anyOf": [
{
"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
},
{
"type": "null"
}
],
"description": "Original committed receipt summary, or null when the result is not yet found."
}
},
"required": [
"status",
"result"
],
"additionalProperties": false
}