get Reservation Count
Testing Env
https://testhr.vodoglobal.com
Testing Env
https://testhr.vodoglobal.com
GET
/api/v1/reservation-count
Last modified:2025-03-26 12:40:51
Get Reservation Count
Request Parameters
user_id
(integer): The ID of the user for whom the reservation count is being retrieved.from_date
(string): The start date for the reservation count query.to_date
(string): The end date for the reservation count query.count_type_filter
(string): Filter for the type of reservation count.limit
(integer): Limit the number of results to be returned.Response
status
(boolean): Indicates the status of the response.message
(string): A message related to the response.response
(object): The object containing reservation count details including various user-related information such as ID, name, email, phone, reservation count, and profile URL.Example Response
{
"status": true,
"message": "",
"response": {
"id": 0,
"name": "",
"business_id": "",
"agent_ids": null,
"type": "",
"active": 0,
"social_situation": "",
"user_type": "",
"primary_email": "",
"email_verified_at": null,
"password": null,
"remember_token": null,
"email": "",
"phone": "",
"profile": "",
"source": null,
"national_id": "",
"nationality_id": "",
"occupation_id": 0,
"section_id": null,
"job_number": null,
"company_id": 0,
"border_number": null,
"deleted_at": null,
"created_at": "",
"updated_at": "",
"administration_id": 0,
"department_id": null,
"calendar_id": null,
"administration_admin": null,
"trainer": null,
"emergency_name": null,
"emergency_phone": null,
"user_id": 0,
"user_name": "",
"employer": "",
"employer_company_id": null,
"employer_branch_id": null,
"employer_department_id": null,
"employer_section_id": null,
"client_id": null,
"color": "",
"bio": null,
"reservation_count": 0,
"profile_url": ""
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://testhr.vodoglobal.com/api/v1/reservation-count?user_id=926&from_date=2024-08-05&to_date=2025-08-05&count_type_filter=reservation&limit=4' \
--header 'uuid: 630ca2f4885f8' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'Accept: application/json'
Response Response Example
{
"status": true,
"message": "success",
"response": {
"id": 3331,
"name": "Marco",
"business_id": "259",
"agent_ids": null,
"type": "male",
"active": 1,
"social_situation": "married",
"user_type": "sub-user",
"primary_email": "yiyoxe1194@ronete.com",
"email_verified_at": null,
"password": null,
"remember_token": null,
"email": "null",
"phone": "[\"+96633554466\"]",
"profile": "599",
"source": null,
"national_id": "1234649841",
"nationality_id": "57",
"occupation_id": 47,
"section_id": null,
"job_number": null,
"company_id": 259,
"border_number": null,
"deleted_at": null,
"created_at": "2024-12-22T13:06:16.000000Z",
"updated_at": "2025-03-13T09:10:54.000000Z",
"administration_id": 115,
"department_id": null,
"calendar_id": null,
"administration_admin": null,
"trainer": null,
"emergency_name": null,
"emergency_phone": null,
"user_id": 926,
"user_name": "Marco_1",
"employer": "not working",
"employer_company_id": null,
"employer_branch_id": null,
"employer_department_id": null,
"employer_section_id": null,
"client_id": null,
"color": "#0E7C7B",
"bio": null,
"reservation_count": 53,
"profile_url": "https://testhr.vodoglobal.com/data/employee/profile/599/emp_profile_3331_2025-03-13-09:06:42.jpg"
}
}
Request
Query Params
user_id
stringÂ
required
Example:
926
from_date
stringÂ
required
Example:
2024-08-05
to_date
stringÂ
required
Example:
2025-08-05
count_type_filter
stringÂ
required
Example:
reservation
limit
stringÂ
required
Example:
4
Header Params
uuid
stringÂ
required
Example:
{{uuid}}
secure_business_key
stringÂ
required
Example:
{{secure_business_key}}
Accept
stringÂ
required
Example:
application/json