Home > API General, Rental/Reservation > SWS GetQuoteStatuses Method

SWS GetQuoteStatuses Method

Retrieves quotes, soft reservations and hard reservations, created by a specific user, at a given org, during a specified time frame.


Name DataType Is Required
Channel Long Optional
Description The channel assigned to the user that created the quote records.
EndDate DateTime Optional
Description The end date of the requested time period. Will default to today if left undefined.
OrgID Long Required
Description The organization’s ID number.
QuoteID Long Optional
Description Adds a filter for a specific quote that the user created. This is returned with the MakeReservation method or can be retrieved using the GetReservations method.
StartDate DateTime Optional
Description The start date of the requested time period. Will default to today if left undefined.
StoreUserName DateTime Required
Description The username of the user that created the quote records.

Returned Parameters

Name DataType
Description The object containing all the returned data for the call.


As with every method we need to pass in credentials. We do this with the LookupUser request object.

We’ll assume you’ve got a web reference, let’s name it SWS, in your Visual Studio project. At this point we need to create our objects. We’ll need the standard service object, an GetQuoteStatuses request object and an GetQuoteStatuses response object. We can define and create those like this:

// Create request and response objects 
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetQuoteStatuses_Request request = new SWS.GetQuoteStatuses_Request();
SWS.GetQuoteStatuses_Response response;

Now we set up the parameters for our request.

//Get Quote Statuses request object
request.OrgID = 123456;
request.QuoteID = 123456;
request.Channel = 999;
request.StartDate = DateTime.Today.AddDays(-7);
request.EndDate = DateTime.Today;

Finally we can call the method and pass across the login object and the request object to add our deposit fee. It’s a good idea to do this in a Try Catch block.

// Call the method that will load the response object
  response = service.GetQuoteStatuses(user_request, request);
catch (Exception ex)

For a full list of methods see SWS Methods.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s