MCP Control
Лояльность · Чувствительное действие

Клиенты · Лояльность · Регистрация

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

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

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

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

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

Append a manual bonus adjustment using the existing native loyalty service and current native staff authorization. Requires the exact reconciled source revision. Atomically commits the original MCP acknowledgment with the native ledger and balance. Negative adjustments follow the existing native policy and may create a negative bonus balance. No monetary transfer, provider charge or notification occurs.

Параметры запроса
customerId
Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
reason
Business reason retained in the native bonus history. обязательно по схеме · string · до символов 300
comment
Optional native comment; no personal information or credentials are needed. обязательно по схеме · string · по умолчанию "" · до символов 2000
signedPoints
Positive accrual or negative adjustment in bonus points, with at most two decimal places. No money is transferred. обязательно по схеме · number · минимум -1000000000 · максимум 1000000000
Что вернёт команда
customerId
Existing native company customer ID from customers_search. Self adjustments are forbidden. обязательно по схеме · string
groupId
Original native loyalty group. обязательно по схеме · string
entryId
Native bonus entry ID, or the native no-op amendment receipt ID when no ledger entry was needed. обязательно по схеме · string
balancePoints
Historical balance immediately after this operation; context provides the current balance. обязательно по схеме · number · минимум -1000000000 · максимум 1000000000
deltaPoints
Exact signed delta appended by this operation; zero is an amendment with no balance change. обязательно по схеме · number · минимум -1000000000 · максимум 1000000000
Поля и технические схемы
Входные поля и поля ответа customer_loyalty_record
Вход · 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 ID from customers_search. Self adjustments are forbidden."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Exact current customer_loyalty_context revision, including the native ledger and group settings."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable ID for this exact operation. Recover or retry unchanged after uncertainty."
    },
    "reason": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300,
      "description": "Business reason retained in the native bonus history."
    },
    "comment": {
      "default": "",
      "description": "Optional native comment; no personal information or credentials are needed.",
      "type": "string",
      "maxLength": 2000
    },
    "signedPoints": {
      "type": "number",
      "minimum": -1000000000,
      "maximum": 1000000000,
      "description": "Positive accrual or negative adjustment in bonus points, with at most two decimal places. No money is transferred."
    }
  },
  "required": [
    "customerId",
    "expectedRevision",
    "requestId",
    "reason",
    "comment",
    "signedPoints"
  ],
  "additionalProperties": false
}
Выход · 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 ID from customers_search. Self adjustments are forbidden."
    },
    "groupId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Original native loyalty group."
    },
    "entryId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native bonus entry ID, or the native no-op amendment receipt ID when no ledger entry was needed."
    },
    "balancePoints": {
      "type": "number",
      "minimum": -1000000000,
      "maximum": 1000000000,
      "description": "Historical balance immediately after this operation; context provides the current balance."
    },
    "deltaPoints": {
      "type": "number",
      "minimum": -1000000000,
      "maximum": 1000000000,
      "description": "Exact signed delta appended by this operation; zero is an amendment with no balance change."
    }
  },
  "required": [
    "customerId",
    "groupId",
    "entryId",
    "balancePoints",
    "deltaPoints"
  ],
  "additionalProperties": false
}