This API is to get business unit report. This is an authendicated API so we need to pass bearer token in request header to access the data.
Query parameters
-
Id of the region to filter report
-
Id of the client to filter report
-
Id of the business unit to filter report
-
Id of the candidaste to filter report
-
Id of the job to filter report
-
The planned day to get report from
-
The planned day to get report till
-
Minimum value is 1 and maximum value is 100
GET
/report/businessunit
curl \
--request GET 'https://api-console.logezy.co/v1/report/businessunit?start_date=string&end_date=string' \
--header "Authorization: Bearer your-access-token" \
--header "Accept: application/json"
Response examples (200)
{
"data": {
"to": 4,
"data": [
{
"shift": "Day",
"client": "A Care",
"on_day": "Monday",
"status": "invoiced",
"on_date": "19-12-2022",
"end_time": "08:00 PM",
"job_title": "Nurse",
"start_time": "08:00 AM",
"client_rate": "31.00",
"total_hours": "12.00",
"invoice_rate": "31.00",
"business_unit": "A Care Weekly - Normal Rate",
"invoice_hours": "12.00",
"candidate_name": "Abey K",
"business_unit_id": 212,
"client_pay_amount": "372.00",
"invoice_total_amount": "372.00",
"assign_vacancy_detail_id": 2956
}
],
"from": 1,
"path": "https://api.logezydev.co.uk/v1/report/businessunit",
"total": 4,
"per_page": 10,
"last_page": 1,
"current_page": 1,
"last_page_url": "https://api.logezydev.co.uk/v1/report/businessunit?page=1",
"next_page_url": null,
"prev_page_url": null,
"first_page_url": "https://api.logezydev.co.uk/v1/report/businessunit?page=1"
},
"status": "success",
"message": "Business unit reports retrieved successfully."
}