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

Retrieves a single invoice by unique ID.

C#
[WebMethod(Description = "Retrieves a single invoice by ID")]
public TAuthInvoice GetInvoice(string token, int invoiceId);
Parameters 
Description 
string token 
String containing a token. 
int invoiceId 
Integer unique ID of invoice to retrieve. 

TAuthInvoice containing the single invoice with the specified ID.

This function returns a single invoice with the specified internal ID. 

The invoiceId parameter must be the ID of an existing invoice to retrieve. 

The invoice is represented by a TInvoice object. It has an InvoiceItems property that contains a list of TInvoiceItem - each of these objects represents a line item on the invoice. 

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

Requires a valid registration key entry for the Finance feature. 

This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

Copyright (c) VETtrak 2022. All rights reserved.