PUT
/
adminPortal#terminateUser
curl --request PUT \
  --url 'https://sandbox.rollfi.xyz/adminPortal#terminateUser' \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "terminateUser",
  "user": {
    "userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7",
    "companyId": "eb869cf0-af11-4bdb-853c-fd2616bc91f2",
    "exitDate": "2023-09-09",
    "personalEmail": "mm@aa.ll",
    "finalPayCheckType": "They have already been paid",
    "terminationChoice": "No - This user did not choose to leave",
    "dismissalType": "Layoff",
    "severance": true,
    "severancePaymentType": "Yes, it will be a one time severance payment",
    "severancePaymentFrequency": "Weekly, every Friday",
    "firstSeverancePayDate": "2023-09-09",
    "lastSeverancePayDate": "2023-12-12",
    "severanceAmount": 2333,
    "additionalNotes": "terminated due to recession"
  }
}'
{
  "1": {
    "summary": "Success",
    "value": {
      "user": {
        "userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7",
        "status": "Inactive",
        "message": "The User has been terminated successfully."
      }
    }
  }
}

Body

application/json
method
string
required
user
object
required

Response

200 - application/json
user
object
required