getPunch is returning true instead of punches register

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
jhonathanarroyo
Posts: 6
Joined: Tue Dec 07, 2021 2:28 pm

getPunch is returning true instead of punches register

Post 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?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: getPunch is returning true instead of punches register

Post 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.
Post Reply