Gets a list of occurrences that an employer is enrolled in, and that overlap a date range.
After obtaining an occurrence, the employer's employees enrolled into that occurrence can be obtained by using the GetEmployeeEnrolmentsForEmployerEnrolment function.
Each occurrence is represented by a TOccu. The list of occurrences is represented by a List of TOccu in the OccuList property in the returned TAuthOccuList.
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 occurrences overlapping a date range that an employer is enrolled in")] public TAuthOccuList GetOccurrencesForEmployer(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 occurrences for |
DateTime startDate |
The start date of the range in which to get occurrences |
DateTime endDate |
The end date of the range in which to get occurrences |
TAuthOccuList containing the occurrences that match the criteria
Copyright (c) VETtrak 2022. All rights reserved.
|