This API is to get holiday pay report. This is an authendicated API so we need to pass bearer token in request header to access the data.
GET
/report/holiday_pay
curl \
--request GET 'https://api-console.logezy.co/v1/report/holiday_pay?start_date=string&end_date=string' \
--header "Authorization: Bearer your-access-token" \
--header "Accept: application/json"
Response examples (200)
{
"data": {
"to": 4,
"data": [
{
"id": 2215,
"client": "24 Care",
"details": [
{
"break": 60,
"end_time": "08:00 PM",
"staff_rate": "0.00",
"start_time": "08:00 AM",
"total_hours": "11.00",
"staff_pay_amount": "0.00",
"assigned_vacancy_id": 2215
}
],
"on_date": "23-12-2022",
"job_name": "Nurse",
"candidate_name": "Abey K",
"holiday_pay_rate": "1.46",
"business_unit_name": "24 Care Unit 1",
"holiday_pay_amount": "16.06",
"holiday_pay_status": "due",
"holiday_pay_percentage": "12.07"
}
],
"from": 1,
"path": "https://api.logezydev.co.uk/v1/report/holiday_pay",
"total": 4,
"per_page": 10,
"last_page": 1,
"current_page": 1,
"last_page_url": "https://api.logezydev.co.uk/v1/report/holiday_pay?page=1",
"next_page_url": null,
"prev_page_url": null,
"first_page_url": "https://api.logezydev.co.uk/v1/report/holiday_pay?page=1"
},
"status": "success",
"message": "Holiday pay report retrieved successfully."
}