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

Заказы · Просмотр · История

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

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

Получить данные
  1. Вы указываетеЗаказ
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Заказы / Просмотр / История» выполни чтение по выбранной записи (заказ). Выведи кратко: заказ, events.
Что искать в ответе
orderId
Заказ
events
Поле ответа
truncated
Поле ответа
Задать параметры
  1. Вы указываетеЗаказ
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Заказы / Просмотр / История» на учебном примере с orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
orderId
DEMO-101
limit
3
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Заказы / Просмотр / История» объясни заказ, events. Отметь отсутствующие значения.
Поля для проверки
orderId
Заказ
events
Поле ответа
truncated
Поле ответа
Как работает действие

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

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

Read the recorded status and change history for one synchronized/archive order. Use an exact ID from orders_search; the workspace is bound by authentication. Do not use this to change status or to assume current live order state. Returns at most 50 recorded events and no payment-provider payloads.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string · до символов 128
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
Что вернёт команда
orderId
Canonical order identifier within this workspace. обязательно по схеме · string / null
events
Most recent recorded events, preserving the existing stored names. обязательно по схеме · array · до элементов 50
truncated
Whether additional recorded events were omitted. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа orders_get_history
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
      "description": "Canonical order identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
    },
    "limit": {
      "default": 20,
      "description": "Maximum returned records, from 1 to 50.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "orderId",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Canonical order identifier within this workspace."
    },
    "events": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "status",
              "history"
            ],
            "description": "Which existing order history stream contains the event."
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored event or status name."
          },
          "occurredAt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored event timestamp."
          },
          "comment": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored human-readable event comment."
          }
        },
        "required": [
          "kind",
          "name",
          "occurredAt",
          "comment"
        ],
        "additionalProperties": false
      },
      "description": "Most recent recorded events, preserving the existing stored names."
    },
    "truncated": {
      "type": "boolean",
      "description": "Whether additional recorded events were omitted."
    }
  },
  "required": [
    "orderId",
    "events",
    "truncated"
  ],
  "additionalProperties": false
}