<?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_%28New_Zealand%29_Endpoint%3A_GetPayRun</id>
	<title>Xero Payroll (New Zealand) Endpoint: GetPayRun - 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_%28New_Zealand%29_Endpoint%3A_GetPayRun"/>
	<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Payroll_(New_Zealand)_Endpoint:_GetPayRun&amp;action=history"/>
	<updated>2026-10-26T13:32:19Z</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_(New_Zealand)_Endpoint:_GetPayRun&amp;diff=2593&amp;oldid=prev</id>
		<title>Nic at 01:04, 19 January 2022</title>
		<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Payroll_(New_Zealand)_Endpoint:_GetPayRun&amp;diff=2593&amp;oldid=prev"/>
		<updated>2022-01-19T01:04:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:04, 18 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l81&quot;&gt;Line 81:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;paySlipID&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;paySlipID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:A [[Field Type: GUID|guid field]] that provides the [[Xero Payroll (New Zealand) Endpoint: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Payslips&lt;/del&gt;|payslip id]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:A [[Field Type: GUID|guid field]] that provides the [[Xero Payroll (New Zealand) Endpoint: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PaySlips&lt;/ins&gt;|payslip id]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;employeeID&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;employeeID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nic</name></author>
	</entry>
	<entry>
		<id>https://help.odatalink.com/index.php?title=Xero_Payroll_(New_Zealand)_Endpoint:_GetPayRun&amp;diff=2574&amp;oldid=prev</id>
		<title>Nic: Created page with &quot;== Overview ==  The Xero &#039;&#039;&#039;GetPayRun&#039;&#039;&#039; endpoint provides fields for a specific pay run.  It is a function tha...&quot;</title>
		<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Payroll_(New_Zealand)_Endpoint:_GetPayRun&amp;diff=2574&amp;oldid=prev"/>
		<updated>2022-01-19T00:17:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview ==  The Xero &amp;#039;&amp;#039;&amp;#039;GetPayRun&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php?title=Xero_Payroll_(New_Zealand)_Endpoints&quot; title=&quot;Xero Payroll (New Zealand) Endpoints&quot;&gt;endpoint&lt;/a&gt; provides fields for a specific pay run.  It is a &lt;a href=&quot;/index.php?title=Function_Endpoints&quot; title=&quot;Function Endpoints&quot;&gt;function&lt;/a&gt; tha...&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;GetPayRun&amp;#039;&amp;#039;&amp;#039; [[Xero Payroll (New Zealand) Endpoints|endpoint]] provides fields for a specific pay run.&lt;br /&gt;
&lt;br /&gt;
It is a [[Function Endpoints|function]] that accepts a series of parameters.&lt;br /&gt;
&lt;br /&gt;
You may also use the [[Xero Payroll (New Zealand) Endpoint: PayRunsExpanded|PayRunsExpanded]] which provides similar data but for all known pay runs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
The GetPayRun is a [[Function Endpoints|function]] that accepts the following parameters.&lt;br /&gt;
&lt;br /&gt;
;PayRunID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that determines the pay run for which to retrieve data.&lt;br /&gt;
:This field is mandatory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
&lt;br /&gt;
The following fields are available for the GetPayRun 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 (New Zealand) 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 (New Zealand) 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 (New Zealand) 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;
;totalStatutoryDeductions&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total statutory deductions of this payslip.&lt;br /&gt;
&lt;br /&gt;
;totalSuperannuation&lt;br /&gt;
:A [[Field Type: Decimal|decimal field]] that provides the total superannuations 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 (New Zealand) Endpoint: Employees|Employees]]&lt;br /&gt;
:[[Xero Payroll (New Zealand) Endpoint: PayrollCalendars|PayrollCalendars]]&lt;br /&gt;
:[[Xero Payroll (New Zealand) Endpoint: PayRuns|PayRuns]]&lt;br /&gt;
:[[Xero Payroll (New Zealand) Endpoint: PayRunsExpanded|PayRunsExpanded]]&lt;br /&gt;
:[[Xero Payroll (New Zealand) Endpoint: PaySlips|PaySlips]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Topics ==&lt;br /&gt;
&lt;br /&gt;
:[[Xero Payroll (New Zealand) Models]]&lt;br /&gt;
:[[Xero Payroll (New Zealand) Endpoints]]&lt;/div&gt;</summary>
		<author><name>Nic</name></author>
	</entry>
</feed>