Лояльность · Чтение
Клиенты · Лояльность · Проводки
customer_loyalty_entries
Попробуйте три запроса
Получить данные
- Вы указываетеКлиент
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Лояльность / Проводки» выполни чтение по выбранной записи (клиент). Выведи кратко: клиент, версия записи.
- customerId
- Клиент
- revision
- Версия записи
- entries
- Поле ответа
Следующая страница
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Запрос в чат
Продолжи «Клиенты / Лояльность / Проводки» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Лояльность / Проводки» объясни клиент, версия записи. Отметь отсутствующие значения.
- customerId
- Клиент
- revision
- Версия записи
- entries
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Discover the actual native customer bonus entry IDs and their original/effective signed amounts before an amendment. Reads the canonical Firebase history and correction state under current company rights; never revives the retired SQL bonus table. Uses bounded ID pagination after full ledger reconciliation.
Параметры запроса
- customerId
- Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- cursor
- Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string
Что вернёт команда
- customerId
- Existing native company customer ID from customers_search. Self adjustments are forbidden. обязательно по схеме · string
- revision
- Current reconciled customer ledger revision. обязательно по схеме · string
- entries
- A bounded page of native bonus entries; no login/contact information is returned. обязательно по схеме · array · до элементов 50
- nextCursor
- Курсор для получения следующей страницы. обязательно по схеме · string / null
Поля и технические схемы

Вход · 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."
},
"limit": {
"default": 20,
"description": "Maximum entries in this page.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cursor": {
"description": "Exact nextCursor from the previous page, ordered by native document ID.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
}
},
"required": [
"customerId",
"limit"
],
"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."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Current reconciled customer ledger revision."
},
"entries": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"entryId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native bonus entry ID, usable for a manual amendment when amendable is true."
},
"signedPoints": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Original signed native entry amount."
},
"effectiveSignedPoints": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Current effective amount of this source after native amendments."
},
"source": {
"type": "string",
"enum": [
"legacy",
"manual_adjustment",
"manual_amendment",
"order_loyalty",
"customer_referral"
],
"description": "Native entry source; customer_referral includes automatic rewards and their reversals."
},
"orderId": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
],
"description": "Bound Order, or null for a manual entry."
},
"amendable": {
"type": "boolean",
"description": "Whether this is a supported manual source; automatic Order and referral entries are protected."
}
},
"required": [
"entryId",
"signedPoints",
"effectiveSignedPoints",
"source",
"orderId",
"amendable"
],
"additionalProperties": false
},
"description": "A bounded page of native bonus entries; no login/contact information is returned."
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
],
"description": "Use as cursor for the next page; null ends the history."
}
},
"required": [
"customerId",
"revision",
"entries",
"nextCursor"
],
"additionalProperties": false
}