Skip to main content
POST
/
payroll
/
importDifferentialPayrollData
importDifferentialPayrollData
curl --request POST \
  --url https://sandbox.rollfi.xyz/payroll/importDifferentialPayrollData \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "importDifferentialPayrollData",
  "companyId": "68D29B82-86FA-4B51-B16E-01346BD3F43B",
  "payPeriodId": "2412217E-E92A-46D5-A359-DF715FBF28CD",
  "payrollData": [
    {
      "userId": "CE934E2C-00A5-46A1-B925-CBD97BF07AF8",
      "firstName": "Emmanuel",
      "lastName": "Golden",
      "paymentMethod": "Direct Deposit",
      "basePay": [
        {
          "payHours": 8.75,
          "payRate": 0,
          "payCode": "BASE_PAY",
          "multiplier": 1,
          "amount": 0
        },
        {
          "payHours": 0.75,
          "payRate": 20,
          "payCode": "1151",
          "multiplier": 1,
          "amount": 15
        }
      ],
      "additionalCompensations": [
        {
          "amount": 310,
          "description": "Van Pool & Transit Passes"
        }
      ],
      "deductions": [
        {
          "description": "Qualified Parking Sup",
          "amount": 120
        }
      ],
      "reimbursements": [
        {
          "reimbursementType": "GYM",
          "amount": 120
        }
      ],
      "miscellaneousStateTaxes": [
        {
          "stateCode": "WA",
          "taxName": "Washington L&I",
          "taxDetails": [
            {
              "riskClassName": "Shop - Intra State Trucking",
              "noOfHours": 6
            }
          ]
        }
      ]
    }
  ]
}
'
import requests

url = "https://sandbox.rollfi.xyz/payroll/importDifferentialPayrollData"

payload = {
"method": "importDifferentialPayrollData",
"companyId": "68D29B82-86FA-4B51-B16E-01346BD3F43B",
"payPeriodId": "2412217E-E92A-46D5-A359-DF715FBF28CD",
"payrollData": [
{
"userId": "CE934E2C-00A5-46A1-B925-CBD97BF07AF8",
"firstName": "Emmanuel",
"lastName": "Golden",
"paymentMethod": "Direct Deposit",
"basePay": [
{
"payHours": 8.75,
"payRate": 0,
"payCode": "BASE_PAY",
"multiplier": 1,
"amount": 0
},
{
"payHours": 0.75,
"payRate": 20,
"payCode": "1151",
"multiplier": 1,
"amount": 15
}
],
"additionalCompensations": [
{
"amount": 310,
"description": "Van Pool & Transit Passes"
}
],
"deductions": [
{
"description": "Qualified Parking Sup",
"amount": 120
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
],
"miscellaneousStateTaxes": [
{
"stateCode": "WA",
"taxName": "Washington L&I",
"taxDetails": [
{
"riskClassName": "Shop - Intra State Trucking",
"noOfHours": 6
}
]
}
]
}
]
}
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: 'importDifferentialPayrollData',
companyId: '68D29B82-86FA-4B51-B16E-01346BD3F43B',
payPeriodId: '2412217E-E92A-46D5-A359-DF715FBF28CD',
payrollData: [
{
userId: 'CE934E2C-00A5-46A1-B925-CBD97BF07AF8',
firstName: 'Emmanuel',
lastName: 'Golden',
paymentMethod: 'Direct Deposit',
basePay: [
{payHours: 8.75, payRate: 0, payCode: 'BASE_PAY', multiplier: 1, amount: 0},
{payHours: 0.75, payRate: 20, payCode: '1151', multiplier: 1, amount: 15}
],
additionalCompensations: [{amount: 310, description: 'Van Pool & Transit Passes'}],
deductions: [{description: 'Qualified Parking Sup', amount: 120}],
reimbursements: [{reimbursementType: 'GYM', amount: 120}],
miscellaneousStateTaxes: [
{
stateCode: 'WA',
taxName: 'Washington L&I',
taxDetails: [{riskClassName: 'Shop - Intra State Trucking', noOfHours: 6}]
}
]
}
]
})
};

fetch('https://sandbox.rollfi.xyz/payroll/importDifferentialPayrollData', 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/importDifferentialPayrollData",
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' => 'importDifferentialPayrollData',
'companyId' => '68D29B82-86FA-4B51-B16E-01346BD3F43B',
'payPeriodId' => '2412217E-E92A-46D5-A359-DF715FBF28CD',
'payrollData' => [
[
'userId' => 'CE934E2C-00A5-46A1-B925-CBD97BF07AF8',
'firstName' => 'Emmanuel',
'lastName' => 'Golden',
'paymentMethod' => 'Direct Deposit',
'basePay' => [
[
'payHours' => 8.75,
'payRate' => 0,
'payCode' => 'BASE_PAY',
'multiplier' => 1,
'amount' => 0
],
[
'payHours' => 0.75,
'payRate' => 20,
'payCode' => '1151',
'multiplier' => 1,
'amount' => 15
]
],
'additionalCompensations' => [
[
'amount' => 310,
'description' => 'Van Pool & Transit Passes'
]
],
'deductions' => [
[
'description' => 'Qualified Parking Sup',
'amount' => 120
]
],
'reimbursements' => [
[
'reimbursementType' => 'GYM',
'amount' => 120
]
],
'miscellaneousStateTaxes' => [
[
'stateCode' => 'WA',
'taxName' => 'Washington L&I',
'taxDetails' => [
[
'riskClassName' => 'Shop - Intra State Trucking',
'noOfHours' => 6
]
]
]
]
]
]
]),
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/importDifferentialPayrollData"

