Staff Report
This API is to get staff report. This is an authendicated API so we need to pass bearer token in request header to access the data.
Query parameters
-
region string
Id of the region to filter report
-
start_date string
The planned day to get report from
-
end_date string
The planned day to get report till
-
business_unit number
Id of the business unit to filter report
-
business_unit_name string
Name of business unit to filter
-
candidate number
Id of candidate to filter report
-
candidatename string
Name of the candidate to filter
-
per_page number
Minimum value is 1 and maximum value is 100
-
job string
Id of job to filter
-
employment_type string
Id of employment type
GET
/report/staff
curl \
-X GET https://api-console.logezy.co/v1/report/staff \
-H "Authorization: Bearer your-access-token" \
-H "Accept: application/json"
Response examples (200)
{
"data": {
"to": 4,
"data": [
{
"shift": "Day",
"client": "24 Care",
"on_day": "Friday",
"status": "pending",
"on_date": "23-12-2022",
"end_time": "08:00 PM",
"job_title": "Nurse",
"payroll_id": null,
"staff_rate": "0.00",
"start_time": "08:00 AM",
"client_rate": "0.00",
"total_hours": "11.00",
"candidate_id": 120,
"business_unit": "24 Care Unit 1",
"candidate_code": "DEM1CA120",
"candidate_name": "Abey K",
"business_unit_id": 57,
"staff_pay_amount": "0.00",
"assign_vacancy_id": 2215,
"client_pay_amount": "0.00",
"employment_types_id": 4,
"assign_vacancy_detail_id": 2962
}
],
"from": 1,
"path": "https://api.logezydev.co.uk/v1/report/staff",
"total": 4,
"per_page": 10,
"last_page": 1,
"current_page": 1,
"last_page_url": "https://api.logezydev.co.uk/v1/report/staff?page=1",
"next_page_url": null,
"prev_page_url": null,
"first_page_url": "https://api.logezydev.co.uk/v1/report/staff?page=1"
},
"status": "success",
"message": "Staff reports retrieved successfully."
}