Click or drag to resize

ServiceRouterAddPayrollPayType Method

Adds a list of AddPayrollPayTypeModel and returns a list of AddResult status structures

Namespace: AppOne.Services.V2
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public AddPayrollPayTypeOut AddPayrollPayType(
	AddPayrollPayTypeIn input
)

Parameters

input  AddPayrollPayTypeIn
A new AddPayrollPayTypeIn object

Return Value

AddPayrollPayTypeOut
A AddPayrollPayTypeOut result object
Remarks
Adds a list of AddPayrollPayTypeModel and returns a list of AddResult structures.
The structures give a status for each AddPayrollPayTypeModel passed in.

Note  Note
Pay types contain both an internal ID labeled 'ID' and a pay type ID labeled PayTypeID.
Example
JSON Request
{
    "AuthToken":"...",
    "Payload":[{
        "AllowShiftDiff":true,
        "ApplyToOvertime":true,
        "ApplyToTimeOff":true,
        "CanBeOvertime":true,
        "Code":"2",
        "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":"aa",
        "OverridesAbsense":true,
        "OvertimeFactor":1,
        "StartDateTime":"\/Date(1519887600000-0700)\/"
    }
    ]
}
JSON Response
{
   "Report":    {
      "APIVersion": "2.0",
      "ProcessTime": "0.0227152",
      "RequestTime": "/Date(1522176455133-0700)/",
      "ResponseTime": "/Date(1522176455155-0700)/",
      "Results": 1
   },
   "Results": [   {
      "ID": 228,
      "Messages": ["PASS: Pay type successfully added for code '2'."],
      "Status": 1
   }]
}
See Also