Финансы · Чтение
Клиенты · Депозит · Просмотр · Операция
customer_deposit_get_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Депозит / Просмотр / Операция» выполни чтение в текущей компании. Выведи кратко: состояние, operationId.
- state
- Состояние
- operationId
- Поле ответа
- result
- Результат
Задать параметры
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Клиенты / Депозит / Просмотр / Операция» на учебном примере с kind = record. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- kind
- record
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Депозит / Просмотр / Операция» объясни состояние, operationId. Отметь отсутствующие значения.
- state
- Состояние
- operationId
- Поле ответа
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the exact original customer deposit or reversal receipt without posting either ledger again. Requires current authority for the original kind. prepared/compensating needs an unchanged retry of the original Action; failed means the operation must be reviewed before preparing a new request. completed returns its historical balance, not the current balance.
Параметры запроса
- kind
- Original operation kind. обязательно по схеме · string · варианты record, reverse
- input
- All exact original operation arguments, including requestId. обязательно по схеме · object / object
Что вернёт команда
- state
- Protected workflow state. Only completed confirms both native ledger effects. обязательно по схеме · string · варианты not_started, prepared, completed, compensating, failed
- operationId
- Server identity of this exact operation. обязательно по схеме · string
- result
- Original completed result, or null while uncommitted. обязательно по схеме · object / null
- financialState
- Verified SQL receipt state, when a protected operation exists. A compensated failure has no new customer entry. необязательно · string · варианты not_found, posted, compensated
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"record",
"reverse"
],
"description": "Original operation kind."
},
"input": {
"anyOf": [
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Existing native users ID from customers_search, owned by this company."
},
"accountId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Existing company financial account ID from finance_accounts_list/get. Currency is verified again when posting."
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Exact existing account currency marker returned by customer_deposit_context; no conversion or inferred ISO mapping."
},
"direction": {
"type": "string",
"enum": [
"+",
"-"
],
"description": "Native + credits the customer deposit and the receiving account; - debits the deposit and records an already completed payout from the account. No provider transfer is initiated."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Positive amount in native currency units, up to 1000000000000 and at most two decimal places."
},
"comment": {
"$ref": "#/$defs/_mcp0"
},
"reason": {
"$ref": "#/$defs/_mcp1"
},
"expectedRevision": {
"$ref": "#/$defs/_mcp2"
},
"requestId": {
"$ref": "#/$defs/_mcp3"
}
},
"required": [
"customerId",
"accountId",
"currency",
"direction",
"amount",
"comment",
"reason",
"expectedRevision",
"requestId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"sourceOperationId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Original completed operationId from customer_deposit_record. The server derives its customer, account, amount and inverse direction; only one reversal is permitted."
},
"expectedRevision": {
"$ref": "#/$defs/_mcp2"
},
"comment": {
"$ref": "#/$defs/_mcp0"
},
"reason": {
"$ref": "#/$defs/_mcp1"
},
"requestId": {
"$ref": "#/$defs/_mcp3"
}
},
"required": [
"sourceOperationId",
"expectedRevision",
"comment",
"reason",
"requestId"
],
"additionalProperties": false
}
],
"description": "All exact original operation arguments, including requestId."
}
},
"required": [
"kind",
"input"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Business reason for this already completed deposit or payout, without credentials or unrelated personal information."
},
"_mcp1": {
"default": "",
"description": "Optional native reason string; omission retains the empty native value. It grants no authority.",
"type": "string",
"maxLength": 500
},
"_mcp2": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact current native deposit-history revision from customer_deposit_context. A changed customer or ledger conflicts."
},
"_mcp3": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable identifier for this exact operation. After uncertainty recover or repeat unchanged arguments; do not create a second request."
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"not_started",
"prepared",
"completed",
"compensating",
"failed"
],
"description": "Protected workflow state. Only completed confirms both native ledger effects."
},
"operationId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Server identity of this exact operation."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"operationId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Protected server settlement identity, usable for an explicit reversal."
},
"depositId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Committed native users/{customerId}/deposite record ID."
},
"customerId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Verified company customer."
},
"accountId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Verified company financial account."
},
"sourceOperationId": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Original settlement being reversed, or null for an ordinary deposit entry."
},
"transactionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native Supabase financial posting committed with this completed settlement."
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Exact native account currency marker."
},
"direction": {
"type": "string",
"enum": [
"+",
"-"
],
"description": "Committed signed native deposit direction."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Exact committed native deposit amount."
},
"balanceBefore": {
"type": "number",
"description": "Original customer balance in this currency before this operation."
},
"balanceAfter": {
"type": "number",
"description": "Original balance immediately after this operation; use context for the current balance."
},
"committedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Server completion time after both native ledgers were verified."
}
},
"required": [
"operationId",
"depositId",
"customerId",
"accountId",
"sourceOperationId",
"transactionId",
"currency",
"direction",
"amount",
"balanceBefore",
"balanceAfter",
"committedAt"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Original completed result, or null while uncommitted."
},
"financialState": {
"description": "Verified SQL receipt state, when a protected operation exists. A compensated failure has no new customer entry.",
"type": "string",
"enum": [
"not_found",
"posted",
"compensated"
]
}
},
"required": [
"state",
"operationId",
"result"
],
"additionalProperties": false
}