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

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

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

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

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

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

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

Create the current native employee Salary scheme under users/employee/Salary, with reviewed effective terms, thresholds, goals, piecework and rewards. Defaults to draft; native one-active-scheme and employee membership checks apply. Does not create a parallel SQL salary or transfer money.

Параметры запроса
employeeId
Native employeeId value; use the value and type returned by the corresponding service. обязательно по схеме · string
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" · варианты 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
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_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "employeeId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native employeeId value; use the value and type returned by the corresponding service."
    },
    "profileName": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "maxLength": 20
      },
      "additionalProperties": {
        "type": "string",
        "maxLength": 200
      },
      "description": "Native profileName value; use the value and type returned by the corresponding service."
    },
    "effectiveFrom": {
      "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 effectiveFrom value; use the value and type returned by the corresponding service."
    },
    "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": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Native currency value; use the value and type returned by the corresponding service."
    },
    "status": {
      "default": "draft",
      "description": "Native status value; use the value and type returned by the corresponding service.",
      "type": "string",
      "enum": [
        "draft",
        "active",
        "inactive"
      ]
    },
    "configurationPatch": {
      "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
      },
      "description": "Native configurationPatch value; use the value and type returned by the corresponding service."
    },
    "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
    },
    "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": [
    "employeeId",
    "profileName",
    "effectiveFrom",
    "currency",
    "status",
    "configurationPatch",
    "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"
          }
        }
      ]
    }
  }
}