Simple Payrun

In this example we will step through the process of creating your first pay run and reporting the results. We will create an Employer, Employee, Pay Schedule, Salary Pay Instruction, and en-queue a Pay Run Job.

The generation, maintenance and review [of the payroll entities] is managed through the RESFful API, using a combination of GET, PUT, POST, PATCH and DELETE HTTP methods.

Step 1 - Create an Employer

The initial step when creating a new payroll is the generation of the Employer entity. An employer typically represents a single PAYE scheme and includes the necessary values needed to make Real Time Information (RTI) submissions.

You can specify your own unique identity values by using PUT instead of POST. Unique Ids should only contain letters and numbers.

curl -X POST \
  'https://api.test.payrun.io/Employers' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<Employer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EffectiveDate>2018-04-01</EffectiveDate>
  <Revision>0</Revision>
  <Name>Example Employer</Name>
  <Region>NotSet</Region>
  <Territory>UnitedKingdom</Territory>
  <RuleExclusions>None</RuleExclusions>
  <ClaimEmploymentAllowance>true</ClaimEmploymentAllowance>
  <ClaimSmallEmployerRelief>true</ClaimSmallEmployerRelief>
  <ApprenticeshipLevyAllowance>0</ApprenticeshipLevyAllowance>
  <HmrcSettings>
    <TaxOfficeNumber>451</TaxOfficeNumber>
    <TaxOfficeReference>A451</TaxOfficeReference>
    <AccountingOfficeRef>123PA1234567X</AccountingOfficeRef>
    <Sender>Employer</Sender>
    <SenderId>ISV451</SenderId>
    <Password>testing1</Password>
    <ContactFirstName>John</ContactFirstName>
    <ContactLastName>O'\''Dare</ContactLastName>
    <ContactEmail>jodare@test.com</ContactEmail>
    <ContactTelephone>01274 987654</ContactTelephone>
    <ContactFax>01274 987655</ContactFax>
  </HmrcSettings>
  <BankAccount>
    <AccountName>The Employer</AccountName>
    <AccountNumber>12345678</AccountNumber>
    <SortCode>18-00-21</SortCode>
  </BankAccount>
</Employer>'
curl -X POST \
  'https://api.test.payrun.io/Employers' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "Employer": {
    "EffectiveDate": "2018-04-01",
    "Revision": "0",
    "Name": "Example Employer",
    "Region": "NotSet",
    "Territory": "UnitedKingdom",
    "RuleExclusions": "None",
    "ClaimEmploymentAllowance": "true",
    "ClaimSmallEmployerRelief": "true",
    "ApprenticeshipLevyAllowance": "0",
    "HmrcSettings": {
      "TaxOfficeNumber": "451",
      "TaxOfficeReference": "A451",
      "AccountingOfficeRef": "123PA1234567X",
      "Sender": "Employer",
      "SenderId": "ISV451",
      "Password": "testing1",
      "ContactFirstName": "John",
      "ContactLastName": "O'\''Dare",
      "ContactEmail": "jodare@test.com",
      "ContactTelephone": "01274 987654",
      "ContactFax": "01274 987655"
    },
    "BankAccount": {
      "AccountName": "The Employer",
      "AccountNumber": "12345678",
      "SortCode": "18-00-21"
    }
  }
}'

Step 2 - Create a Pay Schedule

A pay schedule represents a grouping of employees under a common pay frequency; an employer can have many pay schedules. In this example we create a schedule entitled "My Monthly" with a monthly payment frequency.

curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/PaySchedules' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<PaySchedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Name>My Monthly</Name>
  <PayFrequency>Monthly</PayFrequency>
</PaySchedule>'
curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/PaySchedules' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "PaySchedule": {
    "Name": "My Monthly",
    "PayFrequency": "Monthly"
  }
}'

Step 3 - Create an Employee

The employee object holds (and links to) the necessary data to calculate and report within the payroll. You can have an unlimited number of employees under an employer, but each can only be assigned to a single pay schedule at any given time. In this example we create a single employee named Terry Tester and set up his details with dummy data.

curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/Employees' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<Employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EffectiveDate>2018-04-01</EffectiveDate>
  <Revision>0</Revision>
  <Code>EMP001</Code>
  <FirstName>Terry</FirstName>
  <LastName>Tester</LastName>
  <DateOfBirth>1960-01-01</DateOfBirth>
  <Gender>Male</Gender>
  <NicLiability>IsFullyLiable</NicLiability>
  <Region>England</Region>
  <Territory>UnitedKingdom</Territory>
  <PaySchedule href="/Employer/ER001/PaySchedule/SCH001" />
  <StartDate>2018-01-01</StartDate>
  <StarterDeclaration>A</StarterDeclaration>
  <LeavingDate xsi:nil="true" />
  <LeaverReason xsi:nil="true" />
  <RuleExclusions>None</RuleExclusions>
  <WorkingWeek>AllWeekDays</WorkingWeek>
  <Address>
    <Address1>House</Address1>
    <Address2>Street</Address2>
    <Address3>Town</Address3>
    <Address4>County</Address4>
    <Postcode>TE1 1ST</Postcode>
    <Country>United Kingdom</Country>
  </Address>
  <HoursPerWeek>0</HoursPerWeek>
  <Seconded>NotSet</Seconded>
  <EEACitizen>false</EEACitizen>
  <EPM6>false</EPM6>
  <PaymentToANonIndividual>false</PaymentToANonIndividual>
  <IrregularEmployment>false</IrregularEmployment>
  <OnStrike>false</OnStrike>
  <PaymentMethod>NotSet</PaymentMethod>
  <IsAgencyWorker>false</IsAgencyWorker>
  <AEAssessmentOverride>None</AEAssessmentOverride>
</Employee>'
curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/Employees' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "Employee": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
    "EffectiveDate": "2018-04-01",
    "Revision": "0",
    "Code": "EMP001",
    "FirstName": "Terry",
    "LastName": "Tester",
    "DateOfBirth": "1960-01-01",
    "Gender": "Male",
    "NicLiability": "IsFullyLiable",
    "Region": "England",
    "Territory": "UnitedKingdom",
    "PaySchedule": {
      "@href": "/Employer/ER001/PaySchedule/SCH001"
    },
    "StartDate": "2018-01-01",
    "StarterDeclaration": "A",
    "LeavingDate": null,
    "LeaverReason": null,
    "RuleExclusions": "None",
    "WorkingWeek": "AllWeekDays",
    "Address": {
      "Address1": "House",
      "Address2": "Street",
      "Address3": "Town",
      "Address4": "County",
      "Postcode": "TE1 1ST",
      "Country": "United Kingdom"
    },
    "HoursPerWeek": "0",
    "Seconded": "NotSet",
    "EEACitizen": "false",
    "EPM6": "false",
    "PaymentToANonIndividual": "false",
    "IrregularEmployment": "false",
    "OnStrike": "false",
    "PaymentMethod": "NotSet",
    "IsAgencyWorker": "false",
    "AEAssessmentOverride": "None"
  }
}'

Step 4 - Create a Pay Instruction

Pay Instructions describe the payments and deductions for the parent employee. In this example we will give our employee a salary instruction with an annual salary of £25,000.00.

curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/Employee/EE001/PayInstructions' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<SalaryPayInstruction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <StartDate>2018-04-01</StartDate>
  <EndDate xsi:nil="true" />
  <AnnualSalary>25000.00</AnnualSalary>
  <ProRataMethod>NotSet</ProRataMethod>
