API Reference
- Company Onboarding
- User Onboarding
- Admin Portal
- User Portal
- Payroll
- Benefits
- Reports
- Webhooks
Payroll
importRegularPayrollData
POST
/
payroll#importRegularPayrollData
Copy
curl --request POST \
--url 'https://sandbox.rollfi.xyz/payroll#importRegularPayrollData' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"method": "importRegularPayrollLData",
"companyId": "582C407F-4398-4F0A-AF67-4363D7CD7795",
"payPeriodId": "0ECF3C90-C589-40B4-83B6-B7AFCCF5D2E0",
"payrollData": [
{
"userId": "377213DD-AF45-4FB1-ABEE-5F11BDE2C437",
"basicPay": {
"payHours": 32
},
"unPaidLeave": {
"noOfHours": 4
},
"overTime": [],
"additionalCompensation": [
{
"description": "Bonus",
"amount": 60
},
{
"description": "Van Pool & Transit Passes",
"amount": 60
}
],
"deductions": [
{
"description": "Qualified Parking Sup",
"amount": 120
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
]
}
]
}'
Copy
{
"importRegularPayrollLData": {
"status": "Ready",
"message": "Imported Payroll Data Successfully"
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Response
200
application/json
The response is of type object
.
Copy
curl --request POST \
--url 'https://sandbox.rollfi.xyz/payroll#importRegularPayrollData' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"method": "importRegularPayrollLData",
"companyId": "582C407F-4398-4F0A-AF67-4363D7CD7795",
"payPeriodId": "0ECF3C90-C589-40B4-83B6-B7AFCCF5D2E0",
"payrollData": [
{
"userId": "377213DD-AF45-4FB1-ABEE-5F11BDE2C437",
"basicPay": {
"payHours": 32
},
"unPaidLeave": {
"noOfHours": 4
},
"overTime": [],
"additionalCompensation": [
{
"description": "Bonus",
"amount": 60
},
{
"description": "Van Pool & Transit Passes",
"amount": 60
}
],
"deductions": [
{
"description": "Qualified Parking Sup",
"amount": 120
}
],
"reimbursements": [
{
"reimbursementType": "GYM",
"amount": 120
}
]
}
]
}'
Copy
{
"importRegularPayrollLData": {
"status": "Ready",
"message": "Imported Payroll Data Successfully"
}
}
Assistant
Responses are generated using AI and may contain mistakes.