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 

For other articled related to BioStar 2 TA Time Codes:

[BioStar 2 TA API] Create Time Codes

[BioStar 2 TA API] Modify Time Codes

[BioStar 2 TA API] Delete Time Codes

 

 

How to use TA Time Code

The most basic part of BioStar 2 TA is the Time Code. As you can see in the below screenshot, you must create a TIME CODE in order to start with BioStar 2 TA.

 

테이블이(가) 표시된 사진

자동 생성된 설명

텍스트이(가) 표시된 사진

자동 생성된 설명

 

 

Part 1. Search All Time Codes - API Parameters

 

[GET]: /tna/pay_codes?offset=0&limit=10

[Headers] 

*offset & limit headers are required.

[Parameters] 

Name

Type

*M/O

Explanation

Value

 

 

 

 

 

   * M – Mandatory, O – Optional

[Example Value/Parameters Model]

 

 

[Response: successful]

{

    "message": "Processed Successfully",

       "message_key": "SUCCESSFUL",

    "language": "en",

       "status_code": "SUCCESSFUL",

    "total": 5,

    "records": [

        {

            "id": 4,

            "name": "Leave Not Worked",

            "description": null,

            "time_rate": 1,

            "color": "#f00",

            "count_as_attendance": false,

               "accumulate_toward_overtime": false,

               "track_on_leave_management": true,

            "type": "NOT_WORKED"

        },

        {

            "id": 3,

            "name": "Leave Worked",

            "description": null,

            "time_rate": 1,

            "color": "#f00",

            "count_as_attendance": false,

               "accumulate_toward_overtime": false,

            "track_on_leave_management": true,

            "type": "WORKED"

        },

        {

            "id": 2,

            "name": "OT Time Code",

            "description": "OT Time Code",

            "time_rate": 1,

            "color": "#ff0000",

            "count_as_attendance": false,

               "accumulate_toward_overtime": true,

               "track_on_leave_management": false,

            "type": "WORKED"

        },

        {

            "id": 1,

            "name": "Regular Time Code",

            "description": null,

            "time_rate": 1,

            "color": "#00ff00",

            "count_as_attendance": true,

               "accumulate_toward_overtime": false,

               "track_on_leave_management": false,

            "type": "WORKED"

        },

        {

            "id": 6,

            "name": "Time Code Made by API",

            "description": "Made by API",

            "time_rate": 1,

            "color": "#00ff00",

            "count_as_attendance": true,

               "accumulate_toward_overtime": false,

               "track_on_leave_management": false,

            "type": "WORKED"

        }

    ]

}

 

 

 

 

 

Part 2. Search Specific Time Codes by its ID

 

[GET]: /tna/pay_codes/{time_code_ID}

[Parameters] 

Name

Type

*M/O

Explanation

Value

 

 

 

 

 

   * M – Mandatory, O – Optional

[Example Value/Parameters Model]

 

 

[Response: successful]

{

    "id": 1,

    "message": "Processed Successfully",

       "message_key": "SUCCESSFUL",

    "language": "en",

       "status_code": "SUCCESSFUL",

    "name": "Regular Time Code",

       "description": null,

    "time_rate": 1,

    "color": "#00ff00",

       "count_as_attendance": true,

       "accumulate_toward_overtime": false,

       "track_on_leave_management": false,

    "type": "WORKED"

}

 

 

 

Part 3. Searching Time Codes via POSTMAN

 

[Searching All Time Codes] 

텍스트이(가) 표시된 사진

자동 생성된 설명

 

[Search a specific Time Code] 

텍스트, 스크린샷, 모니터, 화면이(가) 표시된 사진

자동 생성된 설명