MCP Control
Расчёт выплат · Чувствительное действие

Расчёт выплат · Штатные · Профили · Изменение

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

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

Подготовить
  1. Вы указываетеProfileid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Расчёт выплат / Штатные / Профили / Изменение». Для изменения нужны profileId, newPeriod. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
profileId
Параметр
newPeriod
Параметр
profileName
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Расчёт выплат / Штатные / Профили / Изменение» с параметром status = draft. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
status
draft
profileId
DEMO-101
currency
USD
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Расчёт выплат / Штатные / Профили / Изменение» по исходному ответу. Покажи profileId, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Update selected native Salary fields or add an effective period, preserving all other stored configuration. Requires the current revision; use newPeriod=true and effectiveFrom to add a period. Existing-period edits use that period as the patch base. Never invent tax/rate terms; preview the native calculation afterwards.

Параметры запроса
profileId
Native profileId value; use the value and type returned by the corresponding service. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · максимум 9007199254740991
profileName
Native profileName value; use the value and type returned by the corresponding service. необязательно · object
effectiveFrom
Native effectiveFrom value; use the value and type returned by the corresponding service. необязательно · string
effectiveTo
Native effectiveTo value; use the value and type returned by the corresponding service. необязательно · string / null
currency
Native currency value; use the value and type returned by the corresponding service. необязательно · string
status
Native status value; use the value and type returned by the corresponding service. необязательно · string · варианты draft, active, inactive
configurationPatch
Native configurationPatch value; use the value and type returned by the corresponding service. необязательно · array · до элементов 250
terms
Native terms value; use the value and type returned by the corresponding service. необязательно · object
newPeriod
Native newPeriod value; use the value and type returned by the corresponding service. обязательно по схеме · boolean · по умолчанию false
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
profileId
Native profileId value; use the value and type returned by the corresponding service. обязательно по схеме · string
revision
Current native record revision from get. A stale revision fails. обязательно по схеме · integer · максимум 9007199254740991
values
Native values value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа payroll_native_profile_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profileId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native profileId value; use the value and type returned by the corresponding service."
    },
    "expectedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Current native record revision from get. A stale revision fails."
    },
    "profileName": {
      "description": "Native profileName value; use the value and type returned by the corresponding service.",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "maxLength": 20
      },
      "additionalProperties": {
        "type": "string",
        "maxLength": 200
      }
    },
    "effectiveFrom": {
      "description": "Native effectiveFrom value; use the value and type returned by the corresponding service.",
      "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])))$"
    },
    "effectiveTo": {
      "description": "Native effectiveTo value; use the value and type returned by the corresponding service.",
      "anyOf": [
        {
          "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])))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "currency": {
      "description": "Native currency value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "status": {
      "description": "Native status value; use the value and type returned by the corresponding service.",
      "type": "string",
      "enum": [
        "draft",
        "active",
        "inactive"
      ]
    },
    "configurationPatch": {
      "description": "Native configurationPatch value; use the value and type returned by the corresponding service.",
      "maxItems": 250,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "salaryComment",
              "payrollCloseDay",
              "employeeEmploymentType",
              "ratePerHour",
              "ratePerShift",
              "ratePerDay",
              "ratePerWeek",
              "ratePerMonth",
              "ratePerOrder",
              "ratePerSale",
              "ratePerService",
              "ratePerTask",
              "ratePerItem",
              "ratePerLead",
              "ratePerCall",
              "ratePerMessage",
              "ratePerUnitProduced",
              "ratePerRoute",
              "ratePerDeliveryStop",
              "ratePerOfflineOrder",
              "ratePerOnlineOrder",
              "ratePerOwnOrder",
              "ratePerAtPlace",
              "ratePerDeliveryOrder",
              "ratePerPickupOrder",
              "ratePerCateringOrder",
              "ratePerDocument",
              "percentFromPersonalSales",
              "percentFromAllSales",
              "percentFromAtPlace",
              "percentFromDelivery",
              "percentFromPickUp",
              "percentFromCatering",
              "percentFromService",
              "percentFromProduct",
              "percentFromGrossProfit",
              "percentFromProfit",
              "percentFromMargin",
              "percentFromOfflineSales",
              "percentFromOnlineSales",
              "percentFromTeamSales",
              "nightStartTime",
              "nightEndTime",
              "nightMultiplier",
              "weekendMultiplier",
              "holidayMultiplier",
              "minimumPerHours",
              "minimumPerDay",
              "minimumThisPeriod",
              "fixedBonus",
              "monthlyBonus",
              "fixedBonusAfterOrdersCount",
              "fixedBonusAfterRevenueAmount",
              "fixedDeduction",
              "percentDeduction",
              "lateDeductionmin",
              "absenceDeduction",
              "taxCountryCode",
              "taxFormType",
              "taxCalculationType",
              "taxBaseType",
              "taxIncomePercent",
              "incomeSocialPercent",
              "taxPensionPercent",
              "taxEmployerPercent",
              "taxFreeAmount",
              "taxBracketLevels",
              "taxPaymentFrequency",
              "taxEmployerContributionFixed",
              "taxEmployeeContributionFixed",
              "taxWithholdingExtraAmount",
              "taxAdditionalPercent",
              "taxLocalPercent",
              "taxMedicarePercent",
              "taxSocialSecurityPercent",
              "taxUnemploymentPercent",
              "taxUnemploymentWageBaseLimit",
              "taxWithholdingExtraPercent",
              "taxYear",
              "taxEffectiveFrom",
              "taxEffectiveTo",
              "taxStateCode",
              "taxCityCode",
              "taxFilingStatus",
              "taxExemptFromWithholding",
              "taxMultipleJobs",
              "taxDependentsAmount",
              "taxOtherIncomeAmount",
              "taxDeductionsAmount",
              "taxWithholdingMethod",
              "taxDepositSchedule",
              "taxReportingFormType",
              "taxInsurancePercent",
              "socialTaxWageBaseLimit",
              "pensionTaxWageBaseLimit",
              "insuranceTaxWageBaseLimit",
              "additionalTaxThresholdAmount",
              "additionalTaxThresholdPercent",
              "supplementalTaxMethod",
              "supplementalTaxPercent",
              "tipsTaxable",
              "bonusTaxable",
              "commissionTaxable",
              "overtimeTaxable",
              "preTaxDeductionAmount",
              "postTaxDeductionAmount",
              "taxableBenefitsAmount",
              "taxRoundingMode",
              "paydayDayNumber",
              "ordersTarget",
              "revenueTarget",
              "profitTarget",
              "shiftCancellationPay",
              "perKm",
              "transportAllowanceMonth",
              "mobileAllowanceMonth",
              "mealAllowanceMonth",
              "equipmentAllowance",
              "refundDeductionPercent",
              "refundDeductionFixed",
              "noShowDeduction",
              "earlyLeaveDeduction",
              "maxShiftsPerPeriod",
              "maxHoursPerShift",
              "minimumRestHoursBetweenShifts",
              "trainingRatePerHour",
              "tipPercent",
              "tipPoolShareType",
              "tipPoolPercent",
              "tipPerHour",
              "tipPerShift",
              "tipDirectPercent",
              "tipCashEnabled",
              "tipCardEnabled",
              "tipGuaranteedMinimumMonth",
              "tipDeductionPercent",
              "vacationDaysPerYear",
              "vacationHoursPerYear",
              "vacationCarryoverDays",
              "vacationCarryoverUntil",
              "vacationPayType",
              "vacationPayPercent",
              "vacationAverageMonths",
              "vacationMinimumNoticeDays",
              "sickLeaveDaysPerYear",
              "sickLeaveHoursPerYear",
              "sickLeavePayType",
              "sickLeavePayPercent",
              "sickLeaveWaitingDays",
              "sickLeaveMedicalCertificateRequired",
              "sickLeaveMedicalCertificateAfterDays",
              "sickLeaveMaxPaidDays",
              "sickLeaveSeparateFromVacation",
              "payrollPeriod",
              "salaryPaymentMethod",
              "salaryPaymentDelayDays"
            ],
            "description": "Native field value; use the value and type returned by the corresponding service."
          },
          "value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 5000
              },
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000000
              },
              {
                "type": "boolean"
              },
              {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/$defs/_mcp2"
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Native value value; use the value and type returned by the corresponding service."
          }
        },
        "required": [
          "field",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "terms": {
      "description": "Native terms value; use the value and type returned by the corresponding service.",
      "type": "object",
      "properties": {
        "goals": {
          "default": {},
          "description": "Native goals value; use the value and type returned by the corresponding service.",
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "hours",
              "shifts",
              "sales",
              "services",
              "tasks",
              "leads",
              "calls",
              "messages",
              "unitsProduced",
              "itemsSold",
              "routes",
              "deliveryStops",
              "documents",
              "newCustomers",
              "meetings",
              "hires",
              "qualityPercent",
              "conversionPercent",
              "onTimePercent"
            ]
          },
          "additionalProperties": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "productRates": {
          "default": [],
          "description": "Native productRates value; use the value and type returned by the corresponding service.",
          "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."
              },
              "conditions": {
                "minItems": 1,
                "maxItems": 30,
                "type": "array",
                "items": {
                  "$ref": "#/$defs/_mcp2"
                },
                "description": "Native conditions value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "productId",
              "operation",
              "conditions"
            ],
            "additionalProperties": false
          }
        },
        "nativeRules": {
          "description": "Native nativeRules value; use the value and type returned by the corresponding service.",
          "type": "object",
          "properties": {
            "tipRecipient": {
              "description": "Native tipRecipient value; use the value and type returned by the corresponding service.",
              "type": "string",
              "enum": [
                "order-worker",
                "payment-worker",
                "service-worker",
                "courier"
              ]
            }
          },
          "additionalProperties": false
        },
        "rewards": {
          "description": "Native rewards value; use the value and type returned by the corresponding service.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                "description": "Native id value; use the value and type returned by the corresponding service."
              },
              "metric": {
                "type": "string",
                "enum": [
                  "hours",
                  "shifts",
                  "orders",
                  "revenue",
                  "sales",
                  "services",
                  "tasks",
                  "leads",
                  "calls",
                  "messages",
                  "unitsProduced",
                  "items",
                  "routes",
                  "deliveryStops",
                  "documents"
                ],
                "description": "Native metric value; use the value and type returned by the corresponding service."
              },
              "target": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000,
                "description": "Native target 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": [
              "id",
              "metric",
              "target",
              "amount"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "goals",
        "productRates"
      ],
      "additionalProperties": false
    },
    "newPeriod": {
      "default": false,
      "description": "Native newPeriod value; use the value and type returned by the corresponding service.",
      "type": "boolean"
    },
    "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": [
    "profileId",
    "expectedRevision",
    "newPeriod",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp2": {
      "type": "object",
      "properties": {
        "from": {
          "$ref": "#/$defs/_mcp0"
        },
        "value": {
          "$ref": "#/$defs/_mcp1"
        }
      },
      "required": [
        "from",
        "value"
      ],
      "additionalProperties": false
    },
    "_mcp0": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Native from value; use the value and type returned by the corresponding service."
    },
    "_mcp1": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Native value value; use the value and type returned by the corresponding service."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profileId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native profileId value; use the value and type returned by the corresponding service."
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Current native record revision from get. A stale revision fails."
    },
    "values": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native values value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "profileId",
    "revision",
    "values"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}