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

Заказы · Лояльность · Контекст

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

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

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

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

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

Read or quote Order bonus redemption using the existing native service and current customer/group data. Suppresses the native legacy initialization writes so this Action is read-only. Returns an exact source revision; no bonus points, money, Order payment or notification is posted.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
requestedPoints
Optional amount to quote; omission reads the native available balance and existing reservation. необязательно · number · максимум 1000000000
Что вернёт команда
orderId
Exact existing native Order ID in the current company. обязательно по схеме · string
customerId
Current native customer. обязательно по схеме · string
groupId
Current native loyalty group. обязательно по схеме · string
balancePoints
Reconciled native bonus balance. обязательно по схеме · number
coefficient
Native points per currency unit. обязательно по схеме · number
maxPercent
Native percentage cap. обязательно по схеме · number · минимум 0 · максимум 1000000000
maxSpendPoints
Native maximum available points. обязательно по схеме · number · минимум 0 · максимум 1000000000
maxSpendAmount
Native maximum monetary discount. обязательно по схеме · number · минимум 0 · максимум 1000000000
quotedPoints
Quoted points; reading balance without a request returns only any existing unconsumed reservation. обязательно по схеме · number · минимум 0 · максимум 1000000000
quotedAmount
Quoted native currency amount. обязательно по схеме · number · минимум 0 · максимум 1000000000
debitState
Current native reservation state. обязательно по схеме · string · варианты none, applied, reversed
revision
Exact Order, native customer ledger and current group revision from order_loyalty_context. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа order_loyalty_context
Вход · 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": "Exact existing native Order ID in the current company."
    },
    "requestedPoints": {
      "description": "Optional amount to quote; omission reads the native available balance and existing reservation.",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false
}
Выход · 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": "Exact existing native Order ID in the current company."
    },
    "customerId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Current native customer."
    },
    "groupId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Current native loyalty group."
    },
    "balancePoints": {
      "type": "number",
      "description": "Reconciled native bonus balance."
    },
    "coefficient": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Native points per currency unit."
    },
    "maxPercent": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Native percentage cap."
    },
    "maxSpendPoints": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Native maximum available points."
    },
    "maxSpendAmount": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Native maximum monetary discount."
    },
    "quotedPoints": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Quoted points; reading balance without a request returns only any existing unconsumed reservation."
    },
    "quotedAmount": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Quoted native currency amount."
    },
    "debitState": {
      "type": "string",
      "enum": [
        "none",
        "applied",
        "reversed"
      ],
      "description": "Current native reservation state."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Exact Order, native customer ledger and current group revision from order_loyalty_context."
    }
  },
  "required": [
    "orderId",
    "customerId",
    "groupId",
    "balancePoints",
    "coefficient",
    "maxPercent",
    "maxSpendPoints",
    "maxSpendAmount",
    "quotedPoints",
    "quotedAmount",
    "debitState",
    "revision"
  ],
  "additionalProperties": false
}