Расчёт выплат · Чувствительное действие
Расчёт выплат · Расчёты · Аннулирование
payroll_calculation_void
Попробуйте три запроса
Подготовить
- Вы указываетеId записи
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расчёт выплат / Расчёты / Аннулирование». Для изменения нужны ID записи, reviewed. Покажи объект и ожидаемый эффект до выполнения.
- id
- Id записи
- reviewed
- Параметр
- note
- Заметка
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расчёт выплат / Расчёты / Аннулирование» с параметром reviewed = true. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- reviewed
- true
- note
- Нужна сверка
- expectedRevision
- 4
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расчёт выплат / Расчёты / Аннулирование» по исходному ответу. Покажи calculation. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Void a reviewed native payroll calculation while preserving its history. The native ledger rejects stale revisions and later dependent calculations. No bank payment is reversed.
Параметры запроса
- id
- Идентификатор выбранной записи. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · максимум 9007199254740991
- reviewed
- The user reviewed and authorized this calculation transition; never infer from access alone. обязательно по схеме · boolean
- note
- Native note value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 1000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- calculation
- Native calculation value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Native id value; use the value and type returned by the corresponding service."
},
"expectedRevision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Native expectedRevision value; use the value and type returned by the corresponding service."
},
"reviewed": {
"type": "boolean",
"const": true,
"description": "The user reviewed and authorized this calculation transition; never infer from access alone."
},
"note": {
"type": "string",
"minLength": 5,
"maxLength": 1000,
"description": "Native note value; use the value and type returned by the corresponding service."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
}
},
"required": [
"id",
"expectedRevision",
"reviewed",
"note",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"calculation": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Native id value; use the value and type returned by the corresponding service."
},
"employeeId": {
"$ref": "#/$defs/_mcp0"
},
"profileId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native profileId value; use the value and type returned by the corresponding service."
},
"status": {
"type": "string",
"enum": [
"draft",
"approved",
"void"
],
"description": "Native status value; use the value and type returned by the corresponding service."
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Native revision value; use the value and type returned by the corresponding service."
},
"from": {
"$ref": "#/$defs/_mcp1"
},
"to": {
"$ref": "#/$defs/_mcp2"
},
"payDate": {
"$ref": "#/$defs/_mcp3"
},
"currency": {
"$ref": "#/$defs/_mcp4"
},
"input": {
"type": "object",
"properties": {
"profileId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native Recruiter salary identity employeeId~salaryDocumentId; obtain from payroll_native_profiles_list. This is not a legacy SQL payroll profile UUID."
},
"from": {
"$ref": "#/$defs/_mcp1"
},
"to": {
"$ref": "#/$defs/_mcp2"
},
"payDate": {
"$ref": "#/$defs/_mcp3"
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native timezone value; use the value and type returned by the corresponding service."
},
"weekAnchor": {
"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": "Native weekAnchor value; use the value and type returned by the corresponding service."
},
"periodsPerYear": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 4
},
{
"type": "number",
"const": 12
},
{
"type": "number",
"const": 24
},
{
"type": "number",
"const": 26
},
{
"type": "number",
"const": 52
},
{
"type": "number",
"const": 260
}
],
"description": "Native periodsPerYear value; use the value and type returned by the corresponding service."
},
"earningsMode": {
"type": "string",
"enum": [
"native",
"hourly",
"monthly",
"weekly",
"shift",
"day",
"piecework",
"manual"
],
"description": "Native earningsMode value; use the value and type returned by the corresponding service."
},
"piecework": {
"description": "Native piecework value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"confirmed": {
"type": "boolean",
"const": true,
"description": "Native confirmed value; use the value and type returned by the corresponding service."
},
"note": {
"type": "string",
"minLength": 5,
"maxLength": 2000,
"description": "Native note value; use the value and type returned by the corresponding service."
},
"quantities": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native productId value; use the value and type returned by the corresponding service."
},
"operation": {
"type": "string",
"enum": [
"sale",
"production",
"delivery",
"packing",
"service"
],
"description": "Native operation value; use the value and type returned by the corresponding service."
},
"quantity": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native quantity value; use the value and type returned by the corresponding service."
}
},
"required": [
"productId",
"operation",
"quantity"
],
"additionalProperties": false
},
"description": "Native quantities value; use the value and type returned by the corresponding service."
}
},
"required": [
"confirmed",
"note",
"quantities"
],
"additionalProperties": false
},
"overtime": {
"type": "string",
"enum": [
"us-weekly",
"exempt",
"manual"
],
"description": "Native overtime value; use the value and type returned by the corresponding service."
},
"gross": {
"description": "Native gross value; use the value and type returned by the corresponding service.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"earningsNote": {
"default": "",
"description": "Native earningsNote value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"taxMode": {
"type": "string",
"enum": [
"us-federal-2026",
"manual"
],
"description": "Use only the native supported jurisdiction/year or explicitly reviewed manual amounts. Never invent taxes or opening balances."
},
"opening": {
"description": "Native opening value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"ssWages": {
"$ref": "#/$defs/_mcp5"
},
"medicareWages": {
"$ref": "#/$defs/_mcp6"
},
"futaWages": {
"$ref": "#/$defs/_mcp7"
},
"confirmed": {
"type": "boolean",
"description": "Native confirmed value; use the value and type returned by the corresponding service."
},
"note": {
"type": "string",
"minLength": 5,
"maxLength": 1000,
"description": "Native note value; use the value and type returned by the corresponding service."
}
},
"required": [
"ssWages",
"medicareWages",
"futaWages",
"confirmed",
"note"
],
"additionalProperties": false
},
"taxes": {
"default": [],
"description": "Native taxes value; use the value and type returned by the corresponding service.",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native name value; use the value and type returned by the corresponding service."
},
"party": {
"type": "string",
"enum": [
"employee",
"employer"
],
"description": "Native party value; use the value and type returned by the corresponding service."
},
"amount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native amount value; use the value and type returned by the corresponding service."
}
},
"required": [
"name",
"party",
"amount"
],
"additionalProperties": false
}
},
"taxNote": {
"default": "",
"description": "Native taxNote value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"taxableWages": {
"description": "Native taxableWages value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"ssWages": {
"$ref": "#/$defs/_mcp5"
},
"medicareWages": {
"$ref": "#/$defs/_mcp6"
},
"futaWages": {
"$ref": "#/$defs/_mcp7"
}
},
"required": [
"ssWages",
"medicareWages",
"futaWages"
],
"additionalProperties": false
},
"postTaxDeduction": {
"default": 0,
"description": "Native postTaxDeduction value; use the value and type returned by the corresponding service.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"deductionNote": {
"default": "",
"description": "Native deductionNote value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 1000
},
"futaRate": {
"description": "Native futaRate value; use the value and type returned by the corresponding service.",
"type": "number",
"minimum": 0,
"maximum": 6
},
"futaNote": {
"default": "",
"description": "Native futaNote value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 1000
}
},
"required": [
"profileId",
"from",
"to",
"payDate",
"timezone",
"weekAnchor",
"periodsPerYear",
"earningsMode",
"overtime",
"earningsNote",
"taxMode",
"taxes",
"taxNote",
"postTaxDeduction",
"deductionNote",
"futaNote"
],
"additionalProperties": false,
"description": "Native input value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"properties": {
"engine": {
"type": "string",
"maxLength": 100,
"description": "Native engine value; use the value and type returned by the corresponding service."
},
"currency": {
"$ref": "#/$defs/_mcp4"
},
"employeeId": {
"$ref": "#/$defs/_mcp0"
},
"gross": {
"type": "number",
"description": "Native gross value; use the value and type returned by the corresponding service."
},
"net": {
"type": "number",
"description": "Native net value; use the value and type returned by the corresponding service."
},
"totalCost": {
"type": "number",
"description": "Native totalCost value; use the value and type returned by the corresponding service."
},
"blockers": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 10000
},
"description": "Native blockers value; use the value and type returned by the corresponding service."
},
"coverage": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"maxLength": 10000
},
"description": "Native coverage value; use the value and type returned by the corresponding service."
}
},
"required": [
"engine",
"currency",
"employeeId",
"gross",
"net",
"totalCost",
"blockers",
"coverage"
],
"additionalProperties": {},
"description": "Native result value; use the value and type returned by the corresponding service."
},
"createdAt": {
"type": "string",
"description": "Native createdAt value; use the value and type returned by the corresponding service."
},
"createdBy": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native createdBy value; use the value and type returned by the corresponding service."
}
},
"required": [
"id",
"employeeId",
"profileId",
"status",
"revision",
"from",
"to",
"payDate",
"currency",
"input",
"result",
"createdAt",
"createdBy"
],
"additionalProperties": false,
"description": "Native calculation value; use the value and type returned by the corresponding service."
}
},
"required": [
"calculation"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native employeeId value; use the value and type returned by the corresponding service."
},
"_mcp1": {
"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": "Native from value; use the value and type returned by the corresponding service."
},
"_mcp2": {
"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": "Native to value; use the value and type returned by the corresponding service."
},
"_mcp3": {
"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": "Native payDate value; use the value and type returned by the corresponding service."
},
"_mcp4": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"description": "Native currency value; use the value and type returned by the corresponding service."
},
"_mcp5": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native ssWages value; use the value and type returned by the corresponding service."
},
"_mcp6": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native medicareWages value; use the value and type returned by the corresponding service."
},
"_mcp7": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native futaWages value; use the value and type returned by the corresponding service."
}
}
}