updatePayrollLineItemTaxAdjustment
curl --request PUT \
--url https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "updatePayrollLineItemTaxAdjustment",
"companyId": "C2019899-9EEF-49F7-9B51-70744AFAFE61",
"payPeriodId": "9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3",
"employeeId": "91B2952B-664E-42D2-B3AA-CCAFC9CE00A6",
"taxName": "Federal Withholding Tax",
"amount": 55
}
'import requests
url = "https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment"
payload = {
"method": "updatePayrollLineItemTaxAdjustment",
"companyId": "C2019899-9EEF-49F7-9B51-70744AFAFE61",
"payPeriodId": "9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3",
"employeeId": "91B2952B-664E-42D2-B3AA-CCAFC9CE00A6",
"taxName": "Federal Withholding Tax",
"amount": 55
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'updatePayrollLineItemTaxAdjustment',
companyId: 'C2019899-9EEF-49F7-9B51-70744AFAFE61',
payPeriodId: '9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3',
employeeId: '91B2952B-664E-42D2-B3AA-CCAFC9CE00A6',
taxName: 'Federal Withholding Tax',
amount: 55
})
};
fetch('https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment', 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/updatePayrollLineItemTaxAdjustment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'updatePayrollLineItemTaxAdjustment',
'companyId' => 'C2019899-9EEF-49F7-9B51-70744AFAFE61',
'payPeriodId' => '9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3',
'employeeId' => '91B2952B-664E-42D2-B3AA-CCAFC9CE00A6',
'taxName' => 'Federal Withholding Tax',
'amount' => 55
]),
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/updatePayrollLineItemTaxAdjustment"
payload := strings.NewReader("{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Tax adjustment updated successfully"
}{
"error": {
"code": 404,
"message": "Tax adjustment not found for the specified parameters. Please ensure the tax adjustment exists before attempting to update."
}
}Payroll
updatePayrollLineItemTaxAdjustment
The updatePayrollLineItemTaxAdjustment API is used to correct a tax adjustment that has been added to an employee for a pay period
When to use:
- When correcting tax adjustment mistakes before payroll submission
Notes:
- The employee must have a tax adjustment applied in the specified pay period with the given
taxName - Amount overwrites the existing calculated tax value entirely, it does not subtract
PUT
/
payroll
/
updatePayrollLineItemTaxAdjustment
updatePayrollLineItemTaxAdjustment
curl --request PUT \
--url https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "updatePayrollLineItemTaxAdjustment",
"companyId": "C2019899-9EEF-49F7-9B51-70744AFAFE61",
"payPeriodId": "9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3",
"employeeId": "91B2952B-664E-42D2-B3AA-CCAFC9CE00A6",
"taxName": "Federal Withholding Tax",
"amount": 55
}
'import requests
url = "https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment"
payload = {
"method": "updatePayrollLineItemTaxAdjustment",
"companyId": "C2019899-9EEF-49F7-9B51-70744AFAFE61",
"payPeriodId": "9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3",
"employeeId": "91B2952B-664E-42D2-B3AA-CCAFC9CE00A6",
"taxName": "Federal Withholding Tax",
"amount": 55
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'updatePayrollLineItemTaxAdjustment',
companyId: 'C2019899-9EEF-49F7-9B51-70744AFAFE61',
payPeriodId: '9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3',
employeeId: '91B2952B-664E-42D2-B3AA-CCAFC9CE00A6',
taxName: 'Federal Withholding Tax',
amount: 55
})
};
fetch('https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment', 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/updatePayrollLineItemTaxAdjustment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'updatePayrollLineItemTaxAdjustment',
'companyId' => 'C2019899-9EEF-49F7-9B51-70744AFAFE61',
'payPeriodId' => '9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3',
'employeeId' => '91B2952B-664E-42D2-B3AA-CCAFC9CE00A6',
'taxName' => 'Federal Withholding Tax',
'amount' => 55
]),
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/updatePayrollLineItemTaxAdjustment"
payload := strings.NewReader("{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/payroll/updatePayrollLineItemTaxAdjustment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"updatePayrollLineItemTaxAdjustment\",\n \"companyId\": \"C2019899-9EEF-49F7-9B51-70744AFAFE61\",\n \"payPeriodId\": \"9BF440AF-9BE8-49B7-8F5E-0673E35CB5B3\",\n \"employeeId\": \"91B2952B-664E-42D2-B3AA-CCAFC9CE00A6\",\n \"taxName\": \"Federal Withholding Tax\",\n \"amount\": 55\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Tax adjustment updated successfully"
}{
"error": {
"code": 404,
"message": "Tax adjustment not found for the specified parameters. Please ensure the tax adjustment exists before attempting to update."
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
⌘I
