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 use TA Time Shifts

BioStar 2 TA shifts are required for you to use TA features. The first step is adding Time Codes and the second step will be on the shifts.

*There are 2 ways to delete shifts from your BioStar 2 TA:

1. [DELETE] /tna/shifts/{id}

2. [POST] /tna/shifts/delete

 

 

Part 1. API Parameters

 

[DELETE]: /tna/shifts /{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": "Please contact system administrator. ( Code :Shift )",

  "message_key": "UNKNOWN_ERROR",

  "language": "en",

  "status_code": "UNKNOWN_ERROR"

}

 

 

Part 3. API Parameters

 

[POST]: /tna/shifts/delete

[Parameters] 

Name

Type

*M/O

Explanation

Value

Ids

Array

M

Shift ID List

 

   * M – Mandatory, O – Optional

 

Part 4. Request Body & Response Model

[Example Value/Parameters Model]

{

     "ids": [

       "2"

  ]

}

 

[Response: successful]

{

  "message": "Processed Successfully",

  "message_key": "SUCCESSFUL",

  "language": "en",

  "status_code": "SUCCESSFUL"

}

[Response: Fail: When entered Time Code does not exist]

{

  "message": "Shift not found.",

  "message_key": "NOT_FOUND",

  "language": "en",

  "status_code": "NOT_FOUND"

}

 

 

 

Part 5. DELETE /tna/pay_codes/{id} via Postman

 

[Request Example: Headers] 

*You must log-in to use [POST] /tna/shifts/delete & [DELETE] /tna/shifts

*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.

 

[DELETE /tna/shifts/{shift_id}] 

 

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

자동 생성된 설명

 

 

[POST /tna/shifts/delete] 

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

자동 생성된 설명