GuidesAPI ReferenceChangelogDiscussions
Back to 7shifts.comBecome a Partner
Discussions
These docs are for v2.2022.0501. Click to read the latest docs for v2.2023.0501.

Discussions

Ask a Question
Back to All

How can I sort time punches like we do with shifts?

There seems to be no effect in including any of the below params in the request below. Can this be fixed?

'https://api.7shifts.com/v2/company//time_punches'

with params:

         "sort_by": "start",
        "sort_dir": "asc",
        "start[gte]": start_gte if start_gte else None,
        "start[lte]": start_lte if start_lte else None,
        "end[gte]": end_gte if end_gte else None,
        "end[lte]": end_lte if end_lte else None