</SalaryPayInstruction>'
curl -X POST \
  'https://api.test.payrun.io/Employer/ER001/Employee/EE001/PayInstructions' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "SalaryPayInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "StartDate": "2018-04-01",
    "EndDate": null,
    "AnnualSalary": "25000.00",
    "ProRataMethod": "NotSet"
  }
}'

Step 5 - Create a Pay Run Job

The necessary data elements are now in-place. We can finally perform a pay run and calculate the employee's payments and deductions. Pay runs are calculated asynchronously via a background job. To create pay runs, you need to en-queue a pay run job instruction.

For this example we will create a Pay Run Instruction for the pay schedule and the first month of the 2016 financial tax year.

Successful job creation returns a link that points to the job information. You can query the job information to monitor its progress.

In order to monitor the job progress, you will need to capture the Job Identity from the creation response.

e.g. <Link title="Pay Run: [2016-04-30]" href="/jobs/payruns/88738be7-e499-48ba-a4ba-c3467aaafd9b/info" />

Job identity equals: 88738be7-e499-48ba-a4ba-c3467aaafd9b

curl -X POST \
  'https://api.test.payrun.io/jobs/payruns' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<PayRunJobInstruction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <HoldingDate xsi:nil="true" />
  <PaymentDate>2018-04-30</PaymentDate>
  <StartDate>2018-04-01</StartDate>
  <EndDate>2018-04-30</EndDate>
  <PaySchedule href="/Employer/ER001/PaySchedule/SCH001" />
  <IsSupplementary>false</IsSupplementary>
</PayRunJobInstruction>'
curl -X POST \
  'https://api.test.payrun.io/jobs/payruns' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "PayRunJobInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "HoldingDate": null,
    "PaymentDate": "2018-04-30",
    "StartDate": "2018-04-01",
    "EndDate": "2018-04-30",
    "PaySchedule": {
      "@href": "/Employer/ER001/PaySchedule/SCH001"
    },
    "IsSupplementary": "false",
    "Employees": null
  }
}'

Step 6 - Query Pay Run Job Status

In this step we monitor the pay run job progress. Once the job status is "success" we can examine the resulting Pay Run object.

curl -X GET \
  'https://api.test.payrun.io/jobs/payruns/88738be7-e499-48ba-a4ba-c3467aaafd9b/info' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml'
curl -X GET \
  'https://api.test.payrun.io/jobs/payruns/88738be7-e499-48ba-a4ba-c3467aaafd9b/info' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json'

Response Example

<?xml version="1.0"?>
<JobInfo>
    <JobId>88738be7-e499-48ba-a4ba-c3467aaafd9b</JobId>
    <Created>2018-11-23T17:45:04.197</Created>
    <LastUpdated>2018-11-23T17:45:06.673</LastUpdated>
    <JobType>PayRunJob</JobType>
    <JobStatus>Success</JobStatus>
    <Progress>1.000</Progress>
    <Errors />
</JobInfo>
{
	"JobInfo": {
		"JobId": "88738be7-e499-48ba-a4ba-c3467aaafd9b",
		"Created": "2018-11-23T17:45:04.197",
		"LastUpdated": "2018-11-23T17:45:06.673",
        "JobType": "PayRunJob",
		"JobStatus": "Success",
		"Progress": "1.000",
		"Errors": null,
	}
}

Step 7 - Get the Employee Payslip

Now the pay run job is complete, we can access the Payslip report for our employee.

curl -X GET \
  'https://api.test.payrun.io/report/PAYSLIP3/run?EmployerKey=ER001&PayScheduleKey=SCH001&TaxYear=2018&PaymentDate=2018-04-30&EmployeeCodes=EMP001' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml'
curl -X GET \
  'https://api.test.payrun.io/report/PAYSLIP3/run?EmployerKey=ER001&PayScheduleKey=SCH001&TaxYear=2018&PaymentDate=2018-04-30&EmployeeCodes=EMP001' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json'

Response Example

<?xml version="1.0"?>
<Payslip3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Generated="2018-11-29T12:13:18" Duration="00:00:00.0397488" TotalIndexCount="1">
    <Parameters>
        <Employer>ER001</Employer>
        <PaySchedule>SCH001 [My Monthly - Monthly]</PaySchedule>
        <TaxYear>2018</TaxYear>
        <EmployeeCodes>EMP001</EmployeeCodes>
    </Parameters>
    <Employer>
        <Name>Example Employer</Name>
        <PayeRef>451/A451</PayeRef>
    </Employer>
    <Employee Index="1" Code="EMP001" Key="EE001" Name="Terry Tester" PayDate="2018-04-30" TaxPeriod="1">
        <Link href="/Employer/ER001/Employee/EE001/2018-04-01" />
        <NiNumber></NiNumber>
        <PaymentMethod>NotSet</PaymentMethod>
        <TaxCode>1185L</TaxCode>
        <NiLetter>A</NiLetter>
        <Payments>
            <PayLine>
                <Description>Basic Pay</Description>
                <Value>2083.34</Value>
                <Rate>2083.34</Rate>
                <Units>1.00</Units>
                <UoM>Month</UoM>
                <YTD>2083.34</YTD>
            </PayLine>
        </Payments>
        <Deductions>
            <PayLine>
                <Description>Tax</Description>
                <Value>-219.00</Value>
                <YTD>219.00</YTD>
            </PayLine>
            <PayLine>
                <Description>National Insurance</Description>
                <Value>-165.76</Value>
                <YTD>165.76</YTD>
            </PayLine>
        </Deductions>
        <PayRunTotals>
            <NiablePay>2083.34</NiablePay>
            <TaxablePay>2083.34</TaxablePay>
            <EENI>165.76</EENI>
            <ERNI>190.62</ERNI>
            <Tax>219.00</Tax>
            <EEPension>0.00</EEPension>
            <ERPension>0.00</ERPension>
            <GrossPayments>2083.34</GrossPayments>
            <GrossDeductions>-384.76</GrossDeductions>
            <Net>1698.58</Net>
        </PayRunTotals>
        <YearToDate>
            <NiablePay>2083.34</NiablePay>
            <TaxablePay>2083.34</TaxablePay>
            <EENI>165.76</EENI>
            <ERNI>190.62</ERNI>
            <Tax>219.00</Tax>
            <EEPension>0.00</EEPension>
            <ERPension>0.00</ERPension>
            <GrossPayments>2083.34</GrossPayments>
            <GrossDeductions>-384.76</GrossDeductions>
            <Net>1698.58</Net>
        </YearToDate>
        <PreviousEmployment>
            <TaxablePay>0.00</TaxablePay>
            <Tax>0.00</Tax>
        </PreviousEmployment>
    </Employee>
