POST
/
benefits#addCompanyEmployeeBenefits
curl --request POST \
  --url 'https://sandbox.rollfi.xyz/benefits#addCompanyEmployeeBenefits' \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "addCompanyEmployeeBenefits",
  "benefitCompanyElection": {
    "companyId": "9C952CC4-7652-4E2A-9303-912D876057AE",
    "benefitType": "Dental",
    "effectiveMonth": "December 2024"
  },
  "benefitEmployeeElections": [
    {
      "userId": "C0378C3F-0B62-491D-9CD9-1B4CE347D8F1",
      "companyContributionAmountPerPayPeriod": 55,
      "employeeDeductionAmountPerPayPeriod": 25
    }
  ]
}'
{
  "Benefits": {
    "status": "Ready",
    "message": "The Benefits for Dental has been saved successfully.",
    "benefitType": "Dental"
  }
}

Authorizations

Authorization
string
header
required

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.