Closed haydn closed 1 year ago
PETOSS-315
Thanks for raising an issue, a ticket has been created to track your request
Thanks for reporting these issues @haydn ! We'll get these things fixed soon and keep you posted.
@rdemarco-xero I'm no longer seeing this issue or #645. Were some changes made to fix these? When I encountered this bug I was using a demo account — perhaps that demo account was in an invalid state? Testing with a fresh demo account now works just fine.
Hi @haydn, this issue plus #645 were legitimate issues with our public endpoint. The team was able to release a fix last week. Glad it is working for you now. Will get a fix out to the SDK for #643 soon.
@rdemarco-xero Thanks for following this up! Very much appreciated.
Do you happen to know if creating leave applications with a "REQUESTED" status is on the cards? It's the last piece of the puzzle we need to make a seamless leave management experience.
SDK:
Describe the bug
The API endpoints for approving/rejecting leave applications that were recently added the AU payroll fail. Additionally, there's no proper error returned.
To Reproduce
Steps to reproduce the behavior:
xero.payrollAUApi.approveLeaveApplication(TENANT_ID, LEAVE_APPLICATION_ID)
This throws an error with this message:
If I enable Node's http debugging, I can see this for the response:
So it looks like the API is failing to produce a response of any kind.
If I try to approve the leave application via the API explorer it fails without any message (so I assume the same thing is happening). I can successfully retrieve the leave application using the get leave application endpoint.
Logging into Xero and approving the leave application works fine.
Expected behavior
It should approve the leave application (or at least display an error message explaining what's wrong).
Screenshots
N/A
Additional context
N/A