I am not able to see the full-time slots in the API response(POST /v2/bookings/availability/search), Although my technician has time slots available from 9:00 AM - 5:00 PM, I am only able to see limited time slots. Here’s the response generated from the square :
{
“availabilities”: [
{
“start_at”: “2023-08-31T14:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T14:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T15:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T15:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T16:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T16:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T17:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T17:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T18:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T18:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T19:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T19:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T20:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-08-31T20:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
}
],
“errors”:
}
here’s the appId : sandbox-sq0idb-2GgYa1yeVdtgSDolaqzE4Q
Expected response : It should include all the time frame in UTC between (9:00AM - 5:00PM)
Looks like your querying to 5am UTC. You’ll need to change the time to 17:00
to query to 5pm.
{
"query": {
"filter": {
"start_at_range": {
"end_at": "2023-09-01T05:00:00.000Z",
"start_at": "2023-08-31T17:00:00.000Z"
},
"segment_filters": [
{
"service_variation_id": "6NJCWMXSX3Z4SUDPEUBOB5ZG",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
},
{
"service_variation_id": "GUGVDALF6TYCRAKYEM75XLNU",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
},
{
"service_variation_id": "SPFLLIHOVEBVWZNZ4XWM5WJB",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
}
],
"location_id": "LXTQT7NA7BXQQ"
}
}
}
{
"query": {
"filter": {
"start_at_range": {
"end_at": "2023-09-01T05:00:00.000Z",
"start_at": "2023-08-31T05:00:00.000Z"
},
"segment_filters": [
{
"service_variation_id": "6NJCWMXSX3Z4SUDPEUBOB5ZG",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
},
{
"service_variation_id": "GUGVDALF6TYCRAKYEM75XLNU",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
},
{
"service_variation_id": "SPFLLIHOVEBVWZNZ4XWM5WJB",
"team_member_id_filter": {
"any": [
"TMJZP0gbqbwKY45i"
]
}
}
],
"location_id": "LXTQT7NA7BXQQ"
}
}
}
I have implemented this API in my webapp, where my condition is, I need to show the time slots of the day that is chosen,
for example with this time slot chosen, I am showing all the time slots that exist in 2023-09-04
“start_at”: “2023-09-04T05:00:00.000Z”
“end_at”: “2023-09-05T05:00:00.000Z”
But looking at the response, last time in CST is seen at 2:30PM and start time is 8:00 AM
but the technician time is between : 9:00AM -5:00PM
Response from square :
{
“availabilities”: [
{
“start_at”: “2023-09-04T14:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T14:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T15:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T15:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T16:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T16:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T17:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T17:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T18:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T18:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T19:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T19:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T20:00:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
},
{
“start_at”: “2023-09-04T20:30:00Z”,
“location_id”: “LXTQT7NA7BXQQ”,
“appointment_segments”: [
{
“duration_minutes”: 15,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 45,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“service_variation_version”: 1688403769914
},
{
“duration_minutes”: 10,
“team_member_id”: “TMJZP0gbqbwKY45i”,
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“service_variation_version”: 1688403769914
}
]
}
],
“errors”:
}
Payload “query”: {
“filter”: {
“start_at_range”: {
“end_at”: “2023-09-05T05:00:00.000Z”,
“start_at”: “2023-09-04T05:00:00.000Z”
},
“segment_filters”: [
{
“service_variation_id”: “6NJCWMXSX3Z4SUDPEUBOB5ZG”,
“team_member_id_filter”: {
“any”: [
“TMJZP0gbqbwKY45i”
]
}
},
{
“service_variation_id”: “GUGVDALF6TYCRAKYEM75XLNU”,
“team_member_id_filter”: {
“any”: [
“TMJZP0gbqbwKY45i”
]
}
},
{
“service_variation_id”: “SPFLLIHOVEBVWZNZ4XWM5WJB”,
“team_member_id_filter”: {
“any”: [
“TMJZP0gbqbwKY45i”
]
}
}
],
“location_id”: “LXTQT7NA7BXQQ”
}
}
}’
In the query you provided it’s still ending at 5am 2023-09-05T05:00:00.000Z
. If you want to query to 5pm you’ll need to change the end_time
to 2023-09-05T17:00:00.000Z
.