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

Get shifts between 2 dates

Hi,

I'm trying to get shifts between 2 dates, but im getting a 500 error:

e.g
/v1/shifts?start[gte]=2022-04-01&end[lte]=2022-04-02

I tried the following instead:
/v1/shifts?start[gte]=2022-04-01&start[lte]=2022-04-02

This comes back with data, but the less than or equals is working like less than - ie its returning shifts that start only on April 1, even though i requested shifts that are less than or equal to april 2