</Payslip3>
{
    "Payslip3": {
        "@Generated": "2018-11-29T12:12:38",
        "@Duration": "00:00:00.0372473",
        "@TotalIndexCount": "1",
        "Parameters": {
            "Employer": "ER001",
            "PaySchedule": "SCH001 [My Monthly - Monthly]",
            "TaxYear": "2018",
            "EmployeeCodes": "EMP001"
        },
        "Employer": {
            "Name": "Example Employer",
            "PayeRef": "451/A451"
        },
        "Employee": [
            {
                "@Index": "1",
                "@Code": "EMP001",
                "@Key": "EE001",
                "@Name": "Terry Tester",
                "@PayDate": "2018-04-30",
                "@TaxPeriod": "1",
                "Link": {
                    "@href": "/Employer/ER001/Employee/EE001/2018-04-01"
                },
                "NiNumber": "",
                "PaymentMethod": "NotSet",
                "TaxCode": "1185L",
                "NiLetter": "A",
                "Payments": {
                    "PayLine": [
                        {
                            "Description": "Basic Pay",
                            "Value": "2083.34",
                            "Rate": "2083.34",
                            "Units": "1.00",
                            "UoM": "Month",
                            "YTD": "2083.34"
                        }
                    ]
                },
                "Deductions": {
                    "PayLine": [
                        {
                            "Description": "Tax",
                            "Value": "-219.00",
                            "YTD": "219.00"
                        },
                        {
                            "Description": "National Insurance",
                            "Value": "-165.76",
                            "YTD": "165.76"
                        }
                    ]
                },
                "PayRunTotals": {
                    "NiablePay": "2083.34",
                    "TaxablePay": "2083.34",
                    "EENI": "165.76",
                    "ERNI": "190.62",
                    "Tax": "219.00",
                    "EEPension": "0.00",
                    "ERPension": "0.00",
                    "GrossPayments": "2083.34",
                    "GrossDeductions": "-384.76",
                    "Net": "1698.58"
                },
                "YearToDate": {
                    "NiablePay": "2083.34",
                    "TaxablePay": "2083.34",
                    "EENI": "165.76",
                    "ERNI": "190.62",
                    "Tax": "219.00",
                    "EEPension": "0.00",
                    "ERPension": "0.00",
                    "GrossPayments": "2083.34",
                    "GrossDeductions": "-384.76",
                    "Net": "1698.58"
                },
                "PreviousEmployment": {
                    "TaxablePay": "0.00",
                    "Tax": "0.00"
                }
            }
        ]
    }
}

Step 8 - Review Calculation Commentary

Another artefact of the pay run is the calculation explanation, referred to as the employee commentary. This provides a running commentary of the actions taken through out the pay run calculation process.

curl -X GET \
  'https://api.test.payrun.io/Employer/ER001/Employee/EE001/Commentary/C001' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml'
curl -X GET \
  'https://api.test.payrun.io/Employer/ER001/Employee/EE001/Commentary/C001' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json'

Response Example

<?xml version="1.0"?>
<Commentary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Created>2018-11-29T12:12:05.6042303</Created>
    <Detail>12:12:05.588 [INFO ] -- Begin Calculation
