Gets a list of private corporate bookings for an employer, that overlap a date range.
After obtaining a booking, the employer's employees enrolled into that booking can be obtained by using the GetEmployeeEnrolmentsForEmployerEnrolment function.
Each booking is represented by a TBooking. The list of bookings is represented by a List of TBooking in the BookingList property in the returned TAuthBookingList.
A token is passed for authentication. If the authentication fails, or other errors occur, no data will be returned. The result of the authentication is represented by a TAuthenticate object.
Requires a valid registration key entry for the Bookings feature.
This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.
[WebMethod(Description = "Gets a list of private corporate bookings for an employer overlapping a date range")] public TAuthBookingList GetBookingsForEmployer(string token, string employerIdentifier, DateTime startDate, DateTime endDate);
| 
Parameters  | 
Description  | 
| 
string token  | 
Mandatory string containing a token.  | 
| 
string employerIdentifier  | 
The identifier for the employer to get bookings for  | 
| 
DateTime startDate  | 
The start date of the range in which to get bookings  | 
| 
DateTime endDate  | 
The end date of the range in which to get bookings  | 
TAuthBookingList containing the bookings that match the criteria
| 
Copyright (c) VETtrak 2022. All rights reserved. |