I'm trying to get punches from Timetrex with my API it was working yesterday properly with the same code, and today is not. what I'm doing is calling the method APIPunch/getPunch whit this filter:
Array
(
[filter_data] => Array
(
[time_stamp] => 1641531600
[type_id] => 10
)
)
but I'm getting just true in return not my array with the check-in that are already saved in the system.
Do you know why?
getPunch is returning true instead of punches register
-
- Posts: 6
- Joined: Tue Dec 07, 2021 2:28 pm
Re: getPunch is returning true instead of punches register
Filtering on that data doesn't make sense. If you are trying to get a specific punch, you should use the UUID of that punch, not a timestamp that could match multiple punches, or could even be rounded to some other time.