Skip to main content
POST
/
benefits#addEmployeeBenefits
addEmployeeBenefits
curl --request POST \
  --url 'https://sandbox.rollfi.xyz/benefits#addEmployeeBenefits' \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "addUserBankAccount",
  "benefitEmployeeElection": {
    "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "benefitType": "<string>",
    "effectiveMonth": "<string>",
    "companyContributionAmountPerPayPeriod": 123,
    "employeeDeductionAmountPerPayPeriod": 123
  }
}
'
{
  "Benefits": {
    "status": "<string>",
    "benefitType": "<string>",
    "message": "<string>"
  }
}

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
method
string
default:addUserBankAccount
required
Example:

"addUserBankAccount"

benefitEmployeeElection
object
required

Response

Benefits
object
required