importPayrollHistory
curl --request POST \
--url https://sandbox.rollfi.xyz/payroll/importPayrollHistory \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "importPayrollHistory",
"companyName": "paystub ytd test inc",
"payPeriod": {
"payPeriodType": "Regular",
"workerType": "W2",
"payBeginDate": "2025-04-01",
"payEndDate": "2025-06-30",
"deadLineToRunPayroll": "2025-06-26",
"payDate": "2025-06-30",
"payrollData": [
{
"firstName": "Jeromy",
"middleName": "",
"lastName": "Asp",
"payDetails": {
"baseTotal": 7324.42,
"grossTotal": 9284.8,
"netTotal": 7529.69,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
},
{
"description": "Severance Pay",
"amount": 777.78
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 10,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 604.55
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 440.27
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 10.36
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 89.13
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9.28
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.46
}
]
},
{
"firstName": "Carrie",
"middleName": "",
"lastName": "Fricke",
"payDetails": {
"baseTotal": 9000,
"grossTotal": 9000,
"netTotal": 7590,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 20,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 570.36
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 151.14
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 6
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 86.4
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.32
}
]
}
]
}
}
'import requests
url = "https://sandbox.rollfi.xyz/payroll/importPayrollHistory"
payload = {
"method": "importPayrollHistory",
"companyName": "paystub ytd test inc",
"payPeriod": {
"payPeriodType": "Regular",
"workerType": "W2",
"payBeginDate": "2025-04-01",
"payEndDate": "2025-06-30",
"deadLineToRunPayroll": "2025-06-26",
"payDate": "2025-06-30",
"payrollData": [
{
"firstName": "Jeromy",
"middleName": "",
"lastName": "Asp",
"payDetails": {
"baseTotal": 7324.42,
"grossTotal": 9284.8,
"netTotal": 7529.69,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
},
{
"description": "Severance Pay",
"amount": 777.78
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 10,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 604.55
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 440.27
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 10.36
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 89.13
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9.28
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.46
}
]
},
{
"firstName": "Carrie",
"middleName": "",
"lastName": "Fricke",
"payDetails": {
"baseTotal": 9000,
"grossTotal": 9000,
"netTotal": 7590,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 20,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 570.36
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 151.14
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 6
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 86.4
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.32
}
]
}
]
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'importPayrollHistory',
companyName: 'paystub ytd test inc',
payPeriod: {
payPeriodType: 'Regular',
workerType: 'W2',
payBeginDate: '2025-04-01',
payEndDate: '2025-06-30',
deadLineToRunPayroll: '2025-06-26',
payDate: '2025-06-30',
payrollData: [
{
firstName: 'Jeromy',
middleName: '',
lastName: 'Asp',
payDetails: {baseTotal: 7324.42, grossTotal: 9284.8, netTotal: 7529.69, payRate: 0},
additionalCompensation: [
{description: 'Bonus', amount: 1024.92},
{description: 'Qualified Parking', amount: 157.68},
{description: 'Severance Pay', amount: 777.78}
],
overTime: [{type: 'Comp off OT', noOfHours: 10, multiplier: 1}],
deductions: [
{description: '403B CU 15 year Reg', amount: 10},
{description: '125DC Reg', amount: 50}
],
reimbursements: [{reimbursementType: 'GYM', amount: 120}],
taxCalculationResponses: [
{
taxState: 'FED',
taxName: 'Federal Income Tax',
taxType: 'Employee',
taxAmount: 604.55
},
{
taxState: 'FED',
taxName: 'Social Security',
taxType: 'Employee',
taxAmount: 575.66
},
{taxState: 'FED', taxName: 'Medicare', taxType: 'Employee', taxAmount: 134.63},
{taxState: 'MN', taxName: 'Income Tax', taxType: 'Employee', taxAmount: 440.27},
{
taxState: 'FED',
taxName: 'FUTA Employer',
taxType: 'Employer',
taxAmount: 10.36
},
{
taxState: 'FED',
taxName: 'Social Security Employer',
taxType: 'Employer',
taxAmount: 575.66
},
{
taxState: 'FED',
taxName: 'Medicare Employer',
taxType: 'Employer',
taxAmount: 134.63
},
{taxState: 'MN', taxName: 'SUI Employer', taxType: 'Employer', taxAmount: 89.13},
{
taxState: 'MN',
taxName: 'Workforce Development Fee',
taxType: 'Employer',
taxAmount: 9.28
},
{
taxState: 'MN',
taxName: 'Additional Assessment',
taxType: 'Employer',
taxAmount: 4.46
}
]
},
{
firstName: 'Carrie',
middleName: '',
lastName: 'Fricke',
payDetails: {baseTotal: 9000, grossTotal: 9000, netTotal: 7590, payRate: 0},
additionalCompensation: [
{description: 'Bonus', amount: 1024.92},
{description: 'Qualified Parking', amount: 157.68}
],
overTime: [{type: 'Comp off OT', noOfHours: 20, multiplier: 1}],
deductions: [
{description: '403B CU 15 year Reg', amount: 10},
{description: '125DC Reg', amount: 50}
],
reimbursements: [{reimbursementType: 'GYM', amount: 120}],
taxCalculationResponses: [
{
taxState: 'FED',
taxName: 'Federal Income Tax',
taxType: 'Employee',
taxAmount: 570.36
},
{
taxState: 'FED',
taxName: 'Social Security',
taxType: 'Employee',
taxAmount: 558
},
{taxState: 'FED', taxName: 'Medicare', taxType: 'Employee', taxAmount: 130.5},
{taxState: 'MN', taxName: 'Income Tax', taxType: 'Employee', taxAmount: 151.14},
{taxState: 'FED', taxName: 'FUTA Employer', taxType: 'Employer', taxAmount: 6},
{
taxState: 'FED',
taxName: 'Social Security Employer',
taxType: 'Employer',
taxAmount: 558
},
{
taxState: 'FED',
taxName: 'Medicare Employer',
taxType: 'Employer',
taxAmount: 130.5
},
{taxState: 'MN', taxName: 'SUI Employer', taxType: 'Employer', taxAmount: 86.4},
{
taxState: 'MN',
taxName: 'Workforce Development Fee',
taxType: 'Employer',
taxAmount: 9
},
{
taxState: 'MN',
taxName: 'Additional Assessment',
taxType: 'Employer',
taxAmount: 4.32
}
]
}
]
}
})
};
fetch('https://sandbox.rollfi.xyz/payroll/importPayrollHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.rollfi.xyz/payroll/importPayrollHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'importPayrollHistory',
'companyName' => 'paystub ytd test inc',
'payPeriod' => [
'payPeriodType' => 'Regular',
'workerType' => 'W2',
'payBeginDate' => '2025-04-01',
'payEndDate' => '2025-06-30',
'deadLineToRunPayroll' => '2025-06-26',
'payDate' => '2025-06-30',
'payrollData' => [
[
'firstName' => 'Jeromy',
'middleName' => '',
'lastName' => 'Asp',
'payDetails' => [
'baseTotal' => 7324.42,
'grossTotal' => 9284.8,
'netTotal' => 7529.69,
'payRate' => 0
],
'additionalCompensation' => [
[
'description' => 'Bonus',
'amount' => 1024.92
],
[
'description' => 'Qualified Parking',
'amount' => 157.68
],
[
'description' => 'Severance Pay',
'amount' => 777.78
]
],
'overTime' => [
[
'type' => 'Comp off OT',
'noOfHours' => 10,
'multiplier' => 1
]
],
'deductions' => [
[
'description' => '403B CU 15 year Reg',
'amount' => 10
],
[
'description' => '125DC Reg',
'amount' => 50
]
],
'reimbursements' => [
[
'reimbursementType' => 'GYM',
'amount' => 120
]
],
'taxCalculationResponses' => [
[
'taxState' => 'FED',
'taxName' => 'Federal Income Tax',
'taxType' => 'Employee',
'taxAmount' => 604.55
],
[
'taxState' => 'FED',
'taxName' => 'Social Security',
'taxType' => 'Employee',
'taxAmount' => 575.66
],
[
'taxState' => 'FED',
'taxName' => 'Medicare',
'taxType' => 'Employee',
'taxAmount' => 134.63
],
[
'taxState' => 'MN',
'taxName' => 'Income Tax',
'taxType' => 'Employee',
'taxAmount' => 440.27
],
[
'taxState' => 'FED',
'taxName' => 'FUTA Employer',
'taxType' => 'Employer',
'taxAmount' => 10.36
],
[
'taxState' => 'FED',
'taxName' => 'Social Security Employer',
'taxType' => 'Employer',
'taxAmount' => 575.66
],
[
'taxState' => 'FED',
'taxName' => 'Medicare Employer',
'taxType' => 'Employer',
'taxAmount' => 134.63
],
[
'taxState' => 'MN',
'taxName' => 'SUI Employer',
'taxType' => 'Employer',
'taxAmount' => 89.13
],
[
'taxState' => 'MN',
'taxName' => 'Workforce Development Fee',
'taxType' => 'Employer',
'taxAmount' => 9.28
],
[
'taxState' => 'MN',
'taxName' => 'Additional Assessment',
'taxType' => 'Employer',
'taxAmount' => 4.46
]
]
],
[
'firstName' => 'Carrie',
'middleName' => '',
'lastName' => 'Fricke',
'payDetails' => [
'baseTotal' => 9000,
'grossTotal' => 9000,
'netTotal' => 7590,
'payRate' => 0
],
'additionalCompensation' => [
[
'description' => 'Bonus',
'amount' => 1024.92
],
[
'description' => 'Qualified Parking',
'amount' => 157.68
]
],
'overTime' => [
[
'type' => 'Comp off OT',
'noOfHours' => 20,
'multiplier' => 1
]
],
'deductions' => [
[
'description' => '403B CU 15 year Reg',
'amount' => 10
],
[
'description' => '125DC Reg',
'amount' => 50
]
],
'reimbursements' => [
[
'reimbursementType' => 'GYM',
'amount' => 120
]
],
'taxCalculationResponses' => [
[
'taxState' => 'FED',
'taxName' => 'Federal Income Tax',
'taxType' => 'Employee',
'taxAmount' => 570.36
],
[
'taxState' => 'FED',
'taxName' => 'Social Security',
'taxType' => 'Employee',
'taxAmount' => 558
],
[
'taxState' => 'FED',
'taxName' => 'Medicare',
'taxType' => 'Employee',
'taxAmount' => 130.5
],
[
'taxState' => 'MN',
'taxName' => 'Income Tax',
'taxType' => 'Employee',
'taxAmount' => 151.14
],
[
'taxState' => 'FED',
'taxName' => 'FUTA Employer',
'taxType' => 'Employer',
'taxAmount' => 6
],
[
'taxState' => 'FED',
'taxName' => 'Social Security Employer',
'taxType' => 'Employer',
'taxAmount' => 558
],
[
'taxState' => 'FED',
'taxName' => 'Medicare Employer',
'taxType' => 'Employer',
'taxAmount' => 130.5
],
[
'taxState' => 'MN',
'taxName' => 'SUI Employer',
'taxType' => 'Employer',
'taxAmount' => 86.4
],
[
'taxState' => 'MN',
'taxName' => 'Workforce Development Fee',
'taxType' => 'Employer',
'taxAmount' => 9
],
[
'taxState' => 'MN',
'taxName' => 'Additional Assessment',
'taxType' => 'Employer',
'taxAmount' => 4.32
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.rollfi.xyz/payroll/importPayrollHistory"
payload := strings.NewReader("{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.rollfi.xyz/payroll/importPayrollHistory")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/payroll/importPayrollHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"importPayrollHistory": {
"payPeriodId": "E80A9618-6046-4A5C-BC9F-44A2A0E9B9A0",
"status": "Ready",
"message": "Payroll history imported successfully"
}
}{
"error": {
"code": 400,
"message": "Invalid payPeriodType: Normal"
}
}Payroll
importPayrollHistory
The importPayrollHistory API loads a completed pay period into Rollfi so legacy payroll appears in reports and year-to-date calculations.
When to use:
- When a company onboards in the middle of the year with payroll history from another payroll provider
- When backfilling prior pay information so employees see accurate YTD totals
Notes:
- Either companyId or companyName is required to import data, you do not need to include both
- Accurate reporting is required to calculate YTD totals and tax withholding information for employers and employees
POST
/
payroll
/
importPayrollHistory
importPayrollHistory
curl --request POST \
--url https://sandbox.rollfi.xyz/payroll/importPayrollHistory \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "importPayrollHistory",
"companyName": "paystub ytd test inc",
"payPeriod": {
"payPeriodType": "Regular",
"workerType": "W2",
"payBeginDate": "2025-04-01",
"payEndDate": "2025-06-30",
"deadLineToRunPayroll": "2025-06-26",
"payDate": "2025-06-30",
"payrollData": [
{
"firstName": "Jeromy",
"middleName": "",
"lastName": "Asp",
"payDetails": {
"baseTotal": 7324.42,
"grossTotal": 9284.8,
"netTotal": 7529.69,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
},
{
"description": "Severance Pay",
"amount": 777.78
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 10,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 604.55
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 440.27
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 10.36
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 89.13
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9.28
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.46
}
]
},
{
"firstName": "Carrie",
"middleName": "",
"lastName": "Fricke",
"payDetails": {
"baseTotal": 9000,
"grossTotal": 9000,
"netTotal": 7590,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 20,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 570.36
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 151.14
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 6
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 86.4
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.32
}
]
}
]
}
}
'import requests
url = "https://sandbox.rollfi.xyz/payroll/importPayrollHistory"
payload = {
"method": "importPayrollHistory",
"companyName": "paystub ytd test inc",
"payPeriod": {
"payPeriodType": "Regular",
"workerType": "W2",
"payBeginDate": "2025-04-01",
"payEndDate": "2025-06-30",
"deadLineToRunPayroll": "2025-06-26",
"payDate": "2025-06-30",
"payrollData": [
{
"firstName": "Jeromy",
"middleName": "",
"lastName": "Asp",
"payDetails": {
"baseTotal": 7324.42,
"grossTotal": 9284.8,
"netTotal": 7529.69,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
},
{
"description": "Severance Pay",
"amount": 777.78
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 10,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 604.55
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 440.27
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 10.36
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 575.66
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 134.63
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 89.13
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9.28
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.46
}
]
},
{
"firstName": "Carrie",
"middleName": "",
"lastName": "Fricke",
"payDetails": {
"baseTotal": 9000,
"grossTotal": 9000,
"netTotal": 7590,
"payRate": 0
},
"additionalCompensation": [
{
"description": "Bonus",
"amount": 1024.92
},
{
"description": "Qualified Parking",
"amount": 157.68
}
],
"overTime": [
{
"type": "Comp off OT",
"noOfHours": 20,
"multiplier": 1
}
],
"deductions": [
{
"description": "403B CU 15 year Reg",
"amount": 10
},
{
"description": "125DC Reg",
"amount": 50
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"taxCalculationResponses": [
{
"taxState": "FED",
"taxName": "Federal Income Tax",
"taxType": "Employee",
"taxAmount": 570.36
},
{
"taxState": "FED",
"taxName": "Social Security",
"taxType": "Employee",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare",
"taxType": "Employee",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "Income Tax",
"taxType": "Employee",
"taxAmount": 151.14
},
{
"taxState": "FED",
"taxName": "FUTA Employer",
"taxType": "Employer",
"taxAmount": 6
},
{
"taxState": "FED",
"taxName": "Social Security Employer",
"taxType": "Employer",
"taxAmount": 558
},
{
"taxState": "FED",
"taxName": "Medicare Employer",
"taxType": "Employer",
"taxAmount": 130.5
},
{
"taxState": "MN",
"taxName": "SUI Employer",
"taxType": "Employer",
"taxAmount": 86.4
},
{
"taxState": "MN",
"taxName": "Workforce Development Fee",
"taxType": "Employer",
"taxAmount": 9
},
{
"taxState": "MN",
"taxName": "Additional Assessment",
"taxType": "Employer",
"taxAmount": 4.32
}
]
}
]
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'importPayrollHistory',
companyName: 'paystub ytd test inc',
payPeriod: {
payPeriodType: 'Regular',
workerType: 'W2',
payBeginDate: '2025-04-01',
payEndDate: '2025-06-30',
deadLineToRunPayroll: '2025-06-26',
payDate: '2025-06-30',
payrollData: [
{
firstName: 'Jeromy',
middleName: '',
lastName: 'Asp',
payDetails: {baseTotal: 7324.42, grossTotal: 9284.8, netTotal: 7529.69, payRate: 0},
additionalCompensation: [
{description: 'Bonus', amount: 1024.92},
{description: 'Qualified Parking', amount: 157.68},
{description: 'Severance Pay', amount: 777.78}
],
overTime: [{type: 'Comp off OT', noOfHours: 10, multiplier: 1}],
deductions: [
{description: '403B CU 15 year Reg', amount: 10},
{description: '125DC Reg', amount: 50}
],
reimbursements: [{reimbursementType: 'GYM', amount: 120}],
taxCalculationResponses: [
{
taxState: 'FED',
taxName: 'Federal Income Tax',
taxType: 'Employee',
taxAmount: 604.55
},
{
taxState: 'FED',
taxName: 'Social Security',
taxType: 'Employee',
taxAmount: 575.66
},
{taxState: 'FED', taxName: 'Medicare', taxType: 'Employee', taxAmount: 134.63},
{taxState: 'MN', taxName: 'Income Tax', taxType: 'Employee', taxAmount: 440.27},
{
taxState: 'FED',
taxName: 'FUTA Employer',
taxType: 'Employer',
taxAmount: 10.36
},
{
taxState: 'FED',
taxName: 'Social Security Employer',
taxType: 'Employer',
taxAmount: 575.66
},
{
taxState: 'FED',
taxName: 'Medicare Employer',
taxType: 'Employer',
taxAmount: 134.63
},
{taxState: 'MN', taxName: 'SUI Employer', taxType: 'Employer', taxAmount: 89.13},
{
taxState: 'MN',
taxName: 'Workforce Development Fee',
taxType: 'Employer',
taxAmount: 9.28
},
{
taxState: 'MN',
taxName: 'Additional Assessment',
taxType: 'Employer',
taxAmount: 4.46
}
]
},
{
firstName: 'Carrie',
middleName: '',
lastName: 'Fricke',
payDetails: {baseTotal: 9000, grossTotal: 9000, netTotal: 7590, payRate: 0},
additionalCompensation: [
{description: 'Bonus', amount: 1024.92},
{description: 'Qualified Parking', amount: 157.68}
],
overTime: [{type: 'Comp off OT', noOfHours: 20, multiplier: 1}],
deductions: [
{description: '403B CU 15 year Reg', amount: 10},
{description: '125DC Reg', amount: 50}
],
reimbursements: [{reimbursementType: 'GYM', amount: 120}],
taxCalculationResponses: [
{
taxState: 'FED',
taxName: 'Federal Income Tax',
taxType: 'Employee',
taxAmount: 570.36
},
{
taxState: 'FED',
taxName: 'Social Security',
taxType: 'Employee',
taxAmount: 558
},
{taxState: 'FED', taxName: 'Medicare', taxType: 'Employee', taxAmount: 130.5},
{taxState: 'MN', taxName: 'Income Tax', taxType: 'Employee', taxAmount: 151.14},
{taxState: 'FED', taxName: 'FUTA Employer', taxType: 'Employer', taxAmount: 6},
{
taxState: 'FED',
taxName: 'Social Security Employer',
taxType: 'Employer',
taxAmount: 558
},
{
taxState: 'FED',
taxName: 'Medicare Employer',
taxType: 'Employer',
taxAmount: 130.5
},
{taxState: 'MN', taxName: 'SUI Employer', taxType: 'Employer', taxAmount: 86.4},
{
taxState: 'MN',
taxName: 'Workforce Development Fee',
taxType: 'Employer',
taxAmount: 9
},
{
taxState: 'MN',
taxName: 'Additional Assessment',
taxType: 'Employer',
taxAmount: 4.32
}
]
}
]
}
})
};
fetch('https://sandbox.rollfi.xyz/payroll/importPayrollHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.rollfi.xyz/payroll/importPayrollHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'importPayrollHistory',
'companyName' => 'paystub ytd test inc',
'payPeriod' => [
'payPeriodType' => 'Regular',
'workerType' => 'W2',
'payBeginDate' => '2025-04-01',
'payEndDate' => '2025-06-30',
'deadLineToRunPayroll' => '2025-06-26',
'payDate' => '2025-06-30',
'payrollData' => [
[
'firstName' => 'Jeromy',
'middleName' => '',
'lastName' => 'Asp',
'payDetails' => [
'baseTotal' => 7324.42,
'grossTotal' => 9284.8,
'netTotal' => 7529.69,
'payRate' => 0
],
'additionalCompensation' => [
[
'description' => 'Bonus',
'amount' => 1024.92
],
[
'description' => 'Qualified Parking',
'amount' => 157.68
],
[
'description' => 'Severance Pay',
'amount' => 777.78
]
],
'overTime' => [
[
'type' => 'Comp off OT',
'noOfHours' => 10,
'multiplier' => 1
]
],
'deductions' => [
[
'description' => '403B CU 15 year Reg',
'amount' => 10
],
[
'description' => '125DC Reg',
'amount' => 50
]
],
'reimbursements' => [
[
'reimbursementType' => 'GYM',
'amount' => 120
]
],
'taxCalculationResponses' => [
[
'taxState' => 'FED',
'taxName' => 'Federal Income Tax',
'taxType' => 'Employee',
'taxAmount' => 604.55
],
[
'taxState' => 'FED',
'taxName' => 'Social Security',
'taxType' => 'Employee',
'taxAmount' => 575.66
],
[
'taxState' => 'FED',
'taxName' => 'Medicare',
'taxType' => 'Employee',
'taxAmount' => 134.63
],
[
'taxState' => 'MN',
'taxName' => 'Income Tax',
'taxType' => 'Employee',
'taxAmount' => 440.27
],
[
'taxState' => 'FED',
'taxName' => 'FUTA Employer',
'taxType' => 'Employer',
'taxAmount' => 10.36
],
[
'taxState' => 'FED',
'taxName' => 'Social Security Employer',
'taxType' => 'Employer',
'taxAmount' => 575.66
],
[
'taxState' => 'FED',
'taxName' => 'Medicare Employer',
'taxType' => 'Employer',
'taxAmount' => 134.63
],
[
'taxState' => 'MN',
'taxName' => 'SUI Employer',
'taxType' => 'Employer',
'taxAmount' => 89.13
],
[
'taxState' => 'MN',
'taxName' => 'Workforce Development Fee',
'taxType' => 'Employer',
'taxAmount' => 9.28
],
[
'taxState' => 'MN',
'taxName' => 'Additional Assessment',
'taxType' => 'Employer',
'taxAmount' => 4.46
]
]
],
[
'firstName' => 'Carrie',
'middleName' => '',
'lastName' => 'Fricke',
'payDetails' => [
'baseTotal' => 9000,
'grossTotal' => 9000,
'netTotal' => 7590,
'payRate' => 0
],
'additionalCompensation' => [
[
'description' => 'Bonus',
'amount' => 1024.92
],
[
'description' => 'Qualified Parking',
'amount' => 157.68
]
],
'overTime' => [
[
'type' => 'Comp off OT',
'noOfHours' => 20,
'multiplier' => 1
]
],
'deductions' => [
[
'description' => '403B CU 15 year Reg',
'amount' => 10
],
[
'description' => '125DC Reg',
'amount' => 50
]
],
'reimbursements' => [
[
'reimbursementType' => 'GYM',
'amount' => 120
]
],
'taxCalculationResponses' => [
[
'taxState' => 'FED',
'taxName' => 'Federal Income Tax',
'taxType' => 'Employee',
'taxAmount' => 570.36
],
[
'taxState' => 'FED',
'taxName' => 'Social Security',
'taxType' => 'Employee',
'taxAmount' => 558
],
[
'taxState' => 'FED',
'taxName' => 'Medicare',
'taxType' => 'Employee',
'taxAmount' => 130.5
],
[
'taxState' => 'MN',
'taxName' => 'Income Tax',
'taxType' => 'Employee',
'taxAmount' => 151.14
],
[
'taxState' => 'FED',
'taxName' => 'FUTA Employer',
'taxType' => 'Employer',
'taxAmount' => 6
],
[
'taxState' => 'FED',
'taxName' => 'Social Security Employer',
'taxType' => 'Employer',
'taxAmount' => 558
],
[
'taxState' => 'FED',
'taxName' => 'Medicare Employer',
'taxType' => 'Employer',
'taxAmount' => 130.5
],
[
'taxState' => 'MN',
'taxName' => 'SUI Employer',
'taxType' => 'Employer',
'taxAmount' => 86.4
],
[
'taxState' => 'MN',
'taxName' => 'Workforce Development Fee',
'taxType' => 'Employer',
'taxAmount' => 9
],
[
'taxState' => 'MN',
'taxName' => 'Additional Assessment',
'taxType' => 'Employer',
'taxAmount' => 4.32
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.rollfi.xyz/payroll/importPayrollHistory"
payload := strings.NewReader("{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.rollfi.xyz/payroll/importPayrollHistory")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/payroll/importPayrollHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"importPayrollHistory\",\n \"companyName\": \"paystub ytd test inc\",\n \"payPeriod\": {\n \"payPeriodType\": \"Regular\",\n \"workerType\": \"W2\",\n \"payBeginDate\": \"2025-04-01\",\n \"payEndDate\": \"2025-06-30\",\n \"deadLineToRunPayroll\": \"2025-06-26\",\n \"payDate\": \"2025-06-30\",\n \"payrollData\": [\n {\n \"firstName\": \"Jeromy\",\n \"middleName\": \"\",\n \"lastName\": \"Asp\",\n \"payDetails\": {\n \"baseTotal\": 7324.42,\n \"grossTotal\": 9284.8,\n \"netTotal\": 7529.69,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n },\n {\n \"description\": \"Severance Pay\",\n \"amount\": 777.78\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 10,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 604.55\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 440.27\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 10.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 575.66\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 134.63\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 89.13\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9.28\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.46\n }\n ]\n },\n {\n \"firstName\": \"Carrie\",\n \"middleName\": \"\",\n \"lastName\": \"Fricke\",\n \"payDetails\": {\n \"baseTotal\": 9000,\n \"grossTotal\": 9000,\n \"netTotal\": 7590,\n \"payRate\": 0\n },\n \"additionalCompensation\": [\n {\n \"description\": \"Bonus\",\n \"amount\": 1024.92\n },\n {\n \"description\": \"Qualified Parking\",\n \"amount\": 157.68\n }\n ],\n \"overTime\": [\n {\n \"type\": \"Comp off OT\",\n \"noOfHours\": 20,\n \"multiplier\": 1\n }\n ],\n \"deductions\": [\n {\n \"description\": \"403B CU 15 year Reg\",\n \"amount\": 10\n },\n {\n \"description\": \"125DC Reg\",\n \"amount\": 50\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"taxCalculationResponses\": [\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Federal Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 570.36\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Income Tax\",\n \"taxType\": \"Employee\",\n \"taxAmount\": 151.14\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"FUTA Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 6\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Social Security Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 558\n },\n {\n \"taxState\": \"FED\",\n \"taxName\": \"Medicare Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 130.5\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"SUI Employer\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 86.4\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Workforce Development Fee\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 9\n },\n {\n \"taxState\": \"MN\",\n \"taxName\": \"Additional Assessment\",\n \"taxType\": \"Employer\",\n \"taxAmount\": 4.32\n }\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"importPayrollHistory": {
"payPeriodId": "E80A9618-6046-4A5C-BC9F-44A2A0E9B9A0",
"status": "Ready",
"message": "Payroll history imported successfully"
}
}{
"error": {
"code": 400,
"message": "Invalid payPeriodType: Normal"
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Show child attributes
Show child attributes
⌘I
