cURL
curl --request POST \ --url 'https://sandbox.rollfi.xyz/adminPortal#deactivateUser' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "method": "deactivateUser", "user": { "userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7", "exitDate": "2023-09-09", "personalEmail": "mm@aa.ll", "finalPayCheckType": "They have already been paid", "additionalNotes": "deactivating temporarily" } }'
{ "user": { "userId": "f9b2507d-c757-4c9a-9e96-0002299fa2f7", "status": "Inactive", "message": "The User has been deactivated successfully." } }
This Endpoint is used to Deactivate either Employee/Contractor
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