MCP Control
Финансы · Чувствительное действие

Клиенты · Депозит · Регистрация

customer_deposit_record
Кассовый чек, калькулятор и монеты

Попробуйте три запроса

Подготовить
  1. Вы указываетеКлиент
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Клиенты / Депозит / Регистрация». Для изменения нужны клиент, accountId. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
customerId
Клиент
accountId
Параметр
currency
Валюта
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Клиенты / Депозит / Регистрация» с параметром direction = +. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
direction
+
customerId
DEMO-101
accountId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Клиенты / Депозит / Регистрация» по исходному ответу. Покажи operationId, depositId. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Record an already completed customer cash deposit or payout in the canonical Firebase deposit ledger and Supabase finance ledger. Current company customer/account authority and exact source revision are required. Serializes customer settlements; an uncertain SQL response keeps a protected recovery lock. Concurrent source changes cause one compensating financial entry and no customer deposit. This records bookkeeping and never charges, refunds or transfers through a provider. Recover with customer_deposit_get_operation or repeat the original arguments.

Параметры запроса
customerId
Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string
accountId
Existing company financial account ID from finance_accounts_list/get. Currency is verified again when posting. обязательно по схеме · string
currency
Exact existing account currency marker returned by customer_deposit_context; no conversion or inferred ISO mapping. обязательно по схеме · string · до символов 32
direction
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. обязательно по схеме · string · варианты +, -
amount
Positive amount in native currency units, up to 1000000000000 and at most two decimal places. обязательно по схеме · number · максимум 1000000000000
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
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
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
Поля и технические схемы
Входные поля и поля ответа customer_deposit_record
Вход · 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 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": {
      "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
    },
    "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."
    },
    "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": [
    "customerId",
    "accountId",
    "currency",
    "direction",
    "amount",
    "comment",
    "reason",
    "expectedRevision",
    "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
}