Лояльность · Чтение
Заказы · Лояльность · Просмотр · Операция
order_loyalty_get_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Заказы / Лояльность / Просмотр / Операция» выполни чтение в текущей компании. Выведи кратко: состояние, результат.
- state
- Состояние
- result
- Результат
Задать параметры
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Заказы / Лояльность / Просмотр / Операция» на учебном примере с kind = debit. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- kind
- debit
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Заказы / Лояльность / Просмотр / Операция» объясни состояние, результат. Отметь отсутствующие значения.
- state
- Состояние
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Recover an original Order bonus debit or inverse without repeating either write. Rechecks current authority, original request and immutable native entry. A later inverse preserves the original debit result; an archived Order needs its exact completed protected POS receipt.
Параметры запроса
- kind
- Original operation kind. обязательно по схеме · string · варианты debit, reverse
- input
- Exact original arguments, including requestId and expectedRevision. обязательно по схеме · object / object
Что вернёт команда
- state
- Whether this exact original native operation committed. обязательно по схеме · string · варианты not_recorded, completed
- result
- Historical acknowledgment, or null before a committed operation. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"debit",
"reverse"
],
"description": "Original operation kind."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"orderId": {
"$ref": "#/$defs/_mcp0"
},
"expectedRevision": {
"$ref": "#/$defs/_mcp1"
},
"requestId": {
"$ref": "#/$defs/_mcp2"
},
"requestedPoints": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000,
"description": "Requested bonus points. The native service caps the debit by the reconciled balance, Order total and current group limit."
}
},
"required": [
"orderId",
"expectedRevision",
"requestId",
"requestedPoints"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"orderId": {
"$ref": "#/$defs/_mcp0"
},
"expectedRevision": {
"$ref": "#/$defs/_mcp1"
},
"requestId": {
"$ref": "#/$defs/_mcp2"
}
},
"required": [
"orderId",
"expectedRevision",
"requestId"
],
"additionalProperties": false
}
],
"description": "Exact original arguments, including requestId and expectedRevision."
}
},
"required": [
"kind",
"input"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact existing native Order ID in the current company."
},
"_mcp1": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact Order, native customer ledger and current group revision from order_loyalty_context."
},
"_mcp2": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable original request ID. Recover or repeat unchanged after an uncertain response."
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"not_recorded",
"completed"
],
"description": "Whether this exact original native operation committed."
},
"result": {
"anyOf": [
{
"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": "Original company customer bound to the Order."
},
"groupId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Original loyalty group."
},
"balancePoints": {
"type": "number",
"description": "Historical customer balance immediately after this operation."
},
"deltaPoints": {
"type": "number",
"description": "Exact signed native bonus ledger change."
},
"debitEntryId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Original native Order debit entry ID."
},
"debitState": {
"type": "string",
"enum": [
"applied",
"reversed"
],
"description": "Original committed debit state."
},
"bonusAmount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Historical native BonusPay amount after this operation, before any provider or Order payment accounting."
}
},
"required": [
"orderId",
"customerId",
"groupId",
"balancePoints",
"deltaPoints",
"debitEntryId",
"debitState",
"bonusAmount"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Historical acknowledgment, or null before a committed operation."
}
},
"required": [
"state",
"result"
],
"additionalProperties": false
}