MCP Control
Заказы · Чтение

Текущие · Заказы · Позиции · Список

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

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

Получить данные
  1. Вы указываетеЗаказ
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Текущие / Заказы / Позиции / Список» выполни чтение по выбранной записи (заказ). Выведи кратко: заказ, список позиций.
Что искать в ответе
orderId
Заказ
items
Список позиций
totalItems
Поле ответа
Следующая страница
  1. Вы указываетеПредыдущий ответ
  2. ПомощникПродолжение
  3. Вы получаетеСледующая страница
Запрос в чат
Продолжи «Текущие / Заказы / Позиции / Список» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Как листать выдачу
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Текущие / Заказы / Позиции / Список» объясни заказ, список позиций. Отметь отсутствующие значения.
Поля для проверки
orderId
Заказ
items
Список позиций
totalItems
Поле ответа
Как работает действие

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

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

Read a bounded page of stored native order line items in array order. Use orderId from active_orders_search/get. Start at offset 0 or continue active_orders_get at offset 100 using itemsRevision. Every continuation requires the preceding revision; if the order changes, read its current summary and restart instead of mixing versions. Rechecks company and location. Does not quote, reserve or modify any item.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string · до символов 128
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 100000
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 50 · минимум 1 · максимум 100
expectedRevision
Версия, прочитанная перед изменением. необязательно · string
Что вернёт команда
orderId
Canonical native order identifier whose line items were read. обязательно по схеме · string
items
Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 100
totalItems
Total number of stored line items at this revision. обязательно по схеме · integer · минимум -9007199254740991 · максимум 9007199254740991
nextOffset
Смещение для получения следующей страницы. обязательно по схеме · integer / null
revision
Fingerprint of the exact stored item array and native order version. Pass unchanged as expectedRevision when continuing active_order_items_list; a changed order rejects continuation. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа active_order_items_list
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical native order document identifier returned by active_orders_search/get."
    },
    "offset": {
      "default": 0,
      "description": "Zero-based stored item offset. Use nextOffset from the preceding page, or 100 after a truncated active_orders_get result.",
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "limit": {
      "default": 50,
      "description": "Maximum stored line summaries returned, from 1 to 100.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "expectedRevision": {
      "description": "Expected item-array/order-version fingerprint from the preceding page or active_orders_get.itemsRevision. Required whenever offset is greater than zero; optional for the first page.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "orderId",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "description": "Canonical native order identifier whose line items were read."
    },
    "items": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "description": "Stored order item id; an empty value means no native item id was stored."
          },
          "productId": {
            "description": "Stored ProductID; use separate catalog permissions to inspect the product.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Stored native item name."
          },
          "quantity": {
            "description": "Stored Quantity in the product unit.",
            "type": [
              "number",
              "null"
            ]
          },
          "price": {
            "description": "Stored unit Price in the order currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "amount": {
            "description": "Stored line Amount in the order currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "canceled": {
            "type": "boolean",
            "description": "Whether this line explicitly has Cancel=true."
          }
        },
        "required": [
          "itemId",
          "productId",
          "name",
          "quantity",
          "price",
          "amount",
          "canceled"
        ],
        "additionalProperties": false
      },
      "description": "Stored line summaries at the requested offset, retaining native array order."
    },
    "totalItems": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Total number of stored line items at this revision."
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Offset for the next page at the same revision, or null when all stored lines have been read."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Fingerprint of the exact stored item array and native order version. Pass unchanged as expectedRevision when continuing active_order_items_list; a changed order rejects continuation."
    }
  },
  "required": [
    "orderId",
    "items",
    "totalItems",
    "nextOffset",
    "revision"
  ],
  "additionalProperties": false
}