Update Loan Request
Update Loan Request(Approve/Decline)- PUT REQUEST
Test API Endpoint
PUT https://apitest.fedacash.com/api/salaryadvance/v1/test/loan-request/update
Live API Endpoint
PUT https://api.fedacash.com/api/salaryadvance/v1/test/loan-request/update
Request Headers
Authorization: Bearer your_secret_keyContent-Type: application/json
Sample Curl Request Body
curl -X PUT "https://apitest.fedacash.com/api/salaryadvance/v1/test/loan-request/update" \-H "Authorization: Bearer <your_access_token>" \-H "Accept: application/json" \-H "Content-Type: application/json" \-d '{ "loan_token": "abc123", "company_approval_status": "approved", // or declined "reason": "Loan approved for project funding."}'Success Response
{ "success": true, "message": "Loan request updated to approved successfully", "data": { "loan_token": "abc123", "company_approval_status": "approved", "reason": "Loan approved for project funding." }}Error Response
{ "error": true, "message": "Unauthorized"}{ "error": true, "message": "Validation Error", "errors": { "csv_file": ["The csv file field is required."] }}