Create Loan Request API
Create Loan Request API - POST REQUEST
Test API Endpoint
POST https://apitest.fedacash.com/api/salaryadvance/v1/test/create-loan-request
Live API Endpoint
POST https://api.fedacash.com/api/salaryadvance/v1/live/create-loan-request
Request Headers
Authorization: Bearer your_secret_keyContent-Type: application/json
Request Body
{ "amount": 1000, "description": "Loan for medical expenses", "interest_given": "5%", "supporting_documents": "link_to_document", "duration": 30, "repayment_amount": 1050, "reference": "Ref-12345", "bank_name": "Example Bank", "bank_code": "123", "recipient_account_name": "John Doe", "recipient_account_number": "123456789", "employee_name": "John Doe"}Error Response
{ "success": false, "message": "An error occurred!", "error": "Loan Request Failed!"}Success Response
{ "success": true, "data": { "amount": 1000, "description": "Loan for medical expenses", "interest_given": "5%", "supporting_documents": "link_to_document", "duration": 30, "repayment_amount": 1050, "reference": "Ref-12345", "bank_name": "Example Bank", "bank_code": "123", "recipient_account_name": "John Doe", "recipient_account_number": "123456789", "employee_name": "John Doe", "user_profile_id": 1, "loan_token": "random_generated_token", "status": "Pending", "email": "john@example.com", "phone_number": "123-456-7890", "name": "John", "loan_type": "Salary Advance", "company_name": "Example Company", "repayment_date": "2024-07-08T12:00:00.000000Z", "repayment_status": "Pending" }, "message": "Loan request submitted successfully"}