Staff List
List of Salary Advance Employees - GET REQUEST
Test API Endpoint
GET https://apitest.fedacash.com/api/salaryadvance/v1/test/salary-advance-staff-list
Live API Endpoint
GET https://api.fedacash.com/api/salaryadvance/v1/test/salary-advance-staff-list
Request Headers
Authorization: Bearer your_secret_keyContent-Type: application/json
Sample Curl -Request Body
curl -X GET "https://apitest.fedacash.com/api/salaryadvance/v1/test/salary-advance-staff-list?page_size=10&page_num=1&sort_by=id&sort_type=ASC" \-H "Authorization: Bearer <your_access_token>" \-H "Accept: application/json"''Success Response
{ "success": true, "message": "List of employees retrieved successfully", "data": { "current_page": 1, "data": [ { "id": 1, "first_name": "John", "last_name": "Doe", "email": "john@example.com", "phone_number": "234123456789", "salary_advance_company": "Example Company" }, { "id": 2, "first_name": "Jane", "last_name": "Smith", "email": "jane@example.com", "phone_number": "234987654321", "salary_advance_company": "Example Company" } ], "first_page_url": "http://example.com/api/employees?page=1", "from": 1, "last_page": 3, "last_page_url": "http://example.com/api/employees?page=3", "next_page_url": "http://example.com/api/employees?page=2", "path": "http://example.com/api/employees", "per_page": 10, "prev_page_url": null, "to": 10, "total": 30 }}Error Response
{ "error": true, "message": "Failed to retrieve list of employees", "errors": "Detailed error message describing what went wrong."}