Example 1: 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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '<?xml version="1.0"?>
<Employer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EffectiveDate>2017-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 PUT
   https://api.test.payrun.io/Employers
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '{
  "Employer": {
    "EffectiveDate": "2017-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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-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 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-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.ioEmployer/ER001/Employees"
   -H 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '<?xml version="1.0"?>
<Employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EffectiveDate>2017-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>2017-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>
</Employee>'
curl -X POST
   https://api.test.payrun.ioEmployer/ER001/Employees
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '{
  "Employee": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
    "EffectiveDate": "2017-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": "2017-01-01",
    "StarterDeclaration": "A",
    "LeavingDate": {
      "@xsi:nil": "true"
    },
    "LeaverReason": {
      "@xsi:nil": "true"
    },
    "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"
  }
}'

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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '<?xml version="1.0"?>
<SalaryPayInstruction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <StartDate>2017-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 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '{
  "SalaryPayInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "StartDate": "2017-04-01",
    "EndDate": {
      "@xsi:nil": "true"
    },
    "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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-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>2017-04-30</PaymentDate>
  <StartDate>2017-04-01</StartDate>
  <EndDate>2017-04-30</EndDate>
  <PaySchedule href="/Employer/ER001/PaySchedule/SCH001" />
  <IsSupplementary>false</IsSupplementary>
</PayRunJobInstruction>'
curl -X POST
   https://api.test.payrun.io/jobs/payruns
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '{
  "PayRunJobInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "HoldingDate": {
      "@xsi:nil": "true"
    },
    "PaymentDate": "2017-04-30",
    "StartDate": "2017-04-01",
    "EndDate": "2017-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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
curl -X GET
   https://api.test.payrun.io/jobs/payruns/88738be7-e499-48ba-a4ba-c3467aaafd9b/info
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'

Response Example

<?xml version="1.0"?>
<JobInfo>
    <JobId>88738be7-e499-48ba-a4ba-c3467aaafd9b</JobId>
    <Created>2017-11-23T17:45:04.197</Created>
    <LastUpdated>2017-11-23T17:45:06.673</LastUpdated>
    <JobStatus>Success</JobStatus>
    <Progress>1.000</Progress>
    <Errors />
