addUserWage
curl --request POST \
--url https://sandbox.rollfi.xyz/adminPortal/addUserWage \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "addUserWage",
"userWage": {
"companyId": "AE36FED3-0FDE-41F7-8312-C29FACD0E9EC",
"userId": "7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12",
"differentialPay": "No",
"wageRate": 111,
"workerType": "W2",
"wageBasis": "Per Week",
"userType": "Salary/Eligible for overtime",
"employmentStatus": "Full Time (30+ Hours per week)",
"userRefTaxExempt": "Yes, as an owner/corporate officer",
"startDate": "2023-02-25",
"paymentMethod": "Direct Deposit"
}
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/addUserWage"
payload = {
"method": "addUserWage",
"userWage": {
"companyId": "AE36FED3-0FDE-41F7-8312-C29FACD0E9EC",
"userId": "7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12",
"differentialPay": "No",
"wageRate": 111,
"workerType": "W2",
"wageBasis": "Per Week",
"userType": "Salary/Eligible for overtime",
"employmentStatus": "Full Time (30+ Hours per week)",
"userRefTaxExempt": "Yes, as an owner/corporate officer",
"startDate": "2023-02-25",
"paymentMethod": "Direct Deposit"
}
}
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: 'addUserWage',
userWage: {
companyId: 'AE36FED3-0FDE-41F7-8312-C29FACD0E9EC',
userId: '7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12',
differentialPay: 'No',
wageRate: 111,
workerType: 'W2',
wageBasis: 'Per Week',
userType: 'Salary/Eligible for overtime',
employmentStatus: 'Full Time (30+ Hours per week)',
userRefTaxExempt: 'Yes, as an owner/corporate officer',
startDate: '2023-02-25',
paymentMethod: 'Direct Deposit'
}
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/addUserWage', 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/adminPortal/addUserWage",
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' => 'addUserWage',
'userWage' => [
'companyId' => 'AE36FED3-0FDE-41F7-8312-C29FACD0E9EC',
'userId' => '7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12',
'differentialPay' => 'No',
'wageRate' => 111,
'workerType' => 'W2',
'wageBasis' => 'Per Week',
'userType' => 'Salary/Eligible for overtime',
'employmentStatus' => 'Full Time (30+ Hours per week)',
'userRefTaxExempt' => 'Yes, as an owner/corporate officer',
'startDate' => '2023-02-25',
'paymentMethod' => 'Direct Deposit'
]
]),
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/adminPortal/addUserWage"
payload := strings.NewReader("{\n \"method\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\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/adminPortal/addUserWage")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/addUserWage")
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\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\n }\n}"
response = http.request(request)
puts response.read_body{
"userWage": {
"userWageId": "739BC4C4-2D79-431A-B0FF-489BADB70D9C",
"status": "Verification Pending",
"message": "User Wage for jacob king has been saved successfully."
}
}{
"error": {
"code": 400,
"message": "Invalid date format"
}
}Admin Portal
addUserWage
Sets up wage information for an employee or contractor.
Required After
- Must call
addUserfirst - Employee must exist in system
Wage Basis Options
- “Per Hour” - Hourly employees
- “Per Week” - Weekly salary
- “Per Month” - Monthly salary
- “Per Year” - Annual salary
Worker Types
- “W2” - Traditional employees
- “1099” - Independent contractors
POST
/
adminPortal
/
addUserWage
addUserWage
curl --request POST \
--url https://sandbox.rollfi.xyz/adminPortal/addUserWage \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "addUserWage",
"userWage": {
"companyId": "AE36FED3-0FDE-41F7-8312-C29FACD0E9EC",
"userId": "7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12",
"differentialPay": "No",
"wageRate": 111,
"workerType": "W2",
"wageBasis": "Per Week",
"userType": "Salary/Eligible for overtime",
"employmentStatus": "Full Time (30+ Hours per week)",
"userRefTaxExempt": "Yes, as an owner/corporate officer",
"startDate": "2023-02-25",
"paymentMethod": "Direct Deposit"
}
}
'import requests
url = "https://sandbox.rollfi.xyz/adminPortal/addUserWage"
payload = {
"method": "addUserWage",
"userWage": {
"companyId": "AE36FED3-0FDE-41F7-8312-C29FACD0E9EC",
"userId": "7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12",
"differentialPay": "No",
"wageRate": 111,
"workerType": "W2",
"wageBasis": "Per Week",
"userType": "Salary/Eligible for overtime",
"employmentStatus": "Full Time (30+ Hours per week)",
"userRefTaxExempt": "Yes, as an owner/corporate officer",
"startDate": "2023-02-25",
"paymentMethod": "Direct Deposit"
}
}
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: 'addUserWage',
userWage: {
companyId: 'AE36FED3-0FDE-41F7-8312-C29FACD0E9EC',
userId: '7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12',
differentialPay: 'No',
wageRate: 111,
workerType: 'W2',
wageBasis: 'Per Week',
userType: 'Salary/Eligible for overtime',
employmentStatus: 'Full Time (30+ Hours per week)',
userRefTaxExempt: 'Yes, as an owner/corporate officer',
startDate: '2023-02-25',
paymentMethod: 'Direct Deposit'
}
})
};
fetch('https://sandbox.rollfi.xyz/adminPortal/addUserWage', 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/adminPortal/addUserWage",
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' => 'addUserWage',
'userWage' => [
'companyId' => 'AE36FED3-0FDE-41F7-8312-C29FACD0E9EC',
'userId' => '7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12',
'differentialPay' => 'No',
'wageRate' => 111,
'workerType' => 'W2',
'wageBasis' => 'Per Week',
'userType' => 'Salary/Eligible for overtime',
'employmentStatus' => 'Full Time (30+ Hours per week)',
'userRefTaxExempt' => 'Yes, as an owner/corporate officer',
'startDate' => '2023-02-25',
'paymentMethod' => 'Direct Deposit'
]
]),
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/adminPortal/addUserWage"
payload := strings.NewReader("{\n \"method\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\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/adminPortal/addUserWage")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/adminPortal/addUserWage")
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\": \"addUserWage\",\n \"userWage\": {\n \"companyId\": \"AE36FED3-0FDE-41F7-8312-C29FACD0E9EC\",\n \"userId\": \"7DF6034A-F5A9-43F3-B5A2-42DC61A4EE12\",\n \"differentialPay\": \"No\",\n \"wageRate\": 111,\n \"workerType\": \"W2\",\n \"wageBasis\": \"Per Week\",\n \"userType\": \"Salary/Eligible for overtime\",\n \"employmentStatus\": \"Full Time (30+ Hours per week)\",\n \"userRefTaxExempt\": \"Yes, as an owner/corporate officer\",\n \"startDate\": \"2023-02-25\",\n \"paymentMethod\": \"Direct Deposit\"\n }\n}"
response = http.request(request)
puts response.read_body{
"userWage": {
"userWageId": "739BC4C4-2D79-431A-B0FF-489BADB70D9C",
"status": "Verification Pending",
"message": "User Wage for jacob king has been saved successfully."
}
}{
"error": {
"code": 400,
"message": "Invalid date format"
}
}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
