Расчёт выплат · Чтение
Расчёт выплат · Результат операции «платежи»
payroll_get_reverse_payment_result
Попробуйте три запроса
Получить данные
- Вы указываетеPaymentid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Расчёт выплат / Результат операции «платежи»» выполни чтение по выбранной записи (paymentId). Выведи кратко: статус, результат.
- status
- Статус
- result
- Результат
После обрыва
- Вы указываетеПервоначальный ключ
- ПомощникПоиск квитанции
- Вы получаетеСостояние операции
Запрос в чат
Найди результат «Расчёт выплат / Результат операции «платежи»» по ключу первоначальной попытки. Покажи состояние операции и раздели подтверждённые и пока неизвестные данные.
- 1
- Взять исходный ключ
- 2
- Проверить квитанцию
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Расчёт выплат / Результат операции «платежи»» объясни статус, результат. Отметь отсутствующие значения.
- status
- Статус
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Для поиска результата возьмите идентификатор из первоначальной попытки. Сохраните исходные аргументы. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Read the exact committed result of payroll_reverse_payment without repeating any ledger change. Requires the same company-wide payroll and finance permissions plus native payroll write authority. Pass every original argument and its requestId. This result is historical, not current bank/payment-provider status.
Параметры запроса
- paymentId
- An immutable payment ID created by payroll_record_payment or payroll_correct_payment. Legacy salary, manual-finance and provider transactions are excluded. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- comment
- Business reason for recording or correcting an already completed employee payment. Never include credentials. обязательно по схеме · string · до символов 1000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- status
- Whether this exact operation has a committed receipt. not_found does not exclude an in-flight operation; retain the original requestId. обязательно по схеме · string · варианты completed, not_found
- result
- Original atomic result, or null when no exact receipt exists. This is historical bookkeeping, not a bank or provider status. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"paymentId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "An immutable payment ID created by payroll_record_payment or payroll_correct_payment. Legacy salary, manual-finance and provider transactions are excluded."
},
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Exact immutable payment revision returned by a successful payment record or correction."
},
"comment": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Business reason for recording or correcting an already completed employee payment. Never include credentials."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable identifier for this exact operation. Reuse unchanged arguments after an uncertain response."
}
},
"required": [
"paymentId",
"expectedRevision",
"comment",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"completed",
"not_found"
],
"description": "Whether this exact operation has a committed receipt. not_found does not exclude an in-flight operation; retain the original requestId."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": [
"record",
"reverse",
"correct"
],
"description": "Explicit bookkeeping operation performed atomically."
},
"payment": {
"anyOf": [
{
"type": "object",
"properties": {
"paymentId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Canonical immutable expense transaction ID for this recorded employee payment."
},
"payeeId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Verified employee recipient, stored in the protected operation receipt rather than overloading the native ledger author field."
},
"periodStart": {
"type": "string",
"format": "date",
"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])))$",
"description": "Recorded inclusive pay-period start; not calculated earnings."
},
"periodEnd": {
"type": "string",
"format": "date",
"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])))$",
"description": "Recorded inclusive pay-period end; not proof of final payroll settlement."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Recorded expense amount in native account units."
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Currency marker copied from the verified source account."
},
"accountId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Company financial account debited by this entry."
},
"categoryId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Verified expense-enabled category."
},
"paidAt": {
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Recorded absolute time of the completed payment."
},
"recordedBy": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Connected employee who recorded the entry; this remains the native transactions.user_id author."
},
"comment": {
"type": "string",
"maxLength": 1000,
"description": "Recorded business reason."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Exact immutable payment revision returned by a successful payment record or correction."
}
},
"required": [
"paymentId",
"payeeId",
"periodStart",
"periodEnd",
"amount",
"currency",
"accountId",
"categoryId",
"paidAt",
"recordedBy",
"comment",
"revision"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "New expense record for record/correct, or null for a reversal."
},
"reversedPaymentId": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "null"
}
],
"description": "Original payment reversed by reverse/correct, or null for a new record."
},
"reversal": {
"anyOf": [
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Appended inverse credit transaction; the original expense remains immutable."
},
"accountId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Original source account receiving the inverse bookkeeping effect."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Exact original amount reversed without currency conversion."
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Unchanged original account currency."
},
"recordedAt": {
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Server timestamp of the correcting bookkeeping entry."
}
},
"required": [
"transactionId",
"accountId",
"amount",
"currency",
"recordedAt"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Appended inverse effect, or null for a new record."
}
},
"required": [
"operation",
"payment",
"reversedPaymentId",
"reversal"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Original atomic result, or null when no exact receipt exists. This is historical bookkeeping, not a bank or provider status."
}
},
"required": [
"status",
"result"
],
"additionalProperties": false
}