getPayRun
curl --request GET \
--url https://sandbox.rollfi.xyz/reports/getPayRun \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "getPayRun",
"payPeriodId": "1701499A-1F6A-4D96-9A45-2021A19777E6"
}
'import requests
url = "https://sandbox.rollfi.xyz/reports/getPayRun"
payload = {
"method": "getPayRun",
"payPeriodId": "1701499A-1F6A-4D96-9A45-2021A19777E6"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({method: 'getPayRun', payPeriodId: '1701499A-1F6A-4D96-9A45-2021A19777E6'})
};
fetch('https://sandbox.rollfi.xyz/reports/getPayRun', 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/reports/getPayRun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'getPayRun',
'payPeriodId' => '1701499A-1F6A-4D96-9A45-2021A19777E6'
]),
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/reports/getPayRun"
payload := strings.NewReader("{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}")
req, _ := http.NewRequest("GET", 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.get("https://sandbox.rollfi.xyz/reports/getPayRun")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/reports/getPayRun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}"
response = http.request(request)
puts response.read_body{
"payrollLineItems": [
{
"userId": "50070F09-2923-499A-850B-F12ED4C2FD69",
"totalHours": 40,
"wages": 960,
"taxes": 129.99,
"cash requirements": 960
},
{
"userId": "9E3CBA77-9035-471F-AA1E-F77A13AFE5C2",
"totalHours": 40,
"wages": 2000,
"taxes": 429.74,
"cash requirements": 2000
}
]
}{
"error": {
"code": 400,
"message": "Invalid Payperiod"
}
}Reports
getPayRun
The getPayRun API retrieves payroll line item information for a specific pay period.
What it does:
- Returns payroll line items including user ID, total hours, wages and taxes
- Provides at-a-glance payroll data for all employees within a specific pay period
- Provides cash requirements after all withholdings, deductions, taxes and credits for each employee to be paid successfully
GET
/
reports
/
getPayRun
getPayRun
curl --request GET \
--url https://sandbox.rollfi.xyz/reports/getPayRun \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "getPayRun",
"payPeriodId": "1701499A-1F6A-4D96-9A45-2021A19777E6"
}
'import requests
url = "https://sandbox.rollfi.xyz/reports/getPayRun"
payload = {
"method": "getPayRun",
"payPeriodId": "1701499A-1F6A-4D96-9A45-2021A19777E6"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({method: 'getPayRun', payPeriodId: '1701499A-1F6A-4D96-9A45-2021A19777E6'})
};
fetch('https://sandbox.rollfi.xyz/reports/getPayRun', 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/reports/getPayRun",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'method' => 'getPayRun',
'payPeriodId' => '1701499A-1F6A-4D96-9A45-2021A19777E6'
]),
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/reports/getPayRun"
payload := strings.NewReader("{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}")
req, _ := http.NewRequest("GET", 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.get("https://sandbox.rollfi.xyz/reports/getPayRun")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.rollfi.xyz/reports/getPayRun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"method\": \"getPayRun\",\n \"payPeriodId\": \"1701499A-1F6A-4D96-9A45-2021A19777E6\"\n}"
response = http.request(request)
puts response.read_body{
"payrollLineItems": [
{
"userId": "50070F09-2923-499A-850B-F12ED4C2FD69",
"totalHours": 40,
"wages": 960,
"taxes": 129.99,
"cash requirements": 960
},
{
"userId": "9E3CBA77-9035-471F-AA1E-F77A13AFE5C2",
"totalHours": 40,
"wages": 2000,
"taxes": 429.74,
"cash requirements": 2000
}
]
}{
"error": {
"code": 400,
"message": "Invalid Payperiod"
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Response
Show child attributes
Show child attributes
⌘I