12:12:05.588 [INFO ] --   Employee: Terry, Tester
12:12:05.588 [INFO ] --   Tax Period: M01-2018/19
12:12:05.588 [INFO ] --   Pay Day: 2018-04-30 
12:12:05.588 [INFO ] --   Pay Frequency: Monthly
12:12:05.588 [INFO ] --   Start Pre-calculations Rules
12:12:05.588 [DEBUG] --     Rule matched: Tax &gt; Emergency Tax pay instruction
12:12:05.588 [DEBUG] --       New Tax instruction created with tax code: 1185L
12:12:05.588 [DEBUG] --     Rule matched: NI &gt; Create Missing NI pay instruction
12:12:05.604 [DEBUG] --       New NI instruction for letter A created.
12:12:05.604 [INFO ] --     Total Rules: 17 - Excluded: 0 - Matched: 2
12:12:05.604 [INFO ] --   End Pre-calculations Rules
12:12:05.604 [INFO ] --   Begin Salary Calculator
12:12:05.604 [INFO ] --     Annual Salary: 25,000.00
12:12:05.604 [INFO ] --     Effective: Sunday, April 1, 2018 =&gt; 
12:12:05.604 [INFO ] --     Rounding Option: PennyUp
12:12:05.604 [DEBUG] --       Period Pay: PENNYUP(Annual Salary / Pay Frequency Multiplier)
12:12:05.604 [INFO ] --       Period Pay: PENNYUP(25,000.00 / 12) = 2,083.34
12:12:05.604 [INFO ] --     Period Pay: 2,083.34
12:12:05.604 [INFO ] --   End Salary Calculator
12:12:05.604 [INFO ] --   Begin Tax Calculator
12:12:05.604 [INFO ] --     Tax Code: 1185L
12:12:05.604 [INFO ] --     Tax Basis: Cumulative
12:12:05.604 [INFO ] --     Taxable Gross: 2,083.34
12:12:05.604 [INFO ] --       Taxable Pay: 2,083.34
12:12:05.604 [INFO ] --       Taxable Benefits: 0.00
12:12:05.604 [INFO ] --       Taxable Deduction: 0.00
12:12:05.604 [INFO ] --       Previous Pay: 0.00
12:12:05.604 [INFO ] --       Previous Tax: 0.00
12:12:05.604 [INFO ] --       Total Tax Year Pay: 2,083.34
12:12:05.604 [INFO ] --       Freepay: 988.26
12:12:05.604 [DEBUG] --       Taxable Pay: (Total Pay - Freepay)
12:12:05.604 [DEBUG] --       Taxable Pay: (2,083.34 - 988.26) = 1,095.08
12:12:05.604 [DEBUG] --         Tax Bands:
12:12:05.604 [DEBUG] --           | Name                     | Lower           | Upper           | Rate %          |
12:12:05.604 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |
12:12:05.604 [DEBUG] --           | Basic Rate               | 0.00            | 34,500.00       | 20.00 %         |
12:12:05.604 [DEBUG] --           | Higher Rate              | 34,500.00       | 150,000.00      | 40.00 %         |
12:12:05.604 [DEBUG] --           | Additional Higher Rate   | 150,000.00      |                 | 45.00 %         |
12:12:05.604 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |
12:12:05.604 [INFO ] --       Calculate untaxed taxable period pay within bands
12:12:05.604 [INFO ] --         Basic Rate               : (0.00 -&gt; 34,500.00) = 1,095.00
12:12:05.604 [INFO ] --         Higher Rate              : (34,500.00 -&gt; 150,000.00) = 0.00
12:12:05.604 [INFO ] --         Additional Higher Rate   : (150,000.00 -&gt; ) = 0.00
12:12:05.604 [INFO ] --       Calculate tax by band
12:12:05.604 [DEBUG] --         Basic Rate               : (1,095.00 * 20.00 %) = 219.0000
12:12:05.604 [DEBUG] --         Higher Rate              : (0.00 * 40.00 %) = 0.0000
12:12:05.604 [DEBUG] --         Additional Higher Rate   : (0.00 * 45.00 %) = 0.0000
12:12:05.604 [INFO ] --       Total Tax: SUM(219.0000, 0.0000, 0.0000) = ROUNDPENNYDOWN(219.0000) = 219.00
12:12:05.604 [INFO ] --     Total Period Tax  :  219.00
12:12:05.604 [INFO ] --   End Tax Calculator
12:12:05.604 [INFO ] --   Begin National Insurance Calculator
12:12:05.604 [INFO ] --     Pay Frequency: Monthly
12:12:05.604 [INFO ] --     Period: M01-2018/19
12:12:05.604 [INFO ] --     Niable Pay: 2,083.34
12:12:05.604 [INFO ] --     NI Letter: A
12:12:05.604 [DEBUG] --       NI Bandings
12:12:05.604 [DEBUG] --         | Name         | Lower        | Upper        | EE %         | ER %         | EE Rebate %  | ER Rebate %  |
12:12:05.604 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |
12:12:05.604 [DEBUG] --         | Below LEL    | 0.00         | 503.00       | 0.00 %       | 0.00 %       | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         | LEL to PT    | 503.00       | 702.00       | 0.00 %       | 0.00 %       | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         | PT to ST     | 702.00       | 702.00       | 12.00 %      | 0.00 %       | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         | ST to UST    | 702.00       | 3,863.00     | 12.00 %      | 13.80 %      | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         | UST to UEL   | 3,863.00     | 3,863.00     | 2.00 %       | 13.80 %      | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         | Above UEL    | 3,863.00     |              | 2.00 %       | 13.80 %      | 0.00 %       | 0.00 %       |
12:12:05.604 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |
12:12:05.604 [INFO ] --     Calculate Niable pay within bands
12:12:05.604 [INFO ] --       Below LEL  : (0.00 -&gt; 503.00) = 503.00
12:12:05.604 [INFO ] --       LEL to PT  : (503.00 -&gt; 702.00) = 199.00
12:12:05.604 [INFO ] --       PT to ST   : (702.00 -&gt; 702.00) = 0.00
12:12:05.604 [INFO ] --       ST to UST  : (702.00 -&gt; 3,863.00) = 1,381.34
12:12:05.604 [INFO ] --       UST to UEL : (3,863.00 -&gt; 3,863.00) = 0.00
12:12:05.604 [INFO ] --       Above UEL  : (3,863.00 -&gt; ) = 0.00
12:12:05.604 [INFO ] --     Calculate Employees NIC
12:12:05.604 [DEBUG] --       LEL to PT   : NIROUND(199.00 * 0.00 %) = 0.00
12:12:05.604 [DEBUG] --       PT to ST    : NIROUND(0.00 * 12.00 %) = 0.00
12:12:05.604 [DEBUG] --       ST to UST   : NIROUND(1,381.34 * 12.00 %) = 165.76
12:12:05.604 [DEBUG] --       UST to UEL  : NIROUND(0.00 * 2.00 %) = 0.00
12:12:05.604 [DEBUG] --       Above UEL   : NIROUND(0.00 * 2.00 %) = 0.00
12:12:05.604 [INFO ] --     Employee NIC: SUM(0.00, 0.00, 165.76, 0.00, 0.00) = -165.76
12:12:05.604 [INFO ] --     Employee NIC:  = -165.76
12:12:05.604 [INFO ] --     Calculate Employers NIC
12:12:05.604 [DEBUG] --       LEL to PT   : NIROUND(199.00 * 0.00 %) = 0.00
12:12:05.604 [DEBUG] --       PT to ST    : NIROUND(0.00 * 0.00 %) = 0.00
12:12:05.604 [DEBUG] --       ST to UST   : NIROUND(1,381.34 * 13.80 %) = 190.62
12:12:05.604 [DEBUG] --       UST to UEL  : NIROUND(0.00 * 13.80 %) = 0.00
12:12:05.604 [DEBUG] --       Above UEL   : NIROUND(0.00 * 13.80 %) = 0.00
12:12:05.604 [INFO ] --     Employer NIC: SUM(0.00, 0.00, 190.62, 0.00, 0.00) = -190.62
12:12:05.604 [INFO ] --     Employer NIC: = -190.62
12:12:05.604 [INFO ] --   End National Insurance Calculator
12:12:05.604 [INFO ] --   Begin Auto Enrolment Assessment
12:12:05.604 [DEBUG] --     Step 1 - Assert auto enrolment is configured
12:12:05.604 [DEBUG] --       Employer revision exists
12:12:05.604 [DEBUG] --       No employer auto enrolment settings found
12:12:05.604 [DEBUG] --       No assessment can be made
12:12:05.604 [INFO ] --   End Auto Enrolment Assessment
12:12:05.604 [INFO ] --     Payslip
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --       | Payments                                   | Amount £     | Deductions                                 | Amount £     |
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --       | Basic Pay                                  | 2,083.34     | Tax                                        | -219.00      |
12:12:05.604 [INFO ] --       |                                            |              | National Insurance                         | -165.76      |
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --       | NET PAY                                    | 1,698.58     |
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --       | This Period                                | Amount £     | Year to Date                               | Amount £     |
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --       | Employer NI                                | -190.62      | Employer NI                                | -190.62      |
12:12:05.604 [INFO ] --       | Employee NI                                | -165.76      | Employee NI                                | -165.76      |
12:12:05.604 [INFO ] --       | Niable Pay                                 | 2,083.34     | Niable Pay                                 | 2,083.34     |
12:12:05.604 [INFO ] --       | Taxable Pay                                | 2,083.34     | Taxable Pay                                | 2,083.34     |
12:12:05.604 [INFO ] --       | Tax Paid                                   | -219.00      | Tax Paid                                   | -219.00      |
12:12:05.604 [INFO ] --       | Taxable Benefits                           | 0.00         | Taxable Benefits                           | 0.00         |
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |
12:12:05.604 [INFO ] --     Payslip Report : /Report/PAYSLIP3/run?EmployerKey=ER001&amp;TaxYear=2018&amp;PayScheduleKey=SCH001&amp;PaymentDate=2018-04-30&amp;EmployeeCodes=EMP001
12:12:05.604 [INFO ] --     PDF Payslip    : /Report/PAYSLIP3/run?EmployerKey=ER001&amp;TaxYear=2018&amp;PayScheduleKey=SCH001&amp;PaymentDate=2018-04-30&amp;EmployeeCodes=EMP001&amp;TransformDefinitionKey=Payslip-A5-Basic-Pdf
12:12:05.604 [INFO ] -- End Calculation</Detail>
</Commentary>
{
    "Commentary": {
        "Created": "2018-11-29T12:12:05.6042303",
        "Detail": "12:12:05.588 [INFO ] -- Begin Calculation\r\n
12:12:05.588 [INFO ] --   Employee: Terry, Tester\r\n
12:12:05.588 [INFO ] --   Tax Period: M01-2018/19\r\n
12:12:05.588 [INFO ] --   Pay Day: 2018-04-30 \r\n
12:12:05.588 [INFO ] --   Pay Frequency: Monthly\r\n
12:12:05.588 [INFO ] --   Start Pre-calculations Rules\r\n
12:12:05.588 [DEBUG] --     Rule matched: Tax > Emergency Tax pay instruction\r\n
12:12:05.588 [DEBUG] --       New Tax instruction created with tax code: 1185L\r\n
12:12:05.588 [DEBUG] --     Rule matched: NI > Create Missing NI pay instruction\r\n
12:12:05.604 [DEBUG] --       New NI instruction for letter A created.\r\n
12:12:05.604 [INFO ] --     Total Rules: 17 - Excluded: 0 - Matched: 2\r\n
12:12:05.604 [INFO ] --   End Pre-calculations Rules\r\n
12:12:05.604 [INFO ] --   Begin Salary Calculator\r\n
12:12:05.604 [INFO ] --     Annual Salary: 25,000.00\r\n
12:12:05.604 [INFO ] --     Effective: Sunday, April 1, 2018 => \r\n
12:12:05.604 [INFO ] --     Rounding Option: PennyUp\r\n
12:12:05.604 [DEBUG] --       Period Pay: PENNYUP(Annual Salary / Pay Frequency Multiplier)\r\n
12:12:05.604 [INFO ] --       Period Pay: PENNYUP(25,000.00 / 12) = 2,083.34\r\n
12:12:05.604 [INFO ] --     Period Pay: 2,083.34\r\n
12:12:05.604 [INFO ] --   End Salary Calculator\r\n
12:12:05.604 [INFO ] --   Begin Tax Calculator\r\n
12:12:05.604 [INFO ] --     Tax Code: 1185L\r\n
12:12:05.604 [INFO ] --     Tax Basis: Cumulative\r\n
12:12:05.604 [INFO ] --     Taxable Gross: 2,083.34\r\n
12:12:05.604 [INFO ] --       Taxable Pay: 2,083.34\r\n
12:12:05.604 [INFO ] --       Taxable Benefits: 0.00\r\n
12:12:05.604 [INFO ] --       Taxable Deduction: 0.00\r\n
12:12:05.604 [INFO ] --       Previous Pay: 0.00\r\n
12:12:05.604 [INFO ] --       Previous Tax: 0.00\r\n
12:12:05.604 [INFO ] --       Total Tax Year Pay: 2,083.34\r\n
12:12:05.604 [INFO ] --       Freepay: 988.26\r\n
12:12:05.604 [DEBUG] --       Taxable Pay: (Total Pay - Freepay)\r\n
12:12:05.604 [DEBUG] --       Taxable Pay: (2,083.34 - 988.26) = 1,095.08\r\n
12:12:05.604 [DEBUG] --         Tax Bands:\r\n
12:12:05.604 [DEBUG] --           | Name                     | Lower           | Upper           | Rate %          |\r\n
12:12:05.604 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |\r\n
12:12:05.604 [DEBUG] --           | Basic Rate               | 0.00            | 34,500.00       | 20.00 %         |\r\n
12:12:05.604 [DEBUG] --           | Higher Rate              | 34,500.00       | 150,000.00      | 40.00 %         |\r\n
12:12:05.604 [DEBUG] --           | Additional Higher Rate   | 150,000.00      |                 | 45.00 %         |\r\n
12:12:05.604 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |\r\n
12:12:05.604 [INFO ] --       Calculate untaxed taxable period pay within bands\r\n
12:12:05.604 [INFO ] --         Basic Rate               : (0.00 -> 34,500.00) = 1,095.00\r\n
12:12:05.604 [INFO ] --         Higher Rate              : (34,500.00 -> 150,000.00) = 0.00\r\n
12:12:05.604 [INFO ] --         Additional Higher Rate   : (150,000.00 -> ) = 0.00\r\n
12:12:05.604 [INFO ] --       Calculate tax by band\r\n
12:12:05.604 [DEBUG] --         Basic Rate               : (1,095.00 * 20.00 %) = 219.0000\r\n
12:12:05.604 [DEBUG] --         Higher Rate              : (0.00 * 40.00 %) = 0.0000\r\n
12:12:05.604 [DEBUG] --         Additional Higher Rate   : (0.00 * 45.00 %) = 0.0000\r\n
12:12:05.604 [INFO ] --       Total Tax: SUM(219.0000, 0.0000, 0.0000) = ROUNDPENNYDOWN(219.0000) = 219.00\r\n
12:12:05.604 [INFO ] --     Total Period Tax  :  219.00\r\n
12:12:05.604 [INFO ] --   End Tax Calculator\r\n
12:12:05.604 [INFO ] --   Begin National Insurance Calculator\r\n
12:12:05.604 [INFO ] --     Pay Frequency: Monthly\r\n
12:12:05.604 [INFO ] --     Period: M01-2018/19\r\n
12:12:05.604 [INFO ] --     Niable Pay: 2,083.34\r\n
12:12:05.604 [INFO ] --     NI Letter: A\r\n
12:12:05.604 [DEBUG] --       NI Bandings\r\n
12:12:05.604 [DEBUG] --         | Name         | Lower        | Upper        | EE %         | ER %         | EE Rebate %  | ER Rebate %  |\r\n
12:12:05.604 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |\r\n
12:12:05.604 [DEBUG] --         | Below LEL    | 0.00         | 503.00       | 0.00 %       | 0.00 %       | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         | LEL to PT    | 503.00       | 702.00       | 0.00 %       | 0.00 %       | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         | PT to ST     | 702.00       | 702.00       | 12.00 %      | 0.00 %       | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         | ST to UST    | 702.00       | 3,863.00     | 12.00 %      | 13.80 %      | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         | UST to UEL   | 3,863.00     | 3,863.00     | 2.00 %       | 13.80 %      | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         | Above UEL    | 3,863.00     |              | 2.00 %       | 13.80 %      | 0.00 %       | 0.00 %       |\r\n
12:12:05.604 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |\r\n
12:12:05.604 [INFO ] --     Calculate Niable pay within bands\r\n
12:12:05.604 [INFO ] --       Below LEL  : (0.00 -> 503.00) = 503.00\r\n
12:12:05.604 [INFO ] --       LEL to PT  : (503.00 -> 702.00) = 199.00\r\n
12:12:05.604 [INFO ] --       PT to ST   : (702.00 -> 702.00) = 0.00\r\n
12:12:05.604 [INFO ] --       ST to UST  : (702.00 -> 3,863.00) = 1,381.34\r\n
12:12:05.604 [INFO ] --       UST to UEL : (3,863.00 -> 3,863.00) = 0.00\r\n
12:12:05.604 [INFO ] --       Above UEL  : (3,863.00 -> ) = 0.00\r\n
12:12:05.604 [INFO ] --     Calculate Employees NIC\r\n
12:12:05.604 [DEBUG] --       LEL to PT   : NIROUND(199.00 * 0.00 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       PT to ST    : NIROUND(0.00 * 12.00 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       ST to UST   : NIROUND(1,381.34 * 12.00 %) = 165.76\r\n
12:12:05.604 [DEBUG] --       UST to UEL  : NIROUND(0.00 * 2.00 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       Above UEL   : NIROUND(0.00 * 2.00 %) = 0.00\r\n
12:12:05.604 [INFO ] --     Employee NIC: SUM(0.00, 0.00, 165.76, 0.00, 0.00) = -165.76\r\n
12:12:05.604 [INFO ] --     Employee NIC:  = -165.76\r\n
12:12:05.604 [INFO ] --     Calculate Employers NIC\r\n
12:12:05.604 [DEBUG] --       LEL to PT   : NIROUND(199.00 * 0.00 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       PT to ST    : NIROUND(0.00 * 0.00 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       ST to UST   : NIROUND(1,381.34 * 13.80 %) = 190.62\r\n
12:12:05.604 [DEBUG] --       UST to UEL  : NIROUND(0.00 * 13.80 %) = 0.00\r\n
12:12:05.604 [DEBUG] --       Above UEL   : NIROUND(0.00 * 13.80 %) = 0.00\r\n
12:12:05.604 [INFO ] --     Employer NIC: SUM(0.00, 0.00, 190.62, 0.00, 0.00) = -190.62\r\n
12:12:05.604 [INFO ] --     Employer NIC: = -190.62\r\n
12:12:05.604 [INFO ] --   End National Insurance Calculator\r\n
12:12:05.604 [INFO ] --   Begin Auto Enrolment Assessment\r\n
12:12:05.604 [DEBUG] --     Step 1 - Assert auto enrolment is configured\r\n
12:12:05.604 [DEBUG] --       Employer revision exists\r\n
12:12:05.604 [DEBUG] --       No employer auto enrolment settings found\r\n
12:12:05.604 [DEBUG] --       No assessment can be made\r\n
12:12:05.604 [INFO ] --   End Auto Enrolment Assessment\r\n
12:12:05.604 [INFO ] --     Payslip\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --       | Payments                                   | Amount £     | Deductions                                 | Amount £     |\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --       | Basic Pay                                  | 2,083.34     | Tax                                        | -219.00      |\r\n
12:12:05.604 [INFO ] --       |                                            |              | National Insurance                         | -165.76      |\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --       | NET PAY                                    | 1,698.58     |\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --       | This Period                                | Amount £     | Year to Date                               | Amount £     |\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --       | Employer NI                                | -190.62      | Employer NI                                | -190.62      |\r\n
12:12:05.604 [INFO ] --       | Employee NI                                | -165.76      | Employee NI                                | -165.76      |\r\n
12:12:05.604 [INFO ] --       | Niable Pay                                 | 2,083.34     | Niable Pay                                 | 2,083.34     |\r\n
12:12:05.604 [INFO ] --       | Taxable Pay                                | 2,083.34     | Taxable Pay                                | 2,083.34     |\r\n
12:12:05.604 [INFO ] --       | Tax Paid                                   | -219.00      | Tax Paid                                   | -219.00      |\r\n
12:12:05.604 [INFO ] --       | Taxable Benefits                           | 0.00         | Taxable Benefits                           | 0.00         |\r\n
12:12:05.604 [INFO ] --       |------------------------------------------- |------------- |------------------------------------------- |------------- |\r\n
12:12:05.604 [INFO ] --     Payslip Report : /Report/PAYSLIP3/run?EmployerKey=ER001&TaxYear=2018&PayScheduleKey=SCH001&PaymentDate=2018-04-30&EmployeeCodes=EMP001\r\n
12:12:05.604 [INFO ] --     PDF Payslip    : /Report/PAYSLIP3/run?EmployerKey=ER001&TaxYear=2018&PayScheduleKey=SCH001&PaymentDate=2018-04-30&EmployeeCodes=EMP001&TransformDefinitionKey=Payslip-A5-Basic-Pdf\r\n
12:12:05.604 [INFO ] -- End Calculation"
    }
}

Step 9 - Create RTI FPS submission Job

Now we are happy that the pay run is correct and there are no more changes for this tax period, it is time to submit the Real Time Information (RTI) Full Payment Submission (FPS).

Once again this process is performed asynchronously via a background job. You en-queue a FPS job by inserting a RTI Job Instruction.

RTI job instructions give you ability to generate the submission documents but not send them. This allows for the user to check the figures before they are submitted. Control of the generation and transmission is accomplished using the "Generate" and "Transmit" flags within the RTI Job instruction item.

curl -X POST \
  'https://api.test.payrun.io/Jobs/rti' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml' \
  -d '<?xml version="1.0"?>
<RtiJobInstruction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <HoldingDate xsi:nil="true" />
  <RtiType>FPS</RtiType>
  <Generate>true</Generate>
  <Transmit>true</Transmit>
  <TaxYear>2018</TaxYear>
  <Employer href="/Employer/ER001" />
  <Timestamp>2018-04-30T00:00:00</Timestamp>
  <PaySchedule href="/Employer/ER001/PaySchedule/SCH001" />
  <PaymentDate>2018-04-30</PaymentDate>
  <LateReason xsi:nil="true" />
</RtiJobInstruction>'
curl -X POST \
  'https://api.test.payrun.io/Jobs/rti' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json' \
  -d '{
  "RtiJobInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "HoldingDate": null,
    "RtiType": "FPS",
    "Generate": "true",
    "Transmit": "true",
    "TaxYear": "2018",
    "Employer": {
      "@href": "/Employer/ER001"
    },
    "Timestamp": "2018-04-30T00:00:00",
    "PaySchedule": {
      "@href": "/Employer/ER001/PaySchedule/SCH001"
    },
    "PaymentDate": "2018-04-30",
    "LateReason": null
  }
}'

Step 10 - Query FPS Job Status

Here we query the status of the FPS submission awaiting the success status.

curl -X GET \
  'https://api.test.payrun.io/jobs/rti/1b736a3f-5e2b-4f2d-8d69-200a1adb54d8/info' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml'
curl -X GET \
  'https://api.test.payrun.io/jobs/rti/1b736a3f-5e2b-4f2d-8d69-200a1adb54d8/info' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json'

Response Example

<?xml version="1.0"?>
<JobInfo>
    <JobId>d941fde3-8733-41dc-93ba-4d8d2745951f</JobId>
    <Created>2018-07-23T18:04:13.043</Created>
    <LastUpdated>2018-07-23T18:04:28.803</LastUpdated>
    <JobType>RtiJob</JobType>
    <JobStatus>Success</JobStatus>
    <Progress>1.000</Progress>
    <Errors />
</JobInfo>
{
	"JobInfo": {
		"JobId": "d941fde3-8733-41dc-93ba-4d8d2745951f",
		"Created": "2018-07-23T18:04:13.043",
		"LastUpdated": "2018-07-23T18:04:28.803",
        "JobType": "RtiJob",
		"JobStatus": "Success",
		"Progress": "1.000",
		"Errors": null,
	}
}

Step 11 - Review FPS transmission results

Finally, once the job is complete, we can review the FPS transmission object. The transmission object contains both the transmitted and received XML payloads.

curl -X GET \
  'https://api.test.payrun.io/Employer/ER001/RtiTransaction/FPS001' \
  -H 'Accept: application/xml' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/xml'
curl -X GET \
  'https://api.test.payrun.io/Employer/ER001/RtiTransaction/FPS001' \
  -H 'Accept: application/json' \
  -H 'Api-Version: default' \
  -H 'Authorization: {OAuthHeader}' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-type: application/json'

Response Example

<?xml version="1.0"?>
<RtiFpsTransaction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <TransactionStatus>CompletedWithSuccess</TransactionStatus>
    <Timestamp>2018-04-30T00:00:00</Timestamp>
    <TransmissionDate>2018-11-29T12:15:38.9442746</TransmissionDate>
    <TaxYear>2018</TaxYear>
    <RequestData>
        <![CDATA[
            <?xml version="1.0"?>
            <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
              <EnvelopeVersion>2.0</EnvelopeVersion>
              <Header>
                <MessageDetails>
                  <Class>HMRC-PAYE-RTI-FPS</Class>
                  <Qualifier>request</Qualifier>
                  <Function>submit</Function>
                  <Transformation>XML</Transformation>
                  <GatewayTest>1</GatewayTest>
                </MessageDetails>
                <SenderDetails>
                  <IDAuthentication>
                    <SenderID>ISV451</SenderID>
                    <Authentication>
                      <Method>clear</Method>
                      <Role>principal</Role>
                      <Value>testing1</Value>
                    </Authentication>
                  </IDAuthentication>
                  <EmailAddress>jodare@test.com</EmailAddress>
                </SenderDetails>
              </Header>
              <GovTalkDetails>
                <Keys>
                  <Key Type="TaxOfficeNumber">451</Key>
                  <Key Type="TaxOfficeReference">A451</Key>
                </Keys>
                <TargetDetails>
                  <Organisation>IR</Organisation>
                </TargetDetails>
                <ChannelRouting>
                  <Channel>
                    <URI>7430</URI>
                    <Product>PayRunIO</Product>
                    <Version>18.19.1.555</Version>
                  </Channel>
                  <Timestamp>2018-04-30T00:00:00</Timestamp>
                </ChannelRouting>
              </GovTalkDetails>
              <Body>
                <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/RTI/FullPaymentSubmission/18-19/1">
                  <IRheader>
                    <Keys>
                      <Key Type="TaxOfficeNumber">451</Key>
                      <Key Type="TaxOfficeReference">A451</Key>
                    </Keys>
                    <PeriodEnd>2019-04-05</PeriodEnd>
                    <DefaultCurrency>GBP</DefaultCurrency>
                    <IRmark Type="generic">tHAhhHcHo6GSQreMNwJg1sSgVnw=</IRmark>
                    <Sender>Employer</Sender>
                  </IRheader>
                  <FullPaymentSubmission>
                    <EmpRefs>
                      <OfficeNo>451</OfficeNo>
                      <PayeRef>A451</PayeRef>
                      <AORef>123PA1234567X</AORef>
                    </EmpRefs>
                    <RelatedTaxYear>18-19</RelatedTaxYear>
                    <Employee>
                      <EmployeeDetails>
                        <Name>
                          <Fore>Terry</Fore>
                          <Sur>Tester</Sur>
                        </Name>
                        <Address>
                          <Line>House</Line>
                          <Line>Street</Line>
                          <Line>Town</Line>
                          <Line>County</Line>
                          <UKPostcode>TE1 1ST</UKPostcode>
                        </Address>
                        <BirthDate>1960-01-01</BirthDate>
                        <Gender>M</Gender>
                      </EmployeeDetails>
                      <Employment>
                        <Starter>
                          <StartDate>2018-01-01</StartDate>
                          <StartDec>A</StartDec>
                        </Starter>
                        <PayId>EMP001</PayId>
                        <FiguresToDate>
                          <TaxablePay>2083.34</TaxablePay>
                          <TotalTax>219.00</TotalTax>
                        </FiguresToDate>
                        <Payment>
                          <PayFreq>M1</PayFreq>
                          <PmtDate>2018-04-30</PmtDate>
                          <MonthNo>1</MonthNo>
                          <PeriodsCovered>1</PeriodsCovered>
                          <HoursWorked>A</HoursWorked>
                          <TaxCode>1185L</TaxCode>
                          <TaxablePay>2083.34</TaxablePay>
                          <PayAfterStatDedns>1698.58</PayAfterStatDedns>
                          <TaxDeductedOrRefunded>219.00</TaxDeductedOrRefunded>
                        </Payment>
                        <NIlettersAndValues>
                          <NIletter>A</NIletter>
                          <GrossEarningsForNICsInPd>2083.34</GrossEarningsForNICsInPd>
                          <GrossEarningsForNICsYTD>2083.34</GrossEarningsForNICsYTD>
                          <AtLELYTD>503.00</AtLELYTD>
                          <LELtoPTYTD>199.00</LELtoPTYTD>
                          <PTtoUELYTD>1381.34</PTtoUELYTD>
                          <TotalEmpNICInPd>190.62</TotalEmpNICInPd>
                          <TotalEmpNICYTD>190.62</TotalEmpNICYTD>
                          <EmpeeContribnsInPd>165.76</EmpeeContribnsInPd>
                          <EmpeeContribnsYTD>165.76</EmpeeContribnsYTD>
                        </NIlettersAndValues>
                      </Employment>
                    </Employee>
                  </FullPaymentSubmission>
                </IRenvelope>
              </Body>
            </GovTalkMessage>
        ]]>
    </RequestData>
    <ResponseData>
        <![CDATA[
            <?xml version="1.0" encoding="UTF-8"?>
            <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
              <EnvelopeVersion>2.0</EnvelopeVersion>
              <Header>
                <MessageDetails>
                  <Class>HMRC-PAYE-RTI-FPS</Class>
                  <Qualifier>response</Qualifier>
                  <Function>submit</Function>
                  <TransactionID/>
                  <CorrelationID>14E030C20EDD4B4496B5D404DAACE7D6</CorrelationID>
                  <ResponseEndPoint PollInterval="10">https://test-transaction-engine.tax.service.gov.uk/submission</ResponseEndPoint>
                  <Transformation>XML</Transformation>
                  <GatewayTimestamp>2018-11-29T12:15:42.477</GatewayTimestamp>
                </MessageDetails>
                <SenderDetails/>
              </Header>
              <GovTalkDetails>
                <Keys/>
              </GovTalkDetails>
              <Body>
                <SuccessResponse xmlns="http://www.inlandrevenue.gov.uk/SuccessResponse">
                  <IRmarkReceipt>
                    <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
                      <dsig:SignedInfo>
                        <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
                        <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                        <dsig:Reference>
                          <dsig:Transforms>
                            <dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                              <dsig:XPath>(count(ancestor-or-self::node()|/gti:GovTalkMessage/gti:Body)=count(ancestor-or-self::node())) and (count(ancestor-or-self::node()|/gti:GovTalkMessage/gti:Body/*[name()='IRenvelope']/*[name()='IRheader']/*[name()='IRmark'])!=count(ancestor-or-self::node()))</dsig:XPath>
                            </dsig:Transform>
                            <dsig:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
                          </dsig:Transforms>
                          <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                          <dsig:DigestValue>tHAhhHcHo6GSQreMNwJg1sSgVnw=</dsig:DigestValue>
                        </dsig:Reference>
                      </dsig:SignedInfo>
                      <dsig:SignatureValue>m6Egi2OnOaCGmlorRlLkrBQNcoCeR6xF+YndFU10GyudKRWnKP3DWOGFma8Pewq3+Jp9m3DuLit2LLtwrAWkrtEOz953rXFZrkIiU+QjU/Rr3hsLiNEIHw6EuC2cst48rlWWalt6aM0Ki5ili6IZv8aEd50Z/rkYL1ZXyN6PEnDKovGh4ut7vKnWJ7n8LxMBSDB4rE4AaCBss1edNMlhUb/56EQnxTYJOyWStf3N68GOXZ2u52VOpxtbTlTk6ZgK7WioKBB/wrtZbOdMoBLfnCnlbZcmBGx4ZZEeeoMzunniVAGr52bAREkRKH9msuo0DFGJHzoSE1woLw7weLjkSg==</dsig:SignatureValue>
                      <dsig:KeyInfo>
                        <dsig:X509Data>
                          <dsig:X509Certificate>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</dsig:X509Certificate>
                        </dsig:X509Data>
                      </dsig:KeyInfo>
                    </dsig:Signature>
                    <Message code="0000">HMRC has received the HMRC-PAYE-RTI-FPS document ref: 451/A451 at 12.15 on 29/11/2018. The associated IRmark was: WRYCDBDXA6R2DESCW6GDOATA23CKAVT4. We strongly recommend that you keep this receipt electronically, and we advise that you also keep your submission electronically for your records. They are evidence of the information that you submitted to HMRC.</Message>
                  </IRmarkReceipt>
                  <Message code="077001">Thank you for your submission</Message>
                  <AcceptedTime>2018-11-29T12:15:39.561</AcceptedTime>
                </SuccessResponse>
              </Body>
            </GovTalkMessage>
        ]]>
    </ResponseData>
    <EmployerCore title="Employer: [Example Employer:ER001]" href="/Employer/ER001" rel="Employer" />
    <PaySchedule title="SCH001: [My Monthly:Monthly]" href="/Employer/ER001/PaySchedule/SCH001" rel="PaySchedule" />
    <PaymentDate>2018-04-30T00:00:00</PaymentDate>
    <SchemeCeased xsi:nil="true" />
    <LateReason xsi:nil="true" />
</RtiFpsTransaction>
{
    "RtiFpsTransaction": {
        "TransactionStatus": "CompletedWithSuccess",
        "Timestamp": "2018-04-30T00:00:00",
        "TransmissionDate": "2018-11-29T12:15:38.9442746",
        "TaxYear": "2018",
        "RequestData": {
            "#cdata-section": "<?xml version=\"1.0\"?><GovTalkMessage xmlns=\"http://www.govtalk.gov.uk/CM/envelope\"><EnvelopeVersion>2.0</EnvelopeVersion><Header><MessageDetails><Class>HMRC-PAYE-RTI-FPS</Class><Qualifier>request</Qualifier><Function>submit</Function><Transformation>XML</Transformation><GatewayTest>1</GatewayTest></MessageDetails><SenderDetails><IDAuthentication><SenderID>ISV451</SenderID><Authentication><Method>clear</Method><Role>principal</Role><Value>testing1</Value></Authentication></IDAuthentication><EmailAddress>jodare@test.com</EmailAddress></SenderDetails></Header><GovTalkDetails><Keys><Key Type=\"TaxOfficeNumber\">451</Key><Key Type=\"TaxOfficeReference\">A451</Key></Keys><TargetDetails><Organisation>IR</Organisation></TargetDetails><ChannelRouting><Channel><URI>7430</URI><Product>PayRunIO</Product><Version>18.19.1.555</Version></Channel><Timestamp>2018-04-30T00:00:00</Timestamp></ChannelRouting></GovTalkDetails><Body><IRenvelope xmlns=\"http://www.govtalk.gov.uk/taxation/PAYE/RTI/FullPaymentSubmission/18-19/1\"><IRheader><Keys><Key Type=\"TaxOfficeNumber\">451</Key><Key Type=\"TaxOfficeReference\">A451</Key></Keys><PeriodEnd>2019-04-05</PeriodEnd><DefaultCurrency>GBP</DefaultCurrency><IRmark Type=\"generic\">tHAhhHcHo6GSQreMNwJg1sSgVnw=</IRmark><Sender>Employer</Sender></IRheader><FullPaymentSubmission><EmpRefs><OfficeNo>451</OfficeNo><PayeRef>A451</PayeRef><AORef>123PA1234567X</AORef></EmpRefs><RelatedTaxYear>18-19</RelatedTaxYear><Employee><EmployeeDetails><Name><Fore>Terry</Fore><Sur>Tester</Sur></Name><Address><Line>House</Line><Line>Street</Line><Line>Town</Line><Line>County</Line><UKPostcode>TE1 1ST</UKPostcode></Address><BirthDate>1960-01-01</BirthDate><Gender>M</Gender></EmployeeDetails><Employment><Starter><StartDate>2018-01-01</StartDate><StartDec>A</StartDec></Starter><PayId>EMP001</PayId><FiguresToDate><TaxablePay>2083.34</TaxablePay><TotalTax>219.00</TotalTax></FiguresToDate><Payment><PayFreq>M1</PayFreq><PmtDate>2018-04-30</PmtDate><MonthNo>1</MonthNo><PeriodsCovered>1</PeriodsCovered><HoursWorked>A</HoursWorked><TaxCode>1185L</TaxCode><TaxablePay>2083.34</TaxablePay><PayAfterStatDedns>1698.58</PayAfterStatDedns><TaxDeductedOrRefunded>219.00</TaxDeductedOrRefunded></Payment><NIlettersAndValues><NIletter>A</NIletter><GrossEarningsForNICsInPd>2083.34</GrossEarningsForNICsInPd><GrossEarningsForNICsYTD>2083.34</GrossEarningsForNICsYTD><AtLELYTD>503.00</AtLELYTD><LELtoPTYTD>199.00</LELtoPTYTD><PTtoUELYTD>1381.34</PTtoUELYTD><TotalEmpNICInPd>190.62</TotalEmpNICInPd><TotalEmpNICYTD>190.62</TotalEmpNICYTD><EmpeeContribnsInPd>165.76</EmpeeContribnsInPd><EmpeeContribnsYTD>165.76</EmpeeContribnsYTD></NIlettersAndValues></Employment></Employee></FullPaymentSubmission></IRenvelope></Body></GovTalkMessage>"
        },
        "ResponseData": {
            "#cdata-section": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><GovTalkMessage xmlns=\"http://www.govtalk.gov.uk/CM/envelope\"><EnvelopeVersion>2.0</EnvelopeVersion><Header><MessageDetails><Class>HMRC-PAYE-RTI-FPS</Class><Qualifier>response</Qualifier><Function>submit</Function><TransactionID></TransactionID><CorrelationID>14E030C20EDD4B4496B5D404DAACE7D6</CorrelationID><ResponseEndPoint PollInterval=\"10\">https://test-transaction-engine.tax.service.gov.uk/submission</ResponseEndPoint><Transformation>XML</Transformation><GatewayTimestamp>2018-11-29T12:15:42.477</GatewayTimestamp></MessageDetails><SenderDetails /></Header><GovTalkDetails><Keys></Keys></GovTalkDetails><Body><SuccessResponse xmlns=\"http://www.inlandrevenue.gov.uk/SuccessResponse\"><IRmarkReceipt><dsig:Signature xmlns:dsig=\"http://www.w3.org/2000/09/xmldsig#\"><dsig:SignedInfo><dsig:CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></dsig:CanonicalizationMethod><dsig:SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></dsig:SignatureMethod><dsig:Reference><dsig:Transforms><dsig:Transform Algorithm=\"http://www.w3.org/TR/1999/REC-xpath-19991116\"><dsig:XPath>(count(ancestor-or-self::node()|/gti:GovTalkMessage/gti:Body)=count(ancestor-or-self::node())) and (count(ancestor-or-self::node()|/gti:GovTalkMessage/gti:Body/*[name()='IRenvelope']/*[name()='IRheader']/*[name()='IRmark'])!=count(ancestor-or-self::node()))</dsig:XPath></dsig:Transform><dsig:Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments\"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></dsig:DigestMethod><dsig:DigestValue>tHAhhHcHo6GSQreMNwJg1sSgVnw=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>m6Egi2OnOaCGmlorRlLkrBQNcoCeR6xF+YndFU10GyudKRWnKP3DWOGFma8Pewq3+Jp9m3DuLit2LLtwrAWkrtEOz953rXFZrkIiU+QjU/Rr3hsLiNEIHw6EuC2cst48rlWWalt6aM0Ki5ili6IZv8aEd50Z/rkYL1ZXyN6PEnDKovGh4ut7vKnWJ7n8LxMBSDB4rE4AaCBss1edNMlhUb/56EQnxTYJOyWStf3N68GOXZ2u52VOpxtbTlTk6ZgK7WioKBB/wrtZbOdMoBLfnCnlbZcmBGx4ZZEeeoMzunniVAGr52bAREkRKH9msuo0DFGJHzoSE1woLw7weLjkSg==</dsig:SignatureValue><dsig:KeyInfo><dsig:X509Data><dsig:X509Certificate>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</dsig:X509Certificate></dsig:X509Data></dsig:KeyInfo></dsig:Signature><Message code=\"0000\">HMRC has received the HMRC-PAYE-RTI-FPS document ref: 451/A451 at 12.15 on 29/11/2018. The associated IRmark was: WRYCDBDXA6R2DESCW6GDOATA23CKAVT4. We strongly recommend that you keep this receipt electronically, and we advise that you also keep your submission electronically for your records. They are evidence of the information that you submitted to HMRC.</Message></IRmarkReceipt><Message code=\"077001\">Thank you for your submission</Message><AcceptedTime>2018-11-29T12:15:39.561</AcceptedTime></SuccessResponse></Body></GovTalkMessage>"
        },
        "EmployerCore": {
            "@title": "Employer: [Example Employer:ER001]",
            "@href": "/Employer/ER001",
            "@rel": "Employer"
        },
        "PaySchedule": {
            "@title": "SCH001: [My Monthly:Monthly]",
            "@href": "/Employer/ER001/PaySchedule/SCH001",
            "@rel": "PaySchedule"
        },
        "PaymentDate": "2018-04-30T00:00:00",
        "SchemeCeased": null,
        "LateReason": null
    }
}