Лояльность · Чтение
Клиенты · Лояльность · Контекст
customer_loyalty_context
Попробуйте три запроса
Получить данные
- Вы указываетеКлиент
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Лояльность / Контекст» выполни чтение по выбранной записи (клиент). Выведи кратко: клиент, groupId.
- customerId
- Клиент
- groupId
- Поле ответа
- enabled
- Включение
Задать параметры
- Вы указываетеКлиент
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Клиенты / Лояльность / Контекст» на учебном примере с customerId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- customerId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Лояльность / Контекст» объясни клиент, groupId. Отметь отсутствующие значения.
- customerId
- Клиент
- groupId
- Поле ответа
- enabled
- Включение
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read and reconcile the canonical customer bonus ledger, materialized balance and current native group settings. No initialization or write occurs. Company-wide CRM and loyalty access is required; malformed, oversized or inconsistent histories fail closed.
Параметры запроса
- customerId
- Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
Что вернёт команда
- customerId
- Existing native company customer ID from customers_search. Self adjustments are forbidden. обязательно по схеме · string
- groupId
- Native customer group. обязательно по схеме · string
- enabled
- Whether native group settings enable bonus accounting. обязательно по схеме · boolean
- balancePoints
- Reconciled current native bonus balance. обязательно по схеме · number · минимум -1000000000 · максимум 1000000000
- entries
- Number of native ledger entries reconciled. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- revision
- Exact native source and group settings revision. обязательно по схеме · string
Поля и технические схемы

Вход · 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."
}
},
"required": [
"customerId"
],
"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": "Native customer group."
},
"enabled": {
"type": "boolean",
"description": "Whether native group settings enable bonus accounting."
},
"balancePoints": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Reconciled current native bonus balance."
},
"entries": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Number of native ledger entries reconciled."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact native source and group settings revision."
}
},
"required": [
"customerId",
"groupId",
"enabled",
"balancePoints",
"entries",
"revision"
],
"additionalProperties": false
}