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 check BioStar 2 TA Punch Type Codes
BioStar 2 TA punch type codes are to be used for punch types.
You can search for your logs and click on them to add/edit punch logs.
By clicking on the icon(pencil) to edit or add button to see your available punch type codes.
You can find the /tna/reference/punch_type_codes API in your TA Swagger.
Part 1. Get all Punch Type Codes
[GET]: /tna/reference/punch_type_codes
[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": 7, "records": [ { "code": "PUNCH_TYPE_BREAK_END", "description": "Break End" }, { "code": "PUNCH_TYPE_BREAK_START", "description": "Break Start" }, { "code": "PUNCH_TYPE_CHECK_IN", "description": "Check In" }, { "code": "PUNCH_TYPE_CHECK_OUT", "description": "Check Out" }, { "code": "PUNCH_TYPE_MEAL_END", "description": "Meal Time End" }, { "code": "PUNCH_TYPE_MEAL_START", "description": "Meal Time Start" }, { "code": "PUNCH_TYPE_NONE", "description": "None" } ] } |
Part 2. Get all Punch Type Codes via POSTMAN