POST api/Company/SetCompanyHolidayPayRules

Request Information

URI Parameters

None.

Body Parameters

CompanyHolidayPaySetUp
NameDescriptionTypeAdditional information
CompanyID

integer

None.

HolidayPayRuleID

integer

None.

MinShiftsInLastYearWorkedtoQul

integer

None.

NoOfWeekToUseAve

integer

None.

MinNoOfWeeksWorkedFromAveToQual

integer

None.

MinOfShiftsworkedonLastOfdays

integer

None.

NoOfdaystocheckforshiftsWorked

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyID": 1,
  "HolidayPayRuleID": 2,
  "MinShiftsInLastYearWorkedtoQul": 3,
  "NoOfWeekToUseAve": 4,
  "MinNoOfWeeksWorkedFromAveToQual": 5,
  "MinOfShiftsworkedonLastOfdays": 6,
  "NoOfdaystocheckforshiftsWorked": 7
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
HasError

boolean

None.

HasSuccess

boolean

None.

Status

StatusType

None.

MessageTitle

string

None.

Message

string

None.

ExceptionMessage

string

None.

ExceptionStackTrace

string

None.

ResultException

Exception

None.

ResultObject

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultObject": {},
  "HasError": false,
  "HasSuccess": true,
  "Status": 200,
  "MessageTitle": "sample string 3",
  "Message": "sample string 4",
  "ExceptionMessage": "sample string 5",
  "ExceptionStackTrace": "sample string 6",
  "ResultException": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  }
}