MCP Control
Лояльность · Чтение

Клиенты · Лояльность · Просмотр · Сверка

customer_loyalty_get_reconciliation
Контактные карточки и телефон

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

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

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

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

Recover an exact native bonus balance repair without repeating writes. Rechecks current manager rights, company customer binding and the immutable native receipt. Later valid bonus operations do not alter the original acknowledgment.

Параметры запроса
customerId
Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
reason
Reason retained in the private native reconciliation receipt. обязательно по схеме · string · до символов 300
Что вернёт команда
state
Whether the original native repair committed. обязательно по схеме · string · варианты not_recorded, completed
result
Original immutable acknowledgment, or null. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа customer_loyalty_get_reconciliation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "customerId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing native company customer whose saved balance needs reconciliation."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Exact customer, complete native ledger, correction state and group revision from reconciliation context."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable ID for this exact repair. Recover unchanged after uncertainty."
    },
    "reason": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300,
      "description": "Reason retained in the private native reconciliation receipt."
    }
  },
  "required": [
    "customerId",
    "expectedRevision",
    "requestId",
    "reason"
  ],
  "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 original native repair committed."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "customerId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Existing native company customer whose saved balance needs reconciliation."
            },
            "receiptId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
              "description": "Immutable native reconciliation receipt ID."
            },
            "previousBalance": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": -1000000000,
                  "maximum": 1000000000
                },
                {
                  "type": "null"
                }
              ],
              "description": "Historical saved user balance before repair, or null when missing or invalid."
            },
            "balancePoints": {
              "type": "number",
              "minimum": -1000000000,
              "maximum": 1000000000,
              "description": "Exact sum of existing native entries at commit; no new points were appended."
            },
            "entryCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "description": "Complete ledger entries read in this transaction."
            },
            "adoptedLegacyCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000,
              "description": "Existing legacy entries included in the saved balance; native Order adoption must not count them twice."
            }
          },
          "required": [
            "customerId",
            "receiptId",
            "previousBalance",
            "balancePoints",
            "entryCount",
            "adoptedLegacyCount"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original immutable acknowledgment, or null."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}