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

Компания · Платежи · Просмотр · Операция

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

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

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

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

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

Recover the exact original native company-payment reconciliation acknowledgment without contacting the provider or repeating a write. Current company, Order/location access, request fingerprint and protected native/provider receipts must still match.

Параметры запроса
documentId
Exact native Companies/current-company/payment document ID, not its embedded id or a provider ID. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
state
Whether the exact original reconciliation committed atomically. обязательно по схеме · string · варианты not_recorded, completed
result
Original observation, which remains historical after later provider status changes; null if not recorded. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа company_payment_get_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "documentId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Exact native Companies/current-company/payment document ID, not its embedded id or a provider ID."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Exact current native document revision from company_payment_get."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable identifier for this exact reconciliation. Recover or retry unchanged after an uncertain response."
    }
  },
  "required": [
    "documentId",
    "expectedRevision",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "not_recorded",
        "completed"
      ],
      "description": "Whether the exact original reconciliation committed atomically."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "documentId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Exact native Companies/current-company/payment document ID, not its embedded id or a provider ID."
            },
            "orderId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Bound native Order."
            },
            "providerPaymentId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Existing verified provider payment identifier; no payment is created."
            },
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "waiting_for_capture",
                "succeeded",
                "canceled"
              ],
              "description": "Original provider observation for this request."
            },
            "verifiedPaid": {
              "type": "boolean",
              "description": "True only when the provider confirmed succeeded and paid. This is not an Order accounting or financial-ledger posting."
            }
          },
          "required": [
            "documentId",
            "orderId",
            "providerPaymentId",
            "status",
            "verifiedPaid"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original observation, which remains historical after later provider status changes; null if not recorded."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}