Page 1 of 1

getPunch is returning true instead of punches register

Posted: Fri Jan 07, 2022 11:19 am
by jhonathanarroyo
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?

Re: getPunch is returning true instead of punches register

Posted: Fri Jan 07, 2022 2:18 pm
by shaunw
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.