Booking List
This API is to get bookings. This is an authendicated API so we need to pass bearer token in request header to access the data.
Headers
-
application/json
-
application/json
Query parameters
-
The planned day to get report from
-
The planned day to get report till
-
region number
Id of region to filter booking
-
business_unit number
Id of business unit to filter booking
-
shift string
Shift name to filter booking
Values are
Day
orNight
. -
candidate string
Id of candidate to filter booking
-
jobs string
Array of job ids to filter booking
-
status boolean
pass 0 for Unpublished and 1 for published
-
deleted boolean
pass 1 to get deleted bookings
Default value is
0
. -
delete_type boolean
pass 0 to
deleted only shift
or 1 toDeleted and moved to open shift
-
per_page number
Minimum value is 1 and maximum value is 100
GET
/booking/list
curl \
-X GET https://api-console.logezy.co/v1/booking/list?start_date=string&end_date=string \
-H "Accept: Bearer your-access-token" \
-H "Content-Type: application/json"
Response examples (200)
{
"data": {
"to": 5,
"data": [
{
"id": 2185,
"code": "BKIN2185",
"break": 60,
"notes": null,
"status": "pending",
"on_date": "12-12-2022",
"end_time": "08:00 PM",
"booked_by": "Khushali",
"client_id": 207,
"job_color": "#0EB995",
"job_title": "Nurse",
"created_at": "14-12-2022 07:18 AM",
"created_by": 4186,
"deleted_at": null,
"deleted_by": null,
"is_confirm": 0,
"is_deleted": 0,
"is_publish": 1,
"start_time": "08:00 AM",
"vacancy_id": 3133,
"client_name": "24 Care",
"total_hours": "11.00",
"candidate_id": 120,
"region_names": "London,Glasgow",
"vacancy_note": null,
"bookings_email": null,
"candidate_name": "Abey K",
"candidate_email": "sruthi+9@logezy.co.uk",
"reason_to_delete": null,
"business_unit_name": "24 Care Unit 1",
"vacancy_created_at": "14-12-2022 06:42 PM",
"business_unit_email": "raveek02+24careunit1@gmail.com",
"is_moved_to_vacancies": 0
}
],
"from": 1,
"path": "http://api-console.localhost:8000/v1/booking/list",
"total": 5,
"per_page": "10",
"last_page": 1,
"current_page": 1,
"last_page_url": "http://api-console.localhost:8000/v1/booking/list?page=1",
"next_page_url": null,
"prev_page_url": null,
"first_page_url": "http://api-console.localhost:8000/v1/booking/list?page=1"
},
"status": "success",
"message": "Bookings retrieved successfully."
}