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

Get all Contracts and Enrolments for a Client. 

Returns an Authenticated Contract/Enrolment List containing all of the contracts and enrolments for a given client. 

Each Contract or Enrolment is represented by a TContEnro. The collection of Contracts and Enrolments is represented by a List of TContEnro

A token is passed for authentication. If the authentication fails, or other errors occur, no contracts or enrolments are returned. The result of the authentication is represented by a TAuthenticate object. 

This function has security level "Restricted". Users that have explicitly been granted permission to the API can use it with any parameters, otherwise, the logged-in client can only access their own data.

C#
[WebMethod(Description = "Gets a list of contracts and enrolments for the client with the specified code")]
public TAuthContEnroList GetContractsOrEnrolmentsForClient(string sToken, string sClie_Code);
Parameters 
Description 
string sToken 
String Token. 
string sClie_Code 
String containing the Client Code of the Client. 

TAuthContEnroList : an Authenticated List of Contracts/Enrolments.

Copyright (c) VETtrak 2022. All rights reserved.