API Reference
- Company Onboarding
- User Onboarding
- Admin Portal
- User Portal
- Payroll
- Benefits
- Reports
- Webhooks
Benefits
AddEmployeeBenefits
POST
/
benefits#addEmployeeBenefits
curl --request POST \
--url 'https://sandbox.rollfi.xyz/benefits#addEmployeeBenefits' \
--header 'Content-Type: application/json' \
--data '{
"method": "addEmployeeBenefits",
"benefitEmployeeElection": {
"userId": "C0378C3F-0B62-491D-9CD9-1B4CE347D8F1",
"benefitType": "Medical",
"effectiveMonth": "December 2024",
"companyContributionAmountPerPayPeriod": 55,
"employeeDeductionAmountPerPayPeriod": 25
}
}'
{
"summary": "Success",
"value": {
"Benefits": {
"status": "Ready",
"message": "The Benefits for Medical has been saved successfully.",
"benefitType": "Medical"
}
}
}
Body
application/json
Example:
["addUserBankAccount"]
Maximum length:
40
Maximum length:
25
curl --request POST \
--url 'https://sandbox.rollfi.xyz/benefits#addEmployeeBenefits' \
--header 'Content-Type: application/json' \
--data '{
"method": "addEmployeeBenefits",
"benefitEmployeeElection": {
"userId": "C0378C3F-0B62-491D-9CD9-1B4CE347D8F1",
"benefitType": "Medical",
"effectiveMonth": "December 2024",
"companyContributionAmountPerPayPeriod": 55,
"employeeDeductionAmountPerPayPeriod": 25
}
}'
{
"summary": "Success",
"value": {
"Benefits": {
"status": "Ready",
"message": "The Benefits for Medical has been saved successfully.",
"benefitType": "Medical"
}
}
}