英文:
Xero Payslip List
问题
我可以通过这个API获取工资单的信息:
GET https://api.xero.com/payroll.xro/1.0/Payslip/5037f8ef-e9b5-40a6-9ec1-0f6f7ebb4787.
但我需要所有工资单列表的API,因为我想将此API集成到我的系统中,并按员工方式获取我的Xero组织的所有工资单。
是否可能?如果可能,该如何实现?请协助我。
谢谢。
英文:
I can get a payslip's information by this api
GET https://api.xero.com/payroll.xro/1.0/Payslip/5037f8ef-e9b5-40a6-9ec1-0f6f7ebb4787.
But I need all the payslip list's api. Beacuse I want to integrate this api in my system and get all the payslip for my xero organaigation aslo in employee wise.
Is it possible? If Possible then how? Please assist me.
Thanks.
I can get a payslip's information by this api
GET https://api.xero.com/payroll.xro/1.0/Payslip/5037f8ef-e9b5-40a6-9ec1-0f6f7ebb4787.
答案1
得分: 1
目前无法通过单一调用获取所有工资单的列表。
您需要首先调用支付流程终端点以获取支付流程ID,然后针对您感兴趣的期间对每个支付流程ID进行调用以获取工资单ID的列表,然后分别查询每个工资单。
英文:
It is not currently possible to get a list of all payslips as a single call.
You need to first make a call to the payruns endpoint to get a payrun id, make a call to each pay run id for the period you are interested in to get a list of payslip ids and then query each of these separately.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论