Каталог · Чтение
Каталог · Товары · Просмотр · Импорт · Операция
catalog_products_get_import_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Каталог / Товары / Просмотр / Импорт / Операция» выполни чтение в текущей компании. Выведи кратко: статус, результат.
- status
- Статус
- result
- Результат
Задать параметры
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Каталог / Товары / Просмотр / Импорт / Операция» на учебном примере с itemType = product. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- itemType
- product
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Каталог / Товары / Просмотр / Импорт / Операция» объясни статус, результат. Отметь отсутствующие значения.
- status
- Статус
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the exact atomic native receipt for the original catalog_products_import_commit arguments and requestId. A missing receipt may coexist with a concurrent commit; keep the original requestId. This Action never imports products.
Параметры запроса
- fileUrl
- Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>. обязательно по схеме · string · до символов 1200
- itemType
- Native product row type to import. обязательно по схеме · string · варианты product, ingrid, modif
- mapping
- Reviewed mapping used to preview and commit the same file. обязательно по схеме · object
- expectedFileHash
- Exact fileHash returned by catalog_products_import_preview. обязательно по схеме · string
- expectedPlanHash
- Exact planHash returned by catalog_products_import_preview. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- status
- Exact atomic native import receipt, or no receipt observed; absence does not rule out an in-flight commit. обязательно по схеме · string · варианты committed, not_recorded
- result
- Original committed result, or null. Reading never imports products. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"fileUrl": {
"type": "string",
"minLength": 35,
"maxLength": 1200,
"pattern": "^supabase:\\/\\/Ingridients\\/[A-Za-z0-9_-]+\\/(?:[^./][^/]*\\/)*[^./][^/]*\\.(?:csv|json)$",
"description": "Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>."
},
"itemType": {
"type": "string",
"enum": [
"product",
"ingrid",
"modif"
],
"description": "Native product row type to import."
},
"mapping": {
"type": "object",
"properties": {
"mapping": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Exact source column name."
},
"target": {
"type": "string",
"enum": [
"name",
"short_description",
"description",
"price",
"available",
"available_in_app",
"unit_of_measurement",
"brand",
"photos",
"category",
"category_ingredients",
"production_area",
"type_tax"
],
"description": "Supported native product field."
},
"transform": {
"description": "Native conversion such as number, normalizeUnit or matchDict:<table>.",
"type": "string",
"maxLength": 100
},
"lang": {
"description": "Language of the imported text.",
"type": "string",
"enum": [
"ru",
"en",
"es",
"uk"
]
}
},
"required": [
"source",
"target"
],
"additionalProperties": false
},
"description": "Reviewed source-to-native product field mapping."
},
"defaultValues": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Reviewed native defaults; identity and company fields are rejected by the backend."
}
},
"required": [
"mapping",
"defaultValues"
],
"additionalProperties": false,
"description": "Reviewed mapping used to preview and commit the same file."
},
"expectedFileHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact fileHash returned by catalog_products_import_preview."
},
"expectedPlanHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact planHash returned by catalog_products_import_preview."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable ID for this exact import attempt; keep it for an uncertain response."
}
},
"required": [
"fileUrl",
"itemType",
"mapping",
"expectedFileHash",
"expectedPlanHash",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"committed",
"not_recorded"
],
"description": "Exact atomic native import receipt, or no receipt observed; absence does not rule out an in-flight commit."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "commit",
"description": "Native product import commit mode."
},
"imported": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000,
"description": "Number of product rows independently read back."
},
"ids": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"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 native product IDs verified after import."
},
"fileHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "SHA-256 of the committed source file."
},
"planHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "SHA-256 of the committed mapping."
}
},
"required": [
"mode",
"imported",
"ids",
"fileHash",
"planHash"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Original committed result, or null. Reading never imports products."
}
},
"required": [
"status",
"result"
],
"additionalProperties": false
}