Финансы · Чувствительное действие
Клиенты · Депозит · Сторнирование
customer_deposit_reverse
Попробуйте три запроса
Подготовить
- Вы указываетеSourceoperationid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Клиенты / Депозит / Сторнирование». Для изменения нужны sourceOperationId, комментарий. Покажи объект и ожидаемый эффект до выполнения.
- sourceOperationId
- Параметр
- comment
- Комментарий
- reason
- Причина
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Клиенты / Депозит / Сторнирование» с параметром comment = Проверено на учебной записи. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- comment
- Проверено на учебной записи
- reason
- Исправление учебной записи
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Клиенты / Депозит / Сторнирование» по исходному ответу. Покажи operationId, depositId. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Reverse one unchanged completed customer deposit settlement by appending its exact inverse to both native ledgers. The original history remains. Customer, account, currency and amount are derived from sourceOperationId; an insufficient current customer balance or duplicate reversal conflicts. This is bookkeeping, not a provider refund. Recover or retry with the exact original arguments.
Параметры запроса
- sourceOperationId
- Original completed operationId from customer_deposit_record. The server derives its customer, account, amount and inverse direction; only one reversal is permitted. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- comment
- Business reason for this already completed deposit or payout, without credentials or unrelated personal information. обязательно по схеме · string · до символов 1000
- reason
- Optional native reason string; omission retains the empty native value. It grants no authority. обязательно по схеме · string · по умолчанию "" · до символов 500
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- operationId
- Protected server settlement identity, usable for an explicit reversal. обязательно по схеме · string
- depositId
- Committed native users/{customerId}/deposite record ID. обязательно по схеме · string
- customerId
- Verified company customer. обязательно по схеме · string
- accountId
- Verified company financial account. обязательно по схеме · string
- sourceOperationId
- Original settlement being reversed, or null for an ordinary deposit entry. обязательно по схеме · string / null
- transactionId
- Native Supabase financial posting committed with this completed settlement. обязательно по схеме · string
- currency
- Exact native account currency marker. обязательно по схеме · string · до символов 32
- direction
- Committed signed native deposit direction. обязательно по схеме · string · варианты +, -
- amount
- Exact committed native deposit amount. обязательно по схеме · number
- balanceBefore
- Original customer balance in this currency before this operation. обязательно по схеме · number
- balanceAfter
- Original balance immediately after this operation; use context for the current balance. обязательно по схеме · number
- committedAt
- Server completion time after both native ledgers were verified. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact current native deposit-history revision from customer_deposit_context. A changed customer or ledger conflicts."
},
"comment": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Business reason for this already completed deposit or payout, without credentials or unrelated personal information."
},
"reason": {
"default": "",
"description": "Optional native reason string; omission retains the empty native value. It grants no authority.",
"type": "string",
"maxLength": 500
},
"requestId": {
"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."
}
},
"required": [
"sourceOperationId",
"expectedRevision",
"comment",
"reason",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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
}