</JobInfo>
{
	"JobInfo": {
		"JobId": "88738be7-e499-48ba-a4ba-c3467aaafd9b",
		"Created": "2017-11-23T17:45:04.197",
		"LastUpdated": "2017-11-23T17:45:06.673",
		"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/PAYSLIP/run?EmployerKey=ER001&TaxYear=2017&TaxPeriod=1&EmployeeCodes=EMP001
   -H 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
curl -X GET
   https://api.test.payrun.io/report/PAYSLIP/run?EmployerKey=ER001&TaxYear=2017&TaxPeriod=1&EmployeeCodes=EMP001
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'

Response Example

<?xml version="1.0"?>
<PayslipReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Generated="2017-10-31T09:10:27">
    <PayRun TaxYear="2017" TaxPeriod="1" PaymentDate="2017-04-30" Schedule="My Monthly" Frequency="Monthly">
        <Employee Code="EMP001">
            <Link href="/Employer/ER001/Employee/EE001/2017-04-01" />
            <Payments>
                <PayLine type="PayLineBasic">
                    <Generated>2017-10-31T09:08:54.5193234</Generated>
                    <PayCode>BASIC</PayCode>
                    <PayCodeType>Payment</PayCodeType>
                    <Value>2083.3400</Value>
                    <PaymentDate>2017-04-30</PaymentDate>
                    <TaxYear>2017</TaxYear>
                    <TaxPeriod>1</TaxPeriod>
                    <Rate>2083.3400</Rate>
                    <RateUoM>Month</RateUoM>
                    <Units>1.0000</Units>
                    <ProRataMethodApplied>NotSet</ProRataMethodApplied>
                </PayLine>
            </Payments>
            <Deductions>
                <PayLine type="PayLineNi">
                    <Generated>2017-10-31T09:08:56.1869498</Generated>
                    <PayCode>NI</PayCode>
                    <PayCodeType>Deduction</PayCodeType>
                    <Value>-168.4000</Value>
                    <PaymentDate>2017-04-30</PaymentDate>
                    <TaxYear>2017</TaxYear>
                    <TaxPeriod>1</TaxPeriod>
                    <LEL>490.0000</LEL>
                    <LELtoPT>190.0000</LELtoPT>
                    <PTtoST>0.0000</PTtoST>
                    <STtoUAP>0.0000</STtoUAP>
                    <UAPtoUEL>0.0000</UAPtoUEL>
                    <UELtoUST>0.0000</UELtoUST>
                    <UELtoAUST>0.0000</UELtoAUST>
                    <AboveUST>0.0000</AboveUST>
                    <STtoUEL>1403.3400</STtoUEL>
                    <AboveAUST>0.0000</AboveAUST>
                    <EmployerNI>-193.6600</EmployerNI>
                    <DirCalculationMethod>Off</DirCalculationMethod>
                    <NiLetter>A</NiLetter>
                    <NiablePay>2083.3400</NiablePay>
                    <RebateEE>0.0000</RebateEE>
                    <RebateER>0.0000</RebateER>
                    <WeeksAsDirector>0</WeeksAsDirector>
                </PayLine>
                <PayLine type="PayLineTax">
                    <Generated>2017-10-31T09:08:56.1749655</Generated>
                    <PayCode>TAX</PayCode>
                    <PayCodeType>Deduction</PayCodeType>
                    <Value>-224.8000</Value>
                    <PaymentDate>2017-04-30</PaymentDate>
                    <TaxYear>2017</TaxYear>
                    <TaxPeriod>1</TaxPeriod>
                    <TaxBasis>Cumulative</TaxBasis>
                    <TaxCode>1150L</TaxCode>
                    <TaxablePay>2083.3400</TaxablePay>
                </PayLine>
            </Deductions>
            <PeriodTotals>
                <SumTotal Value="-193.6600" Key="Employer NI" />
                <SumTotal Value="2083.3400" Key="Niable Pay" />
                <SumTotal Value="2083.3400" Key="Taxable Pay" />
                <SumTotal Value="2083.3400" Key="Payments" />
                <SumTotal Value="-393.2000" Key="Deductions" />
                <SumTotal Value="1690.1400" Key="Net Pay" />
            </PeriodTotals>
            <YtdTotals>
                <SumTotal Value="-168.4000" Key="Employee NI" />
                <SumTotal Value="-193.6600" Key="Employer NI" />
                <SumTotal Value="-224.8000" Key="Tax" />
                <SumTotal Value="2083.3400" Key="Niable Pay" />
                <SumTotal Value="2083.3400" Key="Taxable Pay" />
                <SumTotal Value="2083.3400" Key="Payments" />
                <SumTotal Value="-393.2000" Key="Deductions" />
                <SumTotal Value="1690.1400" Key="Net Pay" />
            </YtdTotals>
        </Employee>
    </PayRun>
</PayslipReport>
{
    "PayslipReport": {
        "@Generated": "2017-10-31T09:11:19",
        "PayRun": {
            "@TaxYear": "2017",
            "@TaxPeriod": "1",
            "@PaymentDate": "2017-04-30",
            "@Schedule": "My Monthly",
            "@Frequency": "Monthly",
            "Employee": {
                "@Code": "EMP001",
                "Link": {
                    "@href": "/Employer/ER001/Employee/EE001/2017-04-01"
                },
                "Payments": {
                    "PayLine": {
                        "@type": "PayLineBasic",
                        "Generated": "2017-10-31T09:08:54.5193234",
                        "PayCode": "BASIC",
                        "PayCodeType": "Payment",
                        "Value": "2083.3400",
                        "PaymentDate": "2017-04-30",
                        "TaxYear": "2017",
                        "TaxPeriod": "1",
                        "Rate": "2083.3400",
                        "RateUoM": "Month",
                        "Units": "1.0000",
                        "ProRataMethodApplied": "NotSet"
                    }
                },
                "Deductions": {
                    "PayLine": [
                        {
                            "@type": "PayLineNi",
                            "Generated": "2017-10-31T09:08:56.1869498",
                            "PayCode": "NI",
                            "PayCodeType": "Deduction",
                            "Value": "-168.4000",
                            "PaymentDate": "2017-04-30",
                            "TaxYear": "2017",
                            "TaxPeriod": "1",
                            "LEL": "490.0000",
                            "LELtoPT": "190.0000",
                            "PTtoST": "0.0000",
                            "STtoUAP": "0.0000",
                            "UAPtoUEL": "0.0000",
                            "UELtoUST": "0.0000",
                            "UELtoAUST": "0.0000",
                            "AboveUST": "0.0000",
                            "STtoUEL": "1403.3400",
                            "AboveAUST": "0.0000",
                            "EmployerNI": "-193.6600",
                            "DirCalculationMethod": "Off",
                            "NiLetter": "A",
                            "NiablePay": "2083.3400",
                            "RebateEE": "0.0000",
                            "RebateER": "0.0000",
                            "WeeksAsDirector": "0"
                        },
                        {
                            "@type": "PayLineTax",
                            "Generated": "2017-10-31T09:08:56.1749655",
                            "PayCode": "TAX",
                            "PayCodeType": "Deduction",
                            "Value": "-224.8000",
                            "PaymentDate": "2017-04-30",
                            "TaxYear": "2017",
                            "TaxPeriod": "1",
                            "TaxBasis": "Cumulative",
                            "TaxCode": "1150L",
                            "TaxablePay": "2083.3400"
                        }
                    ]
                },
                "PeriodTotals": {
                    "SumTotal": [
                        {
                            "@Value": "-193.6600",
                            "@Key": "Employer NI"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Niable Pay"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Taxable Pay"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Payments"
                        },
                        {
                            "@Value": "-393.2000",
                            "@Key": "Deductions"
                        },
                        {
                            "@Value": "1690.1400",
                            "@Key": "Net Pay"
                        }
                    ]
                },
                "YtdTotals": {
                    "SumTotal": [
                        {
                            "@Value": "-168.4000",
                            "@Key": "Employee NI"
                        },
                        {
                            "@Value": "-193.6600",
                            "@Key": "Employer NI"
                        },
                        {
                            "@Value": "-224.8000",
                            "@Key": "Tax"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Niable Pay"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Taxable Pay"
                        },
                        {
                            "@Value": "2083.3400",
                            "@Key": "Payments"
                        },
                        {
                            "@Value": "-393.2000",
                            "@Key": "Deductions"
                        },
                        {
                            "@Value": "1690.1400",
                            "@Key": "Net Pay"
                        }
                    ]
                }
            }
        }
    }
}

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

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>2017-10-31T09:08:56.218959</Created>
    <Detail>09:08:52.491 [INFO ] -- Start Pre-calculations Rules
09:08:54.204 [DEBUG] --   Rule matched: NI &gt; Create Missing NI pay instruction
09:08:54.242 [DEBUG] --     New NI instruction for letter A created.
09:08:54.244 [DEBUG] --   Rule matched: Tax &gt; Emergency Tax pay instruction
09:08:54.273 [INFO ] --       New Tax instruction created with tax code: 1150L 1150L
09:08:54.284 [INFO ] --   Total Rules: 14 - Excluded: 0 - Matched: 2
09:08:54.284 [INFO ] -- End Pre-calculations Rules
09:08:54.285 [INFO ] -- Begin Calculation
09:08:54.285 [INFO ] --   Employee: Terry, Tester
09:08:54.285 [INFO ] --   Tax Period: 2017/1
09:08:54.285 [INFO ] --   Pay Day: 2017-04-30
09:08:54.285 [INFO ] --   Pay Frequency: Monthly
09:08:54.288 [INFO ] --   Begin Salary Calculator
09:08:56.139 [INFO ] --     Annual Salary: 25,000.00
09:08:56.139 [INFO ] --     Effective: 01 April 2017 =&gt; 
09:08:56.140 [DEBUG] --       Period Pay: ROUNDUP(Annual Salary / Pay Frequency Multiplier)
09:08:56.140 [INFO ] --       Period Pay: ROUNDUP(25,000.00 / 12) = 2,083.34
09:08:56.140 [INFO ] --     Period Pay: 2,083.34
09:08:56.140 [INFO ] --   End Salary Calculator
09:08:56.145 [INFO ] --   No active SPP pay instruction found.
09:08:56.146 [INFO ] --   Begin Tax Calculator
09:08:56.156 [INFO ] --     Tax Code: 1150L
09:08:56.156 [INFO ] --     Tax Basis: Cumulative
09:08:56.156 [INFO ] --     Taxable Pay: 2,083.34
09:08:56.156 [INFO ] --       Non-taxable deduction: 0.00
09:08:56.156 [INFO ] --       Previous Pay: 0.00
09:08:56.156 [INFO ] --       Previous Tax: 0.00
09:08:56.160 [INFO ] --       Total Tax Year Pay: 2,083.34
09:08:56.162 [INFO ] --       Freepay: 959.09
09:08:56.162 [DEBUG] --       Taxable Pay: (Total Pay - Freepay)
09:08:56.162 [DEBUG] --       Taxable Pay: (2,083.34 - 959.09) = 1,124.25
09:08:56.170 [DEBUG] --         Tax Bands:
09:08:56.170 [DEBUG] --           | Name                     | Lower           | Upper           | Rate %          |
09:08:56.170 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |
09:08:56.170 [DEBUG] --           | Basic Rate               | 0.00            | 33,500.00       | 20.00%          |
09:08:56.170 [DEBUG] --           | Higher Rate              | 33,500.00       | 150,000.00      | 40.00%          |
09:08:56.170 [DEBUG] --           | Additional Higher Rate   | 150,000.00      |                 | 45.00%          |
09:08:56.170 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |
09:08:56.170 [INFO ] --       Calculate Taxable untaxedPeriodPay within bands
09:08:56.171 [INFO ] --         Basic Rate               : (0.00 -&gt; 33,500.00) = 1,124.00
09:08:56.171 [INFO ] --         Higher Rate              : (33,500.00 -&gt; 150,000.00) = 0.00
09:08:56.171 [INFO ] --         Additional Higher Rate   : (150,000.00 -&gt; ) = 0.00
09:08:56.171 [INFO ] --       Calculate tax by band
09:08:56.171 [DEBUG] --         Basic Rate               : (1,124.00 * 20.00%) = 224.8000
09:08:56.171 [DEBUG] --         Higher Rate              : (0.00 * 40.00%) = 0.0000
09:08:56.171 [DEBUG] --         Additional Higher Rate   : (0.00 * 45.00%) = 0.0000
09:08:56.171 [INFO ] --       Total Tax: SUM(224.8000, 0.0000, 0.0000) = ROUNDPENNYDOWN(224.8000) = 224.80
09:08:56.174 [INFO ] --     Tax: 224.80
09:08:56.174 [INFO ] --   End Tax Calculator
09:08:56.174 [INFO ] --   Begin National Insurance Calculator
09:08:56.186 [INFO ] --     Pay Frequency: Monthly
09:08:56.186 [INFO ] --     Period: 01/2017
09:08:56.203 [INFO ] --     Niable Pay: 2,083.34
09:08:56.203 [INFO ] --     NI Letter: A
09:08:56.204 [DEBUG] --       NI Bandings
09:08:56.204 [DEBUG] --         | Name         | Lower        | Upper        | EE %         | ER %         | EE Rebate %  | ER Rebate %  |
09:08:56.204 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |
09:08:56.204 [DEBUG] --         | Below LEL    | 0.00         | 490.00       | 0.00%        | 0.00%        | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         | LEL to PT    | 490.00       | 680.00       | 0.00%        | 0.00%        | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         | PT to ST     | 680.00       | 680.00       | 12.00%       | 0.00%        | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         | ST to UEL    | 680.00       | 3,750.00     | 12.00%       | 13.80%       | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         | UEL to UST   | 3,750.00     | 3,750.00     | 2.00%        | 13.80%       | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         | Above UST    | 3,750.00     |              | 2.00%        | 13.80%       | 0.00%        | 0.00%        |
09:08:56.205 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |
09:08:56.205 [INFO ] --     Calculate Niable pay within bands
09:08:56.205 [INFO ] --       Below LEL  : (0.00 -&gt; 490.00) = 490.00
09:08:56.205 [INFO ] --       LEL to PT  : (490.00 -&gt; 680.00) = 190.00
09:08:56.205 [INFO ] --       PT to ST   : (680.00 -&gt; 680.00) = 0.00
09:08:56.205 [INFO ] --       ST to UEL  : (680.00 -&gt; 3,750.00) = 1,403.34
09:08:56.205 [INFO ] --       UEL to UST : (3,750.00 -&gt; 3,750.00) = 0.00
09:08:56.205 [INFO ] --       Above UST  : (3,750.00 -&gt; ) = 0.00
09:08:56.207 [INFO ] --     Calculate Employees NIC
09:08:56.207 [DEBUG] --       LEL to PT   : NIROUND(190.00 * 0.00%) = 0.00
09:08:56.207 [DEBUG] --       PT to ST    : NIROUND(0.00 * 12.00%) = 0.00
09:08:56.207 [DEBUG] --       ST to UEL   : NIROUND(1,403.34 * 12.00%) = 168.40
09:08:56.207 [DEBUG] --       UEL to UST  : NIROUND(0.00 * 2.00%) = 0.00
09:08:56.207 [DEBUG] --       Above UST   : NIROUND(0.00 * 2.00%) = 0.00
09:08:56.207 [INFO ] --     Employee NIC: SUM(0.00, 0.00, 168.40, 0.00, 0.00) = -168.40
09:08:56.207 [INFO ] --     Employee NIC:  = -168.40
09:08:56.208 [INFO ] --     Calculate Employers NIC
09:08:56.208 [DEBUG] --       LEL to PT   : NIROUND(190.00 * 0.00%) = 0.00
09:08:56.208 [DEBUG] --       PT to ST    : NIROUND(0.00 * 0.00%) = 0.00
09:08:56.208 [DEBUG] --       ST to UEL   : NIROUND(1,403.34 * 13.80%) = 193.66
09:08:56.208 [DEBUG] --       UEL to UST  : NIROUND(0.00 * 13.80%) = 0.00
09:08:56.208 [DEBUG] --       Above UST   : NIROUND(0.00 * 13.80%) = 0.00
09:08:56.208 [INFO ] --     Employer NIC: SUM(0.00, 0.00, 193.66, 0.00, 0.00) = -193.66
09:08:56.208 [INFO ] --     Employer NIC: = -193.66
09:08:56.208 [INFO ] --   End National Insurance Calculator
09:08:56.217 [INFO ] --     Payslip
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.217 [INFO ] --       | Payments                             | Amount £     | Deductions                           | Amount £     |
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.217 [INFO ] --       | Basic Pay                            | 2,083.34     | Tax                                  | -224.80      |
09:08:56.217 [INFO ] --       |                                      |              | National Insurance                   | -168.40      |
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.217 [INFO ] --       | NET PAY                              | 1,690.14     |
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.218 [INFO ] --       | This Period                          | Amount £     | Year to Date                         | Amount £     |
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.218 [INFO ] --       | Employer NI                          | -193.66      | Employer NI                          | -193.66      |
09:08:56.218 [INFO ] --       | Employee NI                          | -168.40      | Employee NI                          | -168.40      |
09:08:56.218 [INFO ] --       | Niable Pay                           | 2,083.34     | Niable Pay                           | 2,083.34     |
09:08:56.218 [INFO ] --       | Taxable Pay                          | 2,083.34     | Taxable Pay                          | 2,083.34     |
09:08:56.218 [INFO ] --       | Tax Paid                             | -224.80      | Tax Paid                             | -224.80      |
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |
09:08:56.218 [INFO ] -- End Calculation</Detail>
</Commentary>
{
    "Commentary": {
        "Created": "2017-10-31T09:08:56.218959",
        "Detail": "09:08:52.491 [INFO ] -- Start Pre-calculations Rules\r\n
09:08:54.204 [DEBUG] --   Rule matched: NI > Create Missing NI pay instruction\r\n
09:08:54.242 [DEBUG] --     New NI instruction for letter A created.\r\n
09:08:54.244 [DEBUG] --   Rule matched: Tax > Emergency Tax pay instruction\r\n
09:08:54.273 [INFO ] --       New Tax instruction created with tax code: 1150L 1150L\r\n
09:08:54.284 [INFO ] --   Total Rules: 14 - Excluded: 0 - Matched: 2\r\n
09:08:54.284 [INFO ] -- End Pre-calculations Rules\r\n
09:08:54.285 [INFO ] -- Begin Calculation\r\n
09:08:54.285 [INFO ] --   Employee: Terry, Tester\r\n
09:08:54.285 [INFO ] --   Tax Period: 2017/1\r\n
09:08:54.285 [INFO ] --   Pay Day: 2017-04-30\r\n
09:08:54.285 [INFO ] --   Pay Frequency: Monthly\r\n
09:08:54.288 [INFO ] --   Begin Salary Calculator\r\n
09:08:56.139 [INFO ] --     Annual Salary: 25,000.00\r\n
09:08:56.139 [INFO ] --     Effective: 01 April 2017 => \r\n
09:08:56.140 [DEBUG] --       Period Pay: ROUNDUP(Annual Salary / Pay Frequency Multiplier)\r\n
09:08:56.140 [INFO ] --       Period Pay: ROUNDUP(25,000.00 / 12) = 2,083.34\r\n
09:08:56.140 [INFO ] --     Period Pay: 2,083.34\r\n
09:08:56.140 [INFO ] --   End Salary Calculator\r\n
09:08:56.145 [INFO ] --   No active SPP pay instruction found.\r\n
09:08:56.146 [INFO ] --   Begin Tax Calculator\r\n
09:08:56.156 [INFO ] --     Tax Code: 1150L\r\n
09:08:56.156 [INFO ] --     Tax Basis: Cumulative\r\n
09:08:56.156 [INFO ] --     Taxable Pay: 2,083.34\r\n
09:08:56.156 [INFO ] --       Non-taxable deduction: 0.00\r\n
09:08:56.156 [INFO ] --       Previous Pay: 0.00\r\n
09:08:56.156 [INFO ] --       Previous Tax: 0.00\r\n
09:08:56.160 [INFO ] --       Total Tax Year Pay: 2,083.34\r\n
09:08:56.162 [INFO ] --       Freepay: 959.09\r\n
09:08:56.162 [DEBUG] --       Taxable Pay: (Total Pay - Freepay)\r\n
09:08:56.162 [DEBUG] --       Taxable Pay: (2,083.34 - 959.09) = 1,124.25\r\n
09:08:56.170 [DEBUG] --         Tax Bands:\r\n
09:08:56.170 [DEBUG] --           | Name                     | Lower           | Upper           | Rate %          |\r\n
09:08:56.170 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |\r\n
09:08:56.170 [DEBUG] --           | Basic Rate               | 0.00            | 33,500.00       | 20.00%          |\r\n
09:08:56.170 [DEBUG] --           | Higher Rate              | 33,500.00       | 150,000.00      | 40.00%          |\r\n
09:08:56.170 [DEBUG] --           | Additional Higher Rate   | 150,000.00      |                 | 45.00%          |\r\n
09:08:56.170 [DEBUG] --           |------------------------- |---------------- |---------------- |---------------- |\r\n
09:08:56.170 [INFO ] --       Calculate Taxable untaxedPeriodPay within bands\r\n
09:08:56.171 [INFO ] --         Basic Rate               : (0.00 -> 33,500.00) = 1,124.00\r\n
09:08:56.171 [INFO ] --         Higher Rate              : (33,500.00 -> 150,000.00) = 0.00\r\n
09:08:56.171 [INFO ] --         Additional Higher Rate   : (150,000.00 -> ) = 0.00\r\n
09:08:56.171 [INFO ] --       Calculate tax by band\r\n
09:08:56.171 [DEBUG] --         Basic Rate               : (1,124.00 * 20.00%) = 224.8000\r\n
09:08:56.171 [DEBUG] --         Higher Rate              : (0.00 * 40.00%) = 0.0000\r\n
09:08:56.171 [DEBUG] --         Additional Higher Rate   : (0.00 * 45.00%) = 0.0000\r\n
09:08:56.171 [INFO ] --       Total Tax: SUM(224.8000, 0.0000, 0.0000) = ROUNDPENNYDOWN(224.8000) = 224.80\r\n
09:08:56.174 [INFO ] --     Tax: 224.80\r\n
09:08:56.174 [INFO ] --   End Tax Calculator\r\n
09:08:56.174 [INFO ] --   Begin National Insurance Calculator\r\n
09:08:56.186 [INFO ] --     Pay Frequency: Monthly\r\n
09:08:56.186 [INFO ] --     Period: 01/2017\r\n
09:08:56.203 [INFO ] --     Niable Pay: 2,083.34\r\n
09:08:56.203 [INFO ] --     NI Letter: A\r\n
09:08:56.204 [DEBUG] --       NI Bandings\r\n
09:08:56.204 [DEBUG] --         | Name         | Lower        | Upper        | EE %         | ER %         | EE Rebate %  | ER Rebate %  |\r\n
09:08:56.204 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |\r\n
09:08:56.204 [DEBUG] --         | Below LEL    | 0.00         | 490.00       | 0.00%        | 0.00%        | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         | LEL to PT    | 490.00       | 680.00       | 0.00%        | 0.00%        | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         | PT to ST     | 680.00       | 680.00       | 12.00%       | 0.00%        | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         | ST to UEL    | 680.00       | 3,750.00     | 12.00%       | 13.80%       | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         | UEL to UST   | 3,750.00     | 3,750.00     | 2.00%        | 13.80%       | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         | Above UST    | 3,750.00     |              | 2.00%        | 13.80%       | 0.00%        | 0.00%        |\r\n
09:08:56.205 [DEBUG] --         |------------- |------------- |------------- |------------- |------------- |------------- |------------- |\r\n
09:08:56.205 [INFO ] --     Calculate Niable pay within bands\r\n
09:08:56.205 [INFO ] --       Below LEL  : (0.00 -> 490.00) = 490.00\r\n
09:08:56.205 [INFO ] --       LEL to PT  : (490.00 -> 680.00) = 190.00\r\n
09:08:56.205 [INFO ] --       PT to ST   : (680.00 -> 680.00) = 0.00\r\n
09:08:56.205 [INFO ] --       ST to UEL  : (680.00 -> 3,750.00) = 1,403.34\r\n
09:08:56.205 [INFO ] --       UEL to UST : (3,750.00 -> 3,750.00) = 0.00\r\n
09:08:56.205 [INFO ] --       Above UST  : (3,750.00 -> ) = 0.00\r\n
09:08:56.207 [INFO ] --     Calculate Employees NIC\r\n
09:08:56.207 [DEBUG] --       LEL to PT   : NIROUND(190.00 * 0.00%) = 0.00\r\n
09:08:56.207 [DEBUG] --       PT to ST    : NIROUND(0.00 * 12.00%) = 0.00\r\n
09:08:56.207 [DEBUG] --       ST to UEL   : NIROUND(1,403.34 * 12.00%) = 168.40\r\n
09:08:56.207 [DEBUG] --       UEL to UST  : NIROUND(0.00 * 2.00%) = 0.00\r\n
09:08:56.207 [DEBUG] --       Above UST   : NIROUND(0.00 * 2.00%) = 0.00\r\n
09:08:56.207 [INFO ] --     Employee NIC: SUM(0.00, 0.00, 168.40, 0.00, 0.00) = -168.40\r\n
09:08:56.207 [INFO ] --     Employee NIC:  = -168.40\r\n
09:08:56.208 [INFO ] --     Calculate Employers NIC\r\n
09:08:56.208 [DEBUG] --       LEL to PT   : NIROUND(190.00 * 0.00%) = 0.00\r\n
09:08:56.208 [DEBUG] --       PT to ST    : NIROUND(0.00 * 0.00%) = 0.00\r\n
09:08:56.208 [DEBUG] --       ST to UEL   : NIROUND(1,403.34 * 13.80%) = 193.66\r\n
09:08:56.208 [DEBUG] --       UEL to UST  : NIROUND(0.00 * 13.80%) = 0.00\r\n
09:08:56.208 [DEBUG] --       Above UST   : NIROUND(0.00 * 13.80%) = 0.00\r\n
09:08:56.208 [INFO ] --     Employer NIC: SUM(0.00, 0.00, 193.66, 0.00, 0.00) = -193.66\r\n
09:08:56.208 [INFO ] --     Employer NIC: = -193.66\r\n
09:08:56.208 [INFO ] --   End National Insurance Calculator\r\n
09:08:56.217 [INFO ] --     Payslip\r\n
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.217 [INFO ] --       | Payments                             | Amount £     | Deductions                           | Amount £     |\r\n
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.217 [INFO ] --       | Basic Pay                            | 2,083.34     | Tax                                  | -224.80      |\r\n
09:08:56.217 [INFO ] --       |                                      |              | National Insurance                   | -168.40      |\r\n
09:08:56.217 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.217 [INFO ] --       | NET PAY                              | 1,690.14     |\r\n
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.218 [INFO ] --       | This Period                          | Amount £     | Year to Date                         | Amount £     |\r\n
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.218 [INFO ] --       | Employer NI                          | -193.66      | Employer NI                          | -193.66      |\r\n
09:08:56.218 [INFO ] --       | Employee NI                          | -168.40      | Employee NI                          | -168.40      |\r\n
09:08:56.218 [INFO ] --       | Niable Pay                           | 2,083.34     | Niable Pay                           | 2,083.34     |\r\n
09:08:56.218 [INFO ] --       | Taxable Pay                          | 2,083.34     | Taxable Pay                          | 2,083.34     |\r\n
09:08:56.218 [INFO ] --       | Tax Paid                             | -224.80      | Tax Paid                             | -224.80      |\r\n
09:08:56.218 [INFO ] --       |------------------------------------- |------------- |------------------------------------- |------------- |\r\n
09:08:56.218 [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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-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>2017</TaxYear>
  <Employer href="/Employer/ER001" />
  <Timestamp>2017-04-30T00:00:00</Timestamp>
  <PaySchedule href="/Employer/ER001/PaySchedule/SCH001" />
  <PaymentDate>2017-04-30</PaymentDate>
  <LateReason xsi:nil="true" />
</RtiJobInstruction>'
curl -X POST
   https://api.test.payrun.io/Jobs/rti"
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
-d '{
  "RtiJobInstruction": {
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "HoldingDate": {
      "@xsi:nil": "true"
    },
    "RtiType": "FPS",
    "Generate": "true",
    "Transmit": "true",
    "TaxYear": "2017",
    "Employer": {
      "@href": "/Employer/ER001"
    },
    "Timestamp": "2017-04-30T00:00:00",
    "PaySchedule": {
      "@href": "/Employer/ER001/PaySchedule/SCH001"
    },
    "PaymentDate": "2017-04-30",
    "LateReason": {
      "@xsi:nil": "true"
    }
  }
}'

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

Response Example

<?xml version="1.0"?>
<JobInfo>
    <JobId>d941fde3-8733-41dc-93ba-4d8d2745951f</JobId>
    <Created>2017-07-23T18:04:13.043</Created>
    <LastUpdated>2017-07-23T18:04:28.803</LastUpdated>
    <JobStatus>Success</JobStatus>
    <Progress>1.000</Progress>
    <Errors />
</JobInfo>
{
	"JobInfo": {
		"JobId": "d941fde3-8733-41dc-93ba-4d8d2745951f",
		"Created": "2017-07-23T18:04:13.043",
		"LastUpdated": "2017-07-23T18:04:28.803",
		"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 'Content-type: application/xml'
   -H 'Accept: application/xml'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'
curl -X GET
   https://api.test.payrun.io/Employer/ER001/RtiTransaction/FPS001
   -H 'Content-type: application/json'
   -H 'Accept: application/json'
   -H 'Api-Version: default'
   -H 'Authorization: {OAuthHeader}'
   -H 'Cache-Control: no-cache'

Response Example

<?xml version="1.0"?>
<?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>2017-04-30T00:00:00</Timestamp>
    <TransmissionDate>2017-10-31T09:14:15.4114877</TransmissionDate>
    <TaxYear>2017</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>MD5</Method><Role>principle</Role><Value>a3MweCsv60kkAgzEpXeCqQ==</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>1.0.0.0</Version></Channel><Timestamp>2017-04-30T00:00:00</Timestamp></ChannelRouting></GovTalkDetails><Body><IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/RTI/FullPaymentSubmission/17-18/1"><IRheader><Keys><Key Type="TaxOfficeNumber">451</Key><Key Type="TaxOfficeReference">A451</Key></Keys><PeriodEnd>2018-04-05</PeriodEnd><DefaultCurrency>GBP</DefaultCurrency><IRmark Type="generic">ziOxiRWuQg/b6bs9Dpy5RIMxD+s=</IRmark><Sender>Employer</Sender></IRheader><FullPaymentSubmission><EmpRefs><OfficeNo>451</OfficeNo><PayeRef>A451</PayeRef><AORef>123PA1234567X</AORef></EmpRefs><RelatedTaxYear>17-18</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>2017-01-01</StartDate><StartDec>A</StartDec></Starter><PayId>EMP001</PayId><FiguresToDate><TaxablePay>2083.34</TaxablePay><TotalTax>224.80</TotalTax></FiguresToDate><Payment><PayFreq>M1</PayFreq><PmtDate>2017-04-30</PmtDate><MonthNo>1</MonthNo><PeriodsCovered>1</PeriodsCovered><HoursWorked>A</HoursWorked><TaxCode>1150L</TaxCode><TaxablePay>2083.34</TaxablePay><PayAfterStatDedns>1690.14</PayAfterStatDedns><TaxDeductedOrRefunded>224.80</TaxDeductedOrRefunded></Payment><NIlettersAndValues><NIletter>A</NIletter><GrossEarningsForNICsInPd>2083.34</GrossEarningsForNICsInPd><GrossEarningsForNICsYTD>2083.34</GrossEarningsForNICsYTD><AtLELYTD>490.00</AtLELYTD><LELtoPTYTD>190.00</LELtoPTYTD><PTtoUELYTD>1403.34</PTtoUELYTD><TotalEmpNICInPd>193.66</TotalEmpNICInPd><TotalEmpNICYTD>193.66</TotalEmpNICYTD><EmpeeContribnsInPd>168.40</EmpeeContribnsInPd><EmpeeContribnsYTD>168.40</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></TransactionID><CorrelationID>C071021D2F1343B8BE7305539DF5860C</CorrelationID><ResponseEndPoint PollInterval="10">https://test-transaction-engine.tax.service.gov.uk/submission</ResponseEndPoint><Transformation>XML</Transformation><GatewayTimestamp>2017-10-31T09:14:19.447</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>ziOxiRWuQg/b6bs9Dpy5RIMxD+s=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>YLVVgxBnD+vpz/KxaJ0JSJdIP9KrBuzb17o29lZeZWbJ6xHoM0vI6CaUbbpN9YAcCc57RziFYCuwGTBR06BAWZO3AmF2HjNRW/IDIQXzPVWta/QiDO+GeieFlL/w+WPLimMfT+Etzm3FxFwUo4sWqkWJidMFgKLL84NUFX6ixuDMMM+U7pqyIYpgypFrFcAuHXmoCnQKIzBs3CS7mYBRLb40As855eavmdc8pFdIPUwonWD5a1RxFMjB4HknVz04ysJR3L3q46VzwXqxew4npNasQgYZxgN0aGfVyMdZ2Ea0aFdJ7yi7yMSnrHxtgAwSsAs++gPRBODubW9KP4uHrw==</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 09.14 on 31/10/2017. The associated IRmark was: ZYR3DCIVVZBA7W7JXM6Q5HFZISBTCD7L. 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>2017-10-31T09:14:16.487</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>2017-04-30T00:00:00</PaymentDate>
    <SchemeCeased xsi:nil="true" />
    <LateReason xsi:nil="true" />
</RtiFpsTransaction>
{
    "RtiFpsTransaction": {
        "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
        "TransactionStatus": "CompletedWithSuccess",
        "Timestamp": "2017-04-30T00:00:00",
        "TransmissionDate": "2017-10-31T09:14:15.4114877",
        "TaxYear": "2017",
        "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>MD5</Method><Role>principle</Role><Value>a3MweCsv60kkAgzEpXeCqQ==</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>1.0.0.0</Version></Channel><Timestamp>2017-04-30T00:00:00</Timestamp></ChannelRouting></GovTalkDetails><Body><IRenvelope xmlns=\"http://www.govtalk.gov.uk/taxation/PAYE/RTI/FullPaymentSubmission/17-18/1\"><IRheader><Keys><Key Type=\"TaxOfficeNumber\">451</Key><Key Type=\"TaxOfficeReference\">A451</Key></Keys><PeriodEnd>2018-04-05</PeriodEnd><DefaultCurrency>GBP</DefaultCurrency><IRmark Type=\"generic\">ziOxiRWuQg/b6bs9Dpy5RIMxD+s=</IRmark><Sender>Employer</Sender></IRheader><FullPaymentSubmission><EmpRefs><OfficeNo>451</OfficeNo><PayeRef>A451</PayeRef><AORef>123PA1234567X</AORef></EmpRefs><RelatedTaxYear>17-18</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>2017-01-01</StartDate><StartDec>A</StartDec></Starter><PayId>EMP001</PayId><FiguresToDate><TaxablePay>2083.34</TaxablePay><TotalTax>224.80</TotalTax></FiguresToDate><Payment><PayFreq>M1</PayFreq><PmtDate>2017-04-30</PmtDate><MonthNo>1</MonthNo><PeriodsCovered>1</PeriodsCovered><HoursWorked>A</HoursWorked><TaxCode>1150L</TaxCode><TaxablePay>2083.34</TaxablePay><PayAfterStatDedns>1690.14</PayAfterStatDedns><TaxDeductedOrRefunded>224.80</TaxDeductedOrRefunded></Payment><NIlettersAndValues><NIletter>A</NIletter><GrossEarningsForNICsInPd>2083.34</GrossEarningsForNICsInPd><GrossEarningsForNICsYTD>2083.34</GrossEarningsForNICsYTD><AtLELYTD>490.00</AtLELYTD><LELtoPTYTD>190.00</LELtoPTYTD><PTtoUELYTD>1403.34</PTtoUELYTD><TotalEmpNICInPd>193.66</TotalEmpNICInPd><TotalEmpNICYTD>193.66</TotalEmpNICYTD><EmpeeContribnsInPd>168.40</EmpeeContribnsInPd><EmpeeContribnsYTD>168.40</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>C071021D2F1343B8BE7305539DF5860C</CorrelationID><ResponseEndPoint PollInterval=\"10\">https://test-transaction-engine.tax.service.gov.uk/submission</ResponseEndPoint><Transformation>XML</Transformation><GatewayTimestamp>2017-10-31T09:14:19.447</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>ziOxiRWuQg/b6bs9Dpy5RIMxD+s=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>YLVVgxBnD+vpz/KxaJ0JSJdIP9KrBuzb17o29lZeZWbJ6xHoM0vI6CaUbbpN9YAcCc57RziFYCuwGTBR06BAWZO3AmF2HjNRW/IDIQXzPVWta/QiDO+GeieFlL/w+WPLimMfT+Etzm3FxFwUo4sWqkWJidMFgKLL84NUFX6ixuDMMM+U7pqyIYpgypFrFcAuHXmoCnQKIzBs3CS7mYBRLb40As855eavmdc8pFdIPUwonWD5a1RxFMjB4HknVz04ysJR3L3q46VzwXqxew4npNasQgYZxgN0aGfVyMdZ2Ea0aFdJ7yi7yMSnrHxtgAwSsAs++gPRBODubW9KP4uHrw==</dsig:SignatureValue><dsig:KeyInfo><dsig:X509Data><dsig:X509Certificate>MIIG4TCCBcmgAwIBAgIQBYSLGPL6Qj8TgR7XbuAWnjANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJVUzEdMBsGA1UEChMUU3ltYW50ZWMgQ29ycG9yYXRpb24xHzAdBgNVBAsTFlN5bWFudGVjIFRydXN0IE5ldHdvcmsxLzAtBgNVBAMTJlN5bWFudGVjIENsYXNzIDMgU2VjdXJlIFNlcnZlciBDQSAtIEc0MB4XDTE3MDExMjAwMDAwMFoXDTE5MDQxMzIzNTk1OVowcTELMAkGA1UEBhMCR0IxEDAOBgNVBAgMB1RlbGZvcmQxEDAOBgNVBAcMB1RlbGZvcmQxHzAdBgNVBAoMFkhNIFJldmVudWUgYW5kIEN1c3RvbXMxHTAbBgNVBAMMFGlyYTc0ODMzLmhtcmMuZ292LnVrMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH6ukIs7EZdMdT50u0ZWZujNBSNFzRrcOiNsvtZiR7ws8aM5GLy2Hd7aCtnONlUiK8Nwi5TxEdmM7Wjo22b0+L4QBRX4qzJDgCXWk9WCZhjCMOzwZbnmga8S7aobpBJOEtn+y1wEg5WXRgNVsnRMzcuCWUHE+ChF0K45eemulsSLlzZyPxcqG7knraic8/ZVFMnpOVpXBoVJD61M5WpND0DYkuI0k6xDBZVyAof2XIpb4kx/WC4+bvYeW0vDoHO0dSSwaoDBCcyZq+obUMmno4RKM4arPcJVi7ozuK5QKp8rNSIU/CkEUKO6W1V2Va6MFcbKrjFDaX69wGFE0oW3hwIDAQABo4IDZjCCA2IwHwYDVR0RBBgwFoIUaXJhNzQ4MzMuaG1yYy5nb3YudWswCQYDVR0TBAIwADAOBgNVHQ8BAf8EBAMCBaAwYQYDVR0gBFowWDBWBgZngQwBAgIwTDAjBggrBgEFBQcCARYXaHR0cHM6Ly9kLnN5bWNiLmNvbS9jcHMwJQYIKwYBBQUHAgIwGQwXaHR0cHM6Ly9kLnN5bWNiLmNvbS9ycGEwKwYDVR0fBCQwIjAgoB6gHIYaaHR0cDovL3NzLnN5bWNiLmNvbS9zcy5jcmwwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMB8GA1UdIwQYMBaAFF9gz2GQVd+EQxSKYCqy9Xr0QxjvMFcGCCsGAQUFBwEBBEswSTAfBggrBgEFBQcwAYYTaHR0cDovL3NzLnN5bWNkLmNvbTAmBggrBgEFBQcwAoYaaHR0cDovL3NzLnN5bWNiLmNvbS9zcy5jcnQwggH5BgorBgEEAdZ5AgQCBIIB6QSCAeUB4wB3AN3rHSt6DU+mIIuBrYFocH4ujp0B1VyIjT0RxM227L7MAAABWZIaM8kAAAQDAEgwRgIhANz95+XzzeUyRAqtQGb3BRaxTw/x6/3fZwCFaqYWMJ1IAiEA7bQUAaSF96nqTYHZE5scLQ/7UUnw1i/dYvM15XAtuGYAdwCkuQmQtBhYFIe7E6LMZ3AKPDWYBPkb37jjd80OyA3cEAAAAVmSGjP8AAAEAwBIMEYCIQCbWGbeudMF/HNvgESuL9ZXzA6PG3maDsGcWN0AHNuRfAIhAKh+XLzSitcPnEA4FytU3r2kwA4atTOPWXiZRkI9vVoDAHYAvHjh38X2PGhGSTNNoQ+hXwl5aSAJwIG08/aRfz7ZuKUAAAFZkho0sgAABAMARzBFAiEAjtU8h3kdgoETV/SjApDRDxVBbcFItxYOUcJHOeEF5gMCIDwWzRsSk9XxUm0AajxLEAE6rFxhND/WJe/6c7GuwMHZAHcAu9nfvB+KcbWTlCOXqpJ7RzhXlQqrUugakJZkNo4e0YUAAAFZkhoz4gAABAMASDBGAiEA4dBF6ZZm8Sf6C7kl8f1wLdAz2kM4T0OKq3HWNqsbbpQCIQDnNtNi+4/DQPcJYUs46UXl5AzQ7JPHeUeW5TdLMN5CxzANBgkqhkiG9w0BAQsFAAOCAQEAHgx8/2u6z7lpb2N3yoK+ZLminFoEDVabrjaqtOGAopf9EAQ6XBp9gcEY6qsQU+Ts232P67pbR67jOSHP99P7jdBxrUOCAr/2pf3EfQlg9BqqGZlib14aw1td3v14GQA+Y6o2qHIwGNlQh1yXmwmkcfOfGV3wv6gG3zxUVSzOeqkpXO0BX4LYym9yuFyuoAHjsG71/R/FepXUyNJ/V8k7VsyYd+GWJhKDghL6D1WZWRE6Z0FaLVJX5sUYnNw2DBu202rbRZlFhRhQoU4k7MjrLmkhGODtk57c/qvPQVU+2m+Jb3/TQvrM7uP1FbPhOwGLvIKvGmvQtHNzdLjrQPkUaA==</dsig:X509Certificate></dsig:X509Data></dsig:KeyInfo></dsig:Signature><Message code=\"0000\">HMRC has received the HMRC-PAYE-RTI-FPS document ref: 451/A451 at 09.14 on 31/10/2017. The associated IRmark was: ZYR3DCIVVZBA7W7JXM6Q5HFZISBTCD7L. 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>2017-10-31T09:14:16.487</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": "2017-04-30T00:00:00",
        "SchemeCeased": {
            "@xsi:nil": "true"
        },
        "LateReason": {
            "@xsi:nil": "true"
        }
    }
}