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] CreateTime Codes
[BioStar 2 TA API] Search Time Codes
[BioStar 2 TA API] Modify 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. API Parameters
[DELETE]: /tna/pay_codes/{id}
[Parameters]
Name | Type | *M/O | Explanation | Value |
|
|
|
|
|
* M – Mandatory, O – Optional
Part 2. Request Body & Response Model
[Example Value/Parameters Model]
|
[Response: successful]
{ "message": "Processed Successfully", "message_key": "SUCCESSFUL", "language": "en", "status_code": "SUCCESSFUL" } |
[Response: Fail: When entered Time Code does not exist]
{ "message": "PayCode not found.", "message_key": "NOT_FOUND", "language": "en", "status_code": "NOT_FOUND" } |
Part 3. DELETE /tna/pay_codes/{id} via Postman
[Request Example: Headers]
*You must log-in to use [POST] /tna/pay_codes
*Unlike be-session-id for AC New Local API, bs-ta-session-id has to be sent in the Cookie. Bs-ta-session-id is sent in the Cookie automatically once you log-in via TA log-in API.
[Request & Response Example: body]