Skip to content

Manage Staff

Update Salary Advance Employee Status API - PUT REQUEST

Test API Endpoint

PUT https://apitest.fedacash.com/api/salaryadvance/v1/test/user/deactivate

Live API Endpoint

PUT https://api.fedacash.com/api/salaryadvance/v1/test/user/deactivate

Request Headers

  • Authorization: Bearer your_secret_key
  • Content-Type: application/json

Sample Curl(Deacivate Staff) Request Body

curl -X PUT "https://apitest.fedacash.com/api/salaryadvance/v1/test/user/deactivate" \
-H "Authorization: Bearer <your_access_token>" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"profile_id": "user123"
}''

Sample Curl(Reacivate Staff) Request Body

curl -X PUT "https://apitest.fedacash.com/api/salaryadvance/v1/test/user/deactivate" \
-H "Authorization: Bearer <your_access_token>" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"profile_id": "user123"
}''

Success Response

{
"success": true,
"message": "User deactvated successfully",
}

Error Response

{
"error": true,
"message": "A system error occurred. Kindly contact the Administrator. Failed to deactivate user",
"errors": "Detailed error message describing what went wrong."
}