i have checked EmployeesID and other details which seems to be proper
but still i am getting ‘An error occurred’ exception , am i missing any parameter?
I think the request looks fine. The reason that it is failing is that there is a timesheet from the time&attendance kiosk for that employee from that date range that you specified (10/9/15 - 16/9/15) and when you send through a PUT request it is trying to replace all timesheets in that period.
We should handle that scenario however we currently don’t. It will be fixed in the next couple of days.
Apologies for not replying sooner - i’m going to be away for a couple of days but if you could please try your API request again and then if/when it fails, contact support@yourpayroll.com.au and let them know what time you did it, they should be able to check the errors and let you know what has happened.
In your request it looks like you’re specifying a paycategoryId, leavecategoryId and classificationId of 0, these should be null values, rather than 0.