<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.odatalink.com/index.php?action=history&amp;feed=atom&amp;title=Xero_Payroll_%28UK%29_Endpoint%3A_PayRunsExpanded</id>
	<title>Xero Payroll (UK) Endpoint: PayRunsExpanded - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.odatalink.com/index.php?action=history&amp;feed=atom&amp;title=Xero_Payroll_%28UK%29_Endpoint%3A_PayRunsExpanded"/>
	<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Payroll_(UK)_Endpoint:_PayRunsExpanded&amp;action=history"/>
	<updated>2026-10-26T15:19:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://help.odatalink.com/index.php?title=Xero_Payroll_(UK)_Endpoint:_PayRunsExpanded&amp;diff=3141&amp;oldid=prev</id>
		<title>Nic: Created page with &quot;== Overview ==  The Xero &#039;&#039;&#039;PayRunsExpanded&#039;&#039;&#039; endpoint provides the list of pay runs.  As this endpoint cannot be filtered, it is optimised to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Payroll_(UK)_Endpoint:_PayRunsExpanded&amp;diff=3141&amp;oldid=prev"/>
		<updated>2023-12-14T04:31:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview ==  The Xero &amp;#039;&amp;#039;&amp;#039;PayRunsExpanded&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php?title=Xero_Payroll_(UK)_Endpoints&quot; title=&quot;Xero Payroll (UK) Endpoints&quot;&gt;endpoint&lt;/a&gt; provides the list of pay runs.  As this endpoint cannot be filtered, it is optimised to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
The Xero &amp;#039;&amp;#039;&amp;#039;PayRunsExpanded&amp;#039;&amp;#039;&amp;#039; [[Xero Payroll (UK) Endpoints|endpoint]] provides the list of pay runs.&lt;br /&gt;
&lt;br /&gt;
As this endpoint cannot be filtered, it is optimised to pull payslips based on the [[Models|model&amp;#039;s]] &amp;#039;&amp;#039;&amp;#039;Default Start Date&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Default End Date&amp;#039;&amp;#039;&amp;#039;. See [[Editing a model&amp;#039;s details]] for more information. &lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use the [[Xero Payroll (UK) Endpoint: GetPayRun|GetPayRun]] endpoint which is easier to optimise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
&lt;br /&gt;
The following fields are available for the PayRunsExpanded endpoint.&lt;br /&gt;
&lt;br /&gt;
;payRunID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that provides the id of the pay run.&lt;br /&gt;
&lt;br /&gt;
;payrollCalendarID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that provides the [[Xero Payroll (UK) Endpoint: PayrollCalendars|payroll calendar id]] of the pay run.&lt;br /&gt;
&lt;br /&gt;
;periodStartDate&lt;br /&gt;
:A [[Field Type: Date|date field]] that provides the start date of the pay run.&lt;br /&gt;
&lt;br /&gt;
;periodEndDate&lt;br /&gt;
:A [[Field Type: Date|date field]] that provides the end date of the pay run.&lt;br /&gt;
&lt;br /&gt;
;paymentDate&lt;br /&gt;
:A [[Field Type: Date|date field]] that provides the payment date of the pay run.&lt;br /&gt;
&lt;br /&gt;
;postedDateTime&lt;br /&gt;
:A [[Field Type: DateTimeOffset|datetime field]] that provides the date and time the pay run was posted.&lt;br /&gt;
&lt;br /&gt;
;payRunStatus&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the status of the pay run.&lt;br /&gt;
:Possible values are:&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Draft&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Posted&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
;payRunType&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the status of the pay run.&lt;br /&gt;
:Possible values are:&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Scheduled&amp;#039;&amp;#039;&amp;#039;: Pay run that is using the normal pay run period.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Unscheduled&amp;#039;&amp;#039;&amp;#039;: Pay run that is not using the normal pay run period.&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;EarlierYearUpdate&amp;#039;&amp;#039;&amp;#039;: Pay run that is of Earlier Year Update.&lt;br /&gt;
&lt;br /&gt;
;calendarType&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the status of the pay run.&lt;br /&gt;
:Possible values are:&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Weekly&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Fortnightly&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;TwiceMonthly&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;Monthly&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:* &amp;#039;&amp;#039;&amp;#039;FourWeekly&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
;payslipMessage&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the pay slip message attached to a pay run.&lt;br /&gt;
&lt;br /&gt;
;totalCost&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total costs of the pay run.&lt;br /&gt;
&lt;br /&gt;
;totalPay&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total paid amount of the pay run.&lt;br /&gt;
&lt;br /&gt;
;paySlips&lt;br /&gt;
:A [[Field Type: Table|table field]] that provides the pay slips of the pay run.&lt;br /&gt;
:See [[#PaySlips Fields|PaySlips Fields]] for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PaySlips Fields ==&lt;br /&gt;
&lt;br /&gt;
The [[#Fields|PaySlips Fields]] include the following sub fields.&lt;br /&gt;
&lt;br /&gt;
;paySlipID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that provides the [[Xero Payroll (UK) Endpoint: PaySlips|payslip id]].&lt;br /&gt;
&lt;br /&gt;
;employeeID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that provides the [[Xero Payroll (UK) Endpoint: Employees|employee id]] associated with the payslip.&lt;br /&gt;
&lt;br /&gt;
;firstName&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the first name of the employee.&lt;br /&gt;
&lt;br /&gt;
;lastName&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the last name of the employee.&lt;br /&gt;
&lt;br /&gt;
;paymentMethod&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the way in which the pay slip was paid.&lt;br /&gt;
&lt;br /&gt;
;totalEarnings&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total earnings amount of this payslip.&lt;br /&gt;
&lt;br /&gt;
;grossEarnings&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the gross earnings amount of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalPay&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the net pay.&lt;br /&gt;
&lt;br /&gt;
;totalEmployerTaxes&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total employer taxes of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalEmployeeTaxes&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total employee taxes of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalDeductions&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total deductions of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalReimbursements&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total reimbursement amount of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalCourtOrders&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total court earnings ordered of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalBenefits&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total benefits paid of this payslip.&lt;br /&gt;
&lt;br /&gt;
;bacsHash&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the BACS service user number.&lt;br /&gt;
&lt;br /&gt;
;lastEdited&lt;br /&gt;
:A [[Field Type: DateTimeOffset|date time field]] that provides the last date this payslip was edited.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Xero API ==&lt;br /&gt;
&lt;br /&gt;
For a detailed run through of the endpoint, you can see the [https://developer.xero.com/documentation/api/payrollnz/payruns Xero API].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Fields ==&lt;br /&gt;
&lt;br /&gt;
:None&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Endpoints ==&lt;br /&gt;
&lt;br /&gt;
:[[Xero Payroll (UK) Endpoint: Employees|Employees]]&lt;br /&gt;
:[[Xero Payroll (UK) Endpoint: GetPayRun|GetPayRun]]&lt;br /&gt;
:[[Xero Payroll (UK) Endpoint: PayrollCalendars|PayrollCalendars]]&lt;br /&gt;
:[[Xero Payroll (UK) Endpoint: PayRuns|PayRuns]]&lt;br /&gt;
:[[Xero Payroll (UK) Endpoint: PaySlips|PaySlips]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Topics ==&lt;br /&gt;
&lt;br /&gt;
:[[Xero Payroll (UK) Models]]&lt;br /&gt;
:[[Xero Payroll (UK) Endpoints]]&lt;/div&gt;</summary>
		<author><name>Nic</name></author>
	</entry>
</feed>