Updating a payun

Options
brentonjj
brentonjj Member Posts: 4
edited October 2020 in Reckon API

Hi,

Has anyone had any luck with updating a payrun? When I put anything to a an existing payrun I receive a 404

https://api.reckon.com/R1/*********-14faeb4f83d7/payroll/payruns/2af2bcc4-a925-4227-b95d-0fd561b7a92f

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.

Comments

  • Ifti
    Ifti Reckon Staff Posts: 258 Reckon Staff
    edited October 2020
    Options

    Hi there,

    PUT of Payrun isn't available as yet. You can only update a pay run's line item.

    Click here to learn more.