Get Shift Details
DevelopingGET
/api/v1/shiftsRequest
The name of the company (null for get all shifts in tenant)
Shift code
Shift name
Total number of record to be retrieved (Default 50)
Start index of the record to be skipped
Authorization credential utilized in API requests
Api subscription key get from the OpenAPI integration setting page
Request samples
Responses
Response status code
Response message
Total number of data returned
Data object
Shift name
Shift name (In English)
Shift code
Shift color code
Shift Description
Indicates whether the shift can apply to all companies
Indicates whether the shift takes place during the night hours. (e.g. 10 PM to 6 AM)
Indicates whether the shift is allow employee to work more than 1 shift per day
Amount of time (in minutes) of flexibility allowed for the start and end times of the work period
Amount of time (in minutes) before count as late
Amount of time (in minutes) before count as absence
Shift allowance
Shift holiday allowance
Shift details
{
"statusCode": 200,
"message": "OK",
"totals": 3,
"data": [
{
"shiftName": "วันหยุด",
"shiftName_EN": "Day Off",
"code": "OFF",
"colorCode": null,
"description": "กำหนดให้เป็นวันหยุดพนักงาน",
"isAllSite": true,
"isNightShift": false,
"isDoubleShift": false,
"minuteFlexible": 0,
"minuteOfLate": 0,
"minuteOfAbsence": 30,
"allowance": 0,
"holidayAllowance": false,
"shiftDetails": []
},
{
"shiftName": "Normal workday",
"shiftName_EN": "Normal workday",
"code": "IVE",
"colorCode": "#AB47BC",
"description": "",
"isAllSite": false,
"isNightShift": false,
"isDoubleShift": false,
"minuteFlexible": 15,
"minuteOfLate": 0,
"minuteOfAbsence": 30,
"allowance": 0,
"holidayAllowance": false,
"shiftDetails": [
{
"dayOfWeek": 1,
"weekOfMonth": 1,
"startTime": "08:30:00",
"endTime": "17:30:00",
"breakStartTime": "12:00:00",
"breakEndTime": "13:00:00",
"otStartTime": "17:30:00",
"otEndTime": "08:30:00"
},
{
"dayOfWeek": 2,
"weekOfMonth": 1,
"startTime": "08:30:00",
"endTime": "17:30:00",
"breakStartTime": "12:00:00",
"breakEndTime": "13:00:00",
"otStartTime": "17:30:00",
"otEndTime": "08:30:00"
},
{
"dayOfWeek": 3,
"weekOfMonth": 1,
"startTime": "08:30:00",
"endTime": "17:30:00",
"breakStartTime": "12:00:00",
"breakEndTime": "13:00:00",
"otStartTime": "17:30:00",
"otEndTime": "08:30:00"
},
{
"dayOfWeek": 4,
"weekOfMonth": 1,
"startTime": "08:30:00",
"endTime": "17:30:00",
"breakStartTime": "12:00:00",
"breakEndTime": "13:00:00",
"otStartTime": "17:30:00",
"otEndTime": "08:30:00"
},
{
"dayOfWeek": 5,
"weekOfMonth": 1,
"startTime": "08:30:00",
"endTime": "17:30:00",
"breakStartTime": "12:00:00",
"breakEndTime": "13:00:00",
"otStartTime": "17:30:00",
"otEndTime": "08:30:00"
}
]
},
{
"shiftName": "Evening Shift",
"shiftName_EN": "Evening Shift",
"code": "EV001",
"colorCode": "#485CC7",
"description": "",
"isAllSite": false,
"isNightShift": true,
"isDoubleShift": false,
"minuteFlexible": 0,
"minuteOfLate": 0,
"minuteOfAbsence": 30,
"allowance": 0,
"holidayAllowance": false,
"shiftDetails": [
{
"dayOfWeek": 1,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 2,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 3,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 4,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 5,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 6,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
},
{
"dayOfWeek": 0,
"weekOfMonth": 1,
"startTime": "17:30:00",
"endTime": "00:30:00",
"breakStartTime": "22:00:00",
"breakEndTime": "23:00:00",
"otStartTime": "00:30:00",
"otEndTime": "17:30:00"
}
]
}
]
}