Заказы · Чтение
Заказы · Просмотр · История
orders_get_history
Попробуйте три запроса
Получить данные
- Вы указываетеЗаказ
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Заказы / Просмотр / История» выполни чтение по выбранной записи (заказ). Выведи кратко: заказ, events.
- orderId
- Заказ
- events
- Поле ответа
- truncated
- Поле ответа
Задать параметры
- Вы указываетеЗаказ
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Заказы / Просмотр / История» на учебном примере с orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- orderId
- DEMO-101
- limit
- 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
Поля и технические схемы

Вход · 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
}