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

Текущие · Заказы · Просмотр · Касса · Сессии · Операция

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

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

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

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

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

Recover an exact active_order_assign_cash_session operation using all its original arguments. Returns the original receipt through later changes or native POS archive, with current Orders and finance authorization. Does not repeat the assignment.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
shiftId
Open native shift ID from pos_cash_sessions_list, at the same establishment as the Order. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
state
Whether the original assignment has a protected atomic receipt. обязательно по схеме · string · варианты not_committed, completed
result
Original assignment result, including after native POS archival; null before commit. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа active_order_get_cash_session_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing active native Order ID."
    },
    "shiftId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Open native shift ID from pos_cash_sessions_list, at the same establishment as the Order."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
      "description": "Exact current Order revision from active_order_notes_context. A concurrent native edit must conflict."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request identifier for this exact assignment; reuse unchanged after uncertainty."
    }
  },
  "required": [
    "orderId",
    "shiftId",
    "expectedRevision",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "not_committed",
        "completed"
      ],
      "description": "Whether the original assignment has a protected atomic receipt."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "orderId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Assigned native Order."
            },
            "shiftId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Assigned native POS shift."
            },
            "locationId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Verified shared establishment."
            },
            "appliedFromRevision": {
              "type": "string",
              "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
              "description": "Exact source Order revision before assignment."
            },
            "version": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Native Order version committed by this assignment."
            }
          },
          "required": [
            "orderId",
            "shiftId",
            "locationId",
            "appliedFromRevision",
            "version"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original assignment result, including after native POS archival; null before commit."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}