ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.GetBookingDetails Method

Gets booking details for an Occurrence of a Programme. 

Returns an Authenticated Booking containing the details of the given Booking. 

The Booking is represented by a TBooking. This includes all the details of the occurrence (TOccu), as well as the additional booking fields. 

An Occurrence ID (occurrenceId) is passed as a parameter. occurrenceId must specify a valid Booking, otherwise, no booking is returned. 

A token is passed for authentication. If the authentication fails, or other errors occur, no occurrence is 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 "Unrestricted", and can be accessed by any authenticated user.

C#
[WebMethod(Description = "Gets the booking details for an occurrence with the specified ID")]
public TAuthBooking GetBookingDetails(string token, int occurrenceId);
Parameters 
Description 
string token 
String containing a token. 
int occurrenceId 
Integer ID of the Occurrence to get booking details for. 

TAuthBooking : an authenticated Booking.

Copyright (c) VETtrak 2022. All rights reserved.