If you want to confirm 'T&A key' by using BioStar 2 API, it's possible to check the value through BioStar 2 New Local API.

* Please note that you CANNOT confirm 'T&A key' in BioStar 2 Local API Server.


If you retrieve event logs by using /api/event/search, you can see “tna_key” in the response result.

* Note:

You CANNOT set 'tna_key' as a filter of the condition when retrieving the event log.

eg,) 


To confirm the “tna_key” values’ meaning, please check your T&A setting through connecting “https:[your BioStar 2 Server IP]:3002/tna/setting”.


key_indextype_codetna_key
0PUNCH_TYPE_CHECK_IN1
1PUNCH_TYPE_CHECK_OUT2
2PUNCH_TYPE_BREAK_START3
3PUNCH_TYPE_BREAK_END4
4PUNCH_TYPE_MEAL_START5
5PUNCH_TYPE_MEAL_END6

eg,) 

> BioStar 2 TA Setting

> Confirmed "tna_key" via connecting address (eg, https://192.168.8.35:3002/tna/setting )


- Relevant article: [BioStar 2 API] How to retrieve the event logs through BioStar 2 New Local API