cURL
curl --request POST \ --url 'https://sandbox.rollfi.xyz/benefits#addEmployeeBenefits' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "method": "addEmployeeBenefits", "benefitEmployeeElection": { "userId": "C0378C3F-0B62-491D-9CD9-1B4CE347D8F1", "benefitType": "Medical", "effectiveMonth": "December 2024", "companyContributionAmountPerPayPeriod": 55, "employeeDeductionAmountPerPayPeriod": 25 } }'
{ "Benefits": { "status": "Ready", "message": "The Benefits for Medical has been saved successfully.", "benefitType": "Medical" } }
This endpoint is used to add employee benefits
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The response is of type object.
object