Looking for advice on a persistent issue with the WFM adherence reporting API. We are seeing 400 Bad Request responses when querying adherence data for agents with split shifts that span midnight in the Asia/Singapore timezone. The error payload indicates a validation failure on the startTime and endTime parameters, specifically citing “Invalid date range or timezone conflict”. This is happening despite the timestamps being in valid ISO 8601 format with explicit +08:00 offsets.
Here is the sequence of events leading to the error:
- The scheduling engine generates a split shift for an agent:
02:00 - 06:00and22:00 - 02:00(next day). - Our integration service constructs the API request to
/api/v2/wfm/schedules/v2/agent-adherenceusing the UTC-normalized timestamps. - The request includes the
dateRangefilter set to a 24-hour window starting at2023-10-27T00:00:00+08:00. - The API returns a 400 error immediately, without processing the adherence calculation.
- If we adjust the shift to end at
01:59:59instead of02:00:00next day, the request succeeds, but the data is incomplete.
This behavior suggests a boundary condition bug in how the WFM service parses multi-day ranges when the local timezone offset is applied. Given our heavy reliance on accurate adherence metrics for carrier failover logic triggers, this data gap is critical. We have verified that the same request works perfectly for agents with standard 09:00 - 17:00 shifts. The issue is isolated to shifts crossing the day boundary in the ap-southeast-1 region.
Has anyone encountered similar parsing issues with the WFM API when dealing with non-standard shift patterns? We are considering switching to the raw event log API as a workaround, but that introduces significant latency in our reporting pipeline. Any insights into whether this is a known limitation or a configuration error on our end would be appreciated.