Лояльность · Чтение
Клиенты · Лояльность · Сверка · Контекст
customer_loyalty_reconciliation_context
Попробуйте три запроса
Получить данные
- Вы указываетеКлиент
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Лояльность / Сверка / Контекст» выполни чтение по выбранной записи (клиент). Выведи кратко: клиент, версия записи.
- customerId
- Клиент
- revision
- Версия записи
- savedBalance
- Поле ответа
Задать параметры
- Вы указываетеКлиент
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Клиенты / Лояльность / Сверка / Контекст» на учебном примере с customerId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- customerId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Лояльность / Сверка / Контекст» объясни клиент, версия записи. Отметь отсутствующие значения.
- customerId
- Клиент
- revision
- Версия записи
- savedBalance
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Inspect a native bonus balance mismatch under current manager authority. Reads the complete bounded ledger even when ordinary bonus mutations are blocked by inconsistent materialized data. Returns an exact repair revision; does not modify points, balance, groups or history.
Параметры запроса
- customerId
- Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
Что вернёт команда
- customerId
- Existing native company customer whose saved balance needs reconciliation. обязательно по схеме · string
- revision
- Exact customer, complete native ledger, correction state and group revision from reconciliation context. обязательно по схеме · string
- savedBalance
- Current users.Bonus, null when absent or invalid. обязательно по схеме · number / null
- stateBalance
- Current private materialized state balance, null when absent or invalid. обязательно по схеме · number / null
- ledgerBalance
- Exact complete native history sum. обязательно по схеме · number · минимум -1000000000 · максимум 1000000000
- entryCount
- Number of native ledger entries. обязательно по схеме · integer · минимум 0 · максимум 1000
- needsReconciliation
- Whether initialization or stored balance differs from the complete ledger. обязательно по схеме · boolean
Поля и технические схемы

Вход · 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."
}
},
"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 whose saved balance needs reconciliation."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact customer, complete native ledger, correction state and group revision from reconciliation context."
},
"savedBalance": {
"anyOf": [
{
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000
},
{
"type": "null"
}
],
"description": "Current users.Bonus, null when absent or invalid."
},
"stateBalance": {
"anyOf": [
{
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000
},
{
"type": "null"
}
],
"description": "Current private materialized state balance, null when absent or invalid."
},
"ledgerBalance": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Exact complete native history sum."
},
"entryCount": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"description": "Number of native ledger entries."
},
"needsReconciliation": {
"type": "boolean",
"description": "Whether initialization or stored balance differs from the complete ledger."
}
},
"required": [
"customerId",
"revision",
"savedBalance",
"stateBalance",
"ledgerBalance",
"entryCount",
"needsReconciliation"
],
"additionalProperties": false
}