Hi,
I am trying to fetch roster shift data using following API and I figured out that fromDate and endDate are two required parameters to be sent in the request for fetching the Data.
_https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/rostershift_
When I am sending the request as below (replaced businessId with valid value for our organization):
_https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/rostershift?fromDate=2018-01-01T00:00:00&endDate=2018-03-31T00:00:00_
I am getting following error:
The request is invalid.ToDate is required
I tried to pass the Date value in following ways but nothing worked so far. The strange thing is that it complains only for ToDate and FromDate is just fine.
2018-01-01
2018-01-01T00:00:00Z
2018-01-01T00:00:00.000Z
2018-01-01T00:00:00-00:00
datetime’2018-01-01T00:00:00.000Z’
Please help me in getting this fixed.
Thanks!