A new API for Time Attendance has been added with BioStar 2.8.13.
For ‘How to use TA API swagger’, please refer to the link below:
[BioStar 2 TA API] How to use and start BioStar 2 TA API
How to Search for a specific Schedule Templates
BioStar 2 TA Schedule Templates can be searched by using TA API.
You can find the /tna/Schedule Template API in your TA Swagger.
Part 1. Search for a specific Schedule Templates
[GET]: /tna/schedule_templates/{schedule_template_ID}
[Headers]
*id header is required.
[Parameters]
Name | Type | *M/O | Explanation | Value |
|
|
|
|
|
* M – Mandatory, O – Optional
[Example Value/Parameters Model]
|
[Response: successful]
{ "id": 2, "message": "Processed Successfully", "message_key": "SUCCESSFUL", "language": "en", "status_code": "SUCCESSFUL", "type": "WEEKLY", "description": "Schedule Template 2", "name": "Schedule Template 2", "cycle_in_days": 7, "weekend_index": "0,6", "created_perm_id": 1, "shift_list": [ { "name": "Shift 1", "description": "Shift 1", "id": 1, "type": "FIXED", "day_start_time": 300, "first_in_last_out": true, "created_perm_id": 1, "fixed_option": { "regular_pay_time_segment_option": { "grace": { "use": true, "in": 1, "out": 1 }, "punch_in_time_range": {} }, "punch_in_rounding": { "use": false, "unit": 0, "point": 0 }, "punch_out_rounding": { "use": false, "unit": 0, "point": 0 }, "time_segment_list": [ { "pay_code": { "id": 1, "color": "#ff0000", "count_as_attendance": true, "name": "Regular" }, "punch_in_rounding": {}, "punch_out_rounding": {}, "start_time": 480, "end_time": 1020, "min_minutes": 240 } ], "break_time": { "type": "NONE", "max_minutes": 0, "start_time": 1260, "end_time": 1290 }, "use_exception_handle": false, "meal_deduction_option": { "list": [ { "use": true, "auto_deduction": { "deduction_time": 60, "min_time_before_deduction": 240 }, "fixed_deduction": { "start_time": 720, "end_time": 780 } }, { "use": false, "auto_deduction": { "deduction_time": 60, "min_time_before_deduction": 480 }, "fixed_deduction": { "start_time": 1080, "end_time": 1140 } } ], "type": "BY_PUNCH" }, "day_start_time_excess_time": { "use": false, "prev_allowed_minutes": 0, "next_allowed_minutes": 0 }, "start_time": 480, "end_time": 1020 } } ... { "name": "Shift 1", "description": "Shift 1", "id": 1, "type": "FIXED", "day_start_time": 300, "first_in_last_out": true, "created_perm_id": 1, "fixed_option": { "regular_pay_time_segment_option": { "grace": { "use": true, "in": 1, "out": 1 }, "punch_in_time_range": {} }, "punch_in_rounding": { "use": false, "unit": 0, "point": 0 }, "punch_out_rounding": { "use": false, "unit": 0, "point": 0 }, "time_segment_list": [ { "pay_code": { "id": 1, "color": "#ff0000", "count_as_attendance": true, "name": "Regular" }, "punch_in_rounding": {}, "punch_out_rounding": {}, "start_time": 480, "end_time": 1020, "min_minutes": 240 } ], "break_time": { "type": "NONE", "max_minutes": 0, "start_time": 1260, "end_time": 1290 }, "use_exception_handle": false, "meal_deduction_option": { "list": [ { "use": true, "auto_deduction": { "deduction_time": 60, "min_time_before_deduction": 240 }, "fixed_deduction": { "start_time": 720, "end_time": 780 } }, { "use": false, "auto_deduction": { "deduction_time": 60, "min_time_before_deduction": 480 }, "fixed_deduction": { "start_time": 1080, "end_time": 1140 } } ], "type": "BY_PUNCH" }, "day_start_time_excess_time": { "use": false, "prev_allowed_minutes": 0, "next_allowed_minutes": 0 }, "start_time": 480, "end_time": 1020 } }, null, null ] } |
Above response represents the results same as the screenshot below.
Part 2. Search for a specific Schedule Template via POSTMAN