Updating a payun
Hi,
Has anyone had any luck with updating a payrun? When I put anything to a an existing payrun I receive a 404
On get I get this packet
{
"CashbookId": "/*omitted*/",
"PayRunName": "N2U Unscheduled 2020-10-04D",
"PayRunTypeId": 2,
"PayRunId": "2af2bcc4-a925-4227-b95d-0fd561b7a92f",
"PayDate": "2020-10-06T00:00:00",
"PayEndingDate": "2020-10-04T00:00:00",
"PayrunStatus": 1,
"Total": 59.67,
"EmployeeData": [ //data excluded for previty ]
}
but the PUT fails
{
"PayRunName": "N2U Unscheduled 2020-10-04E",
"PayRunTypeId": 2,
"PayDate": "2020-10-06T00:00:00",
"PayStartDate": "2020-09-27T00:00:00",
"PayEndDate": "2020-10-04T00:00:00",
"PayrunStatus": 1,
"Total": null,
"CustomEmployeeData": [ ]
}
Response
{
"statusCode": 404,
"message": "Resource not found"
}
I could delete the payrun and recreate a new one, but this seems like a terrible waste of bandwidth.