payload := strings.NewReader("{\n \"method\": \"importDifferentialPayrollData\",\n \"companyId\": \"68D29B82-86FA-4B51-B16E-01346BD3F43B\",\n \"payPeriodId\": \"2412217E-E92A-46D5-A359-DF715FBF28CD\",\n \"payrollData\": [\n {\n \"userId\": \"CE934E2C-00A5-46A1-B925-CBD97BF07AF8\",\n \"firstName\": \"Emmanuel\",\n \"lastName\": \"Golden\",\n \"paymentMethod\": \"Direct Deposit\",\n \"basePay\": [\n {\n \"payHours\": 8.75,\n \"payRate\": 0,\n \"payCode\": \"BASE_PAY\",\n \"multiplier\": 1,\n \"amount\": 0\n },\n {\n \"payHours\": 0.75,\n \"payRate\": 20,\n \"payCode\": \"1151\",\n \"multiplier\": 1,\n \"amount\": 15\n }\n ],\n \"additionalCompensations\": [\n {\n \"amount\": 310,\n \"description\": \"Van Pool & Transit Passes\"\n }\n ],\n \"deductions\": [\n {\n \"description\": \"Qualified Parking Sup\",\n \"amount\": 120\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"miscellaneousStateTaxes\": [\n {\n \"stateCode\": \"WA\",\n \"taxName\": \"Washington L&I\",\n \"taxDetails\": [\n {\n \"riskClassName\": \"Shop - Intra State Trucking\",\n \"noOfHours\": 6\n }\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/importDifferentialPayrollData")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"importDifferentialPayrollData\",\n \"companyId\": \"68D29B82-86FA-4B51-B16E-01346BD3F43B\",\n \"payPeriodId\": \"2412217E-E92A-46D5-A359-DF715FBF28CD\",\n \"payrollData\": [\n {\n \"userId\": \"CE934E2C-00A5-46A1-B925-CBD97BF07AF8\",\n \"firstName\": \"Emmanuel\",\n \"lastName\": \"Golden\",\n \"paymentMethod\": \"Direct Deposit\",\n \"basePay\": [\n {\n \"payHours\": 8.75,\n \"payRate\": 0,\n \"payCode\": \"BASE_PAY\",\n \"multiplier\": 1,\n \"amount\": 0\n },\n {\n \"payHours\": 0.75,\n \"payRate\": 20,\n \"payCode\": \"1151\",\n \"multiplier\": 1,\n \"amount\": 15\n }\n ],\n \"additionalCompensations\": [\n {\n \"amount\": 310,\n \"description\": \"Van Pool & Transit Passes\"\n }\n ],\n \"deductions\": [\n {\n \"description\": \"Qualified Parking Sup\",\n \"amount\": 120\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"miscellaneousStateTaxes\": [\n {\n \"stateCode\": \"WA\",\n \"taxName\": \"Washington L&I\",\n \"taxDetails\": [\n {\n \"riskClassName\": \"Shop - Intra State Trucking\",\n \"noOfHours\": 6\n }\n ]\n }\n ]\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sandbox.rollfi.xyz/payroll/importDifferentialPayrollData")

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\": \"importDifferentialPayrollData\",\n \"companyId\": \"68D29B82-86FA-4B51-B16E-01346BD3F43B\",\n \"payPeriodId\": \"2412217E-E92A-46D5-A359-DF715FBF28CD\",\n \"payrollData\": [\n {\n \"userId\": \"CE934E2C-00A5-46A1-B925-CBD97BF07AF8\",\n \"firstName\": \"Emmanuel\",\n \"lastName\": \"Golden\",\n \"paymentMethod\": \"Direct Deposit\",\n \"basePay\": [\n {\n \"payHours\": 8.75,\n \"payRate\": 0,\n \"payCode\": \"BASE_PAY\",\n \"multiplier\": 1,\n \"amount\": 0\n },\n {\n \"payHours\": 0.75,\n \"payRate\": 20,\n \"payCode\": \"1151\",\n \"multiplier\": 1,\n \"amount\": 15\n }\n ],\n \"additionalCompensations\": [\n {\n \"amount\": 310,\n \"description\": \"Van Pool & Transit Passes\"\n }\n ],\n \"deductions\": [\n {\n \"description\": \"Qualified Parking Sup\",\n \"amount\": 120\n }\n ],\n \"reimbursements\": [\n {\n \"reimbursementType\": \"GYM\",\n \"amount\": 120\n }\n ],\n \"miscellaneousStateTaxes\": [\n {\n \"stateCode\": \"WA\",\n \"taxName\": \"Washington L&I\",\n \"taxDetails\": [\n {\n \"riskClassName\": \"Shop - Intra State Trucking\",\n \"noOfHours\": 6\n }\n ]\n }\n ]\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "importDifferntiaPayrollData": {
    "status": "Ready",
    "message": "Imported Differential Payroll Data Successfully"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
method
string
required
companyId
string
required
payPeriodId
string
required
payrollData
object[]
required

Response

importDifferntiaPayrollData
object
required