List Loan Request API
List of Loan Requests API - GET REQUEST
Test API Endpoint
GET https://apitest.fedacash.com/api/salaryadvance/v1/test/loan-request
Live API Endpoint
GET https://api.fedacash.com/api/salaryadvance/v1/live/loan-request
Request Headers
Authorization: Bearer your_secret_keyContent-Type: application/json
Request Body
curl -X GET https://api.fedacash.com/api/salaryadvance/v1/loan-requests \-H "Authorization: Bearer your_secret_key" \-H "Content-Type: application/json" \-d '{ "page_size": 3, "page_num": 1, "sort_by": "id", "sort_type": "DESC", "search": ""}'Error Response
{ "success": false, "message": "An error occurred!", "error": "You are not authorized to access this resource."}Success Response
{ "success": true, "data": { "current_page": 1, "data": [ { "id": 1, "amount": 1500, "description": "Loan for medical expenses", "interest_given": "5%", "supporting_documents": "link_to_document", "duration": 30, "repayment_amount": 1575, "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_1", "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", "created_at": "2024-05-08T12:00:00.000000Z", "updated_at": "2024-05-08T12:00:00.000000Z" }, { "id": 2, "amount": 2000, "description": "Loan for educational expenses", "interest_given": "6%", "supporting_documents": "link_to_document_2", "duration": 60, "repayment_amount": 2120, "reference": "Ref-54321", "bank_name": "Another Bank", "bank_code": "456", "recipient_account_name": "Jane Smith", "recipient_account_number": "987654321", "employee_name": "Jane Smith", "user_profile_id": 2, "loan_token": "random_generated_token_2", "status": "Pending", "email": "jane@example.com", "phone_number": "987-654-3210", "name": "Jane", "loan_type": "Salary Advance", "company_name": "Example Company", "repayment_date": "2024-08-08T12:00:00.000000Z", "repayment_status": "Pending", "created_at": "2024-06-08T12:00:00.000000Z", "updated_at": "2024-06-08T12:00:00.000000Z" }, { "id": 3, "amount": 2500, "description": "Loan for home improvement", "interest_given": "4.5%", "supporting_documents": "link_to_document_3", "duration": 90, "repayment_amount": 2612.5, "reference": "Ref-67890", "bank_name": "Some Bank", "bank_code": "789", "recipient_account_name": "Alice Johnson", "recipient_account_number": "456789123", "employee_name": "Alice Johnson", "user_profile_id": 3, "loan_token": "random_generated_token_3", "status": "Pending", "email": "alice@example.com", "phone_number": "456-789-1234", "name": "Alice", "loan_type": "Salary Advance", "company_name": "Example Company", "repayment_date": "2024-09-08T12:00:00.000000Z", "repayment_status": "Pending", "created_at": "2024-07-08T12:00:00.000000Z", "updated_at": "2024-07-08T12:00:00.000000Z" } ], "first_page_url": "http://api.fedacash.com/api/salaryadvance/v1/loan-requests?page=1", "from": 1, "last_page": 1, "last_page_url": "http://api.fedacash.com/api/salaryadvance/v1/loan-requests?page=1", "next_page_url": null, "path": "http://api.fedacash.com/api/salaryadvance/v1/loan-requests", "per_page": 3, "prev_page_url": null, "to": 3, "total": 3 }, "message": "List of Loan Requests"}