Click or drag to resize

ServiceRouterUpdatePayrollPayType Method

Updates a list of UpdatePayrollPayTypeModel and returns a list of UpdateResult status structures

Namespace: AppOne.Services.V2
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public UpdatePayrollPayTypeOut UpdatePayrollPayType(
	UpdatePayrollPayTypeIn input
)

Parameters

input  UpdatePayrollPayTypeIn
A new UpdatePayrollPayTypeIn object

Return Value

UpdatePayrollPayTypeOut
The internal ID of the passed in UpdatePayrollPayTypeOut
Remarks
Updates a list of UpdatePayrollPayTypeModel and returns a list of UpdateResult structures.
The structures give a status for each UpdatePayrollPayTypeModel passed in.

Example
JSON Request
{
    "AuthToken":"...",
    "Payload":[{
        "PayTypeID": 22,
        "AllowShiftDiff":true,
        "ApplyToOvertime":true,
        "ApplyToTimeOff":true,
        "CanBeOvertime":true,
        "Code":"f002",
        "CountsTowardsHolidayMin":true,
        "DeductFromPayType":true,
        "DeductFromPayTypeID":888888888,
        "DefaultPayLevelRateType":1,
        "EndDateTime":"\/Date(1519887600000-0700)\/",
        "IncludeInBlendedRate":true,
        "IsDeleted":true,
        "IsDurationOnly":true,
        "IsFMLAType":true,
        "IsLLRequired":true,
        "IsOvertime":true,
        "IsWorkType":true,
        "Name":"FOO2",
        "OverridesAbsense":true,
        "OvertimeFactor":1,
        "StartDateTime":"\/Date(1519887600000-0700)\/"
    }
    ]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.1061828",
      "RequestTime": "/Date(1522695590774-0700)/",
      "ResponseTime": "/Date(1522695590880-0700)/",
      "Results": 1
   },
   "Results": [   {
      "ID": 229,
      "Messages": ["PASS: Pay type successfully updated for code 'f002'."],
      "Status": 1
   }]
}
See Also