Gets shifts based on certain optional criteria.

Request

POST https://apisg.yourpayroll.io/api/v2/ess/{employeeId}/timeandattendance/shifts

Path parameters

Parameter name Value Description Additional
employeeId int32 Required

Request body

The request body takes a complete GetShiftsModel resource, containing the following writable properties:

{
    "employeeId": "int32",
    "fromDateUtc": "date-time",
    "kioskId": "int32",
    "locationId": "int32",
    "toDateUtc": "date-time"
}

Properties

Name Type Description
employeeId int32 Nullable
fromDateUtc date-time Nullable
kioskId int32 Nullable
locationId int32 Nullable
toDateUtc date-time Nullable

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

SgTimeAndAttendanceShiftModel