curl --request PUT \
--url 'https://sandbox.rollfi.xyz/adminPortal#terminateUser' \
--header 'Authorization: Basic <encoded-value>' \
--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"
}
}'
{
"user": {
"userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7",
"status": "Inactive",
"message": "The User has been terminated successfully."
}
}
This Endpoint is used to Terminate either Employee/Contractor
curl --request PUT \
--url 'https://sandbox.rollfi.xyz/adminPortal#terminateUser' \
--header 'Authorization: Basic <encoded-value>' \
--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"
}
}'
{
"user": {
"userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7",
"status": "Inactive",
"message": "The User has been terminated successfully."
}
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The response is of type object
.