cURL
curl --request POST \ --url 'https://sandbox.rollfi.xyz/benefits#addCompanyBenefits' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "method": "addCompanyBenefits", "benefitCompanyElection": { "companyId": "0BD1DCDE-64CF-440F-A552-9C4AA356BAAF", "benefitType": "Medical", "effectiveMonth": "March 2025" } }'
{ "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