MCP Control
Финансы · Чтение

Касса · Сессии · Результат операции «коллекции»

cash_sessions_get_collection_result
Кассовый чек, калькулятор и монеты

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

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

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

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

Read the committed result of cash_sessions_record_collection using the exact original arguments and unchanged authorization. Never repeats collection or changes its receipt. Retain the original requestId after an uncertain response.

Параметры запроса
cashShiftId
Canonical session ID created by cash_sessions_open and closed by cash_sessions_close_count. The complete closed native record must still match its receipt. обязательно по схеме · string · до символов 128
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
collectedAmount
Cash the operator has already physically moved from the till to the establishment’s configured safe. Must be positive and no greater than the recorded physical closing count, in the same currency units. обязательно по схеме · number · максимум 1000000000000
comment
Business reason or operator note for the already completed physical cash collection. Do not include credentials. обязательно по схеме · string · до символов 1000
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
status
Whether this exact request has a committed receipt. A missing receipt may coexist with an in-flight request; keep the original requestId. обязательно по схеме · string · варианты completed, not_found
result
Original committed collection record, or null when no exact receipt exists. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа cash_sessions_get_collection_result
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cashShiftId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical session ID created by cash_sessions_open and closed by cash_sessions_close_count. The complete closed native record must still match its receipt."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "description": "Current native revision returned by cash_sessions_close_count or cash_shifts_get. A changed record is rejected before any bookkeeping."
    },
    "collectedAmount": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000000,
      "description": "Cash the operator has already physically moved from the till to the establishment’s configured safe. Must be positive and no greater than the recorded physical closing count, in the same currency units."
    },
    "comment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Business reason or operator note for the already completed physical cash collection. Do not include credentials."
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable identifier for this exact collection record. Retain it and all original arguments for retries and recovery; never change it to bypass a conflict."
    }
  },
  "required": [
    "cashShiftId",
    "expectedRevision",
    "collectedAmount",
    "comment",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "not_found"
      ],
      "description": "Whether this exact request has a committed receipt. A missing receipt may coexist with an in-flight request; keep the original requestId."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "collectionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Server-assigned identifier of the committed collection record."
            },
            "cashShiftId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Native cash-session ID associated with this immutable collection record."
            },
            "locationId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Current establishment verified from the session against company and location permissions."
            },
            "collectedAmount": {
              "type": "number",
              "exclusiveMinimum": 0,
              "description": "Recorded physical cash collection amount. The account debit and safe credit are committed atomically."
            },
            "observedClosingCount": {
              "type": "number",
              "minimum": 0,
              "description": "Physical closing count from the protected original close receipt. It is preserved; no expected ledger balance is substituted."
            },
            "currency": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "description": "Exact currency marker verified on the original session and both current company-owned accounts. Currency conversion is not supported."
            },
            "recordedAt": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "description": "Server timestamp when the already completed collection was recorded."
            },
            "cashShiftRevision": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$",
              "description": "Native session revision after writing its collection amount. The collected session and both ledger entries are protected from direct edits and deletion."
            }
          },
          "required": [
            "collectionId",
            "cashShiftId",
            "locationId",
            "collectedAmount",
            "observedClosingCount",
            "currency",
            "recordedAt",
            "cashShiftRevision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original committed collection record, or null when no exact receipt exists."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}