Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xero API, create payslips for PayRun in "DRAFT" status #470

Open
ValentinNikolaev opened this issue Nov 16, 2021 · 0 comments
Open

Xero API, create payslips for PayRun in "DRAFT" status #470

ValentinNikolaev opened this issue Nov 16, 2021 · 0 comments

Comments

@ValentinNikolaev
Copy link

ValentinNikolaev commented Nov 16, 2021

Hello, community

I would be grateful if you could help me with Payslips creation via Xero Api? OpenAPI specification doesnt provide such endpoint. I didn't find any answers to my questions on GitHub, Dev community and official documentation..

If we create PayRun in "DRAFT" status, then PaySlip won't be created:

Realtes to Xero official documentation:
https://developer.xero.com/documentation/api/payrollau/integration-guide/#pay-templates

Any items that are available on the Pay Template will automatically be pre-filled on the PaySlip (including the information from the approved timesheets within the Pay Run window) for scheduled Pay Runs. If there is no Pay Template configured for the employee or if the information needs to be adjusted from the default Pay Template, then Payslips will need to be added/edited using the Payslips endpoint. These modifications must be done while the Pay Run is in DRAFT status.

Note: Unscheduled Pay Runs don’t generate Payslips, so developers will need to do this separately.

In our case Payslips aren't created for a "DRAFT" Pay Runs. So there should be a "CREATE" Api endpoint for payslip as might be assumed. But there is no API endpoint to CREATE new PaySlip for "DRAFT" Pay Run. There's a discrepancy between the Api and the Integration guide.

Realy, no endpoint to create Payslip from API side.

I've checked OpenAPI specification e.t.c and nothing found there either.

Also I've found the same question on Xero developer's forum without an answer https://community.xero.com/developer/discussion/130258174/

So the question is how to create Payslip from the Xero API side?

@RettBehrens RettBehrens self-assigned this Feb 9, 2022
@RettBehrens RettBehrens removed their assignment May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants