Archive
SWS RemoveRentalFromAuction Method
Removes the selected rental or rentals from the auction to which they are assigned.
Parameters
Name | DataType | Is Required |
---|---|---|
RentalIDs | ArrayOfLong5 | Required |
Description | The rental ID or an array of rental IDs to be removed from auction. This is returned when using the MakeReservation method or can be searched for using the SearchBy method. | |
SiteID | Long | Required |
Description | The site’s ID number. This can be found using the GetSiteList method. |
Returned Parameters
Name | DataType |
---|---|
RentalsSucceeded | ArrayOfLong7 |
Description | The array of rental IDs that were successfully removed from the auction. |
RentalsFailed | ArrayOfLong8 |
Description | The array of rental IDs that failed to be removed from the auction. |
Example
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 our objects. We’ll need the standard service object, a RemoveRentalFromAuction request object and a RemoveRentalFromAuction response object. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.RemoveRentalFromAuction_Request request = new
SWS.RemoveRentalFromAuction_Request();
SWS.RemoveRentalFromAuction_Response response;
Here’s my sample code of the Request object.
// RemoveRentalFromAuction Request
request.SiteID = 123456;
request.RentalIDs = new long[] { 123456, 456789, 789123 };
Finally we can call the method and pass across the login object and the request object to remove our rental from auction. It’s a good idea to do this in a Try Catch block.
// Call the method that will load the response object
try
{
response = service.RemoveRentalFromAuction(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.
For a full list of methods see SWS Methods.
SWS GetReservations Method
Retrieves the reservation history for a specified rental account.
Parameters
Name | DataType | Is Required |
---|---|---|
AcctID | Long | Optional |
Description | The account’s ID number. This is returned when you use the CreateNewAccount method or can be retrieved with the SearchBy method. | |
OrgID | Long | Required |
Description | The organization’s ID number. | |
SiteID | Long | Required |
Description | The site’s ID number. This can be found using the GetSiteList method. |
Returned Parameters
Name | DataType |
---|---|
ACCESS_TYPE | Integer |
Description | The numeric value for the “Access Type” custom look up as defined by the site. See eUnitAccessType for the available values. |
ACCESS_TYPE_VAL | String |
Description | The textual value for the “Access Type” custom look up as defined by the site. See eUnitAccessType for the available values. |
ACCT_ID | Long |
Description | The account’s ID number. |
ACCT_NAME | String |
Description | The name on the account. This may differ from the primary contact’s name in some instances, such as a business account or a guardianship account. |
ADMIN_FEE | Decimal |
Description | The administrative fee, if there is one. |
ATTRIBUTE01 | Integer |
Description | The numeric value for the “Attribute01” custom look up as defined by the site. See eUnitAttr01 for the available values. |
ATTRIBUTE01_VAL | String |
Description | The textual value for the “Attribute01” custom look up as defined by the site. See eUnitAttr01 for the available values. |
ATTRIBUTE02 | Integer |
Description | The numeric value for the “Attribute02” custom look up as defined by the site. See eUnitAttr02 for the available values. |
ATTRIBUTE02_VAL | String |
Description | The textual value for the “Attribute02” custom look up as defined by the site. See eUnitAttr02 for the available values. |
CHANNEL | Integer |
Description | The access channel that created the reservation. (I.E., Store Application, EStore. This is customized by the site.) |
CLASS_TYPE | Decimal |
Description | The numeric value for the “Class” custom look up as defined by the site. See eUnitClass for the available values. |
CLIMATE | Integer |
Description | The numeric value for the “Climate” custom look up as defined by the site. See eUnitClimate for the available values. |
CLIMATE_VAL | String |
Description | The textual value for the “Climate” custom look up as defined by the site. See eUnitClimate for the available values. |
CREATED | DateTime |
Description | The date and time the reservation was created. |
CREATED_BY | Long |
Description | The user ID for the person that created the reservation. |
CREATED_BY_NAME | String |
Description | The name of the person that created the reservation. |
DEPOSIT | Decimal |
Description | The amount of the security deposit. |
DEPTH | Decimal |
Description | The depth measurement of the rental item. |
DISC_AMT | Decimal |
Description | The amount of any discount or promotion offered at the time of booking the reservation. |
DOOR | Integer |
Description | The numeric value for the “Door” custom look up as defined by the site. See eUnitDoor for the available values. |
DOOR_VAL | String |
Description | The textual value for the “Door” custom look up as defined by the site. See eUnitDoor for the available values. |
EXPIRATION | DateTime |
Description | The date that the reservation expires. |
FEATURES | Integer |
Description | The numeric value for the “Features” custom look up as defined by the site. See eUnitFeatures for the available values. |
FEATURES_VAL | String |
Description | The textual value for the “Features” custom look up as defined by the site. See eUnitFeatures for the available values. |
GATE_KEYPAD | Integer |
Description | The gate keypad access pin assigned to the rental item. |
ICON | String |
Description | The URL for the site revenue class icon that displays in the Store application. |
INQUIRY_SOURCE | Integer |
Description | The numeric value of the customized inquiry source for the site. This lets the site track how customers find them. |
LOST_DEMAND_REASON | Integer |
Description | The lost demand reason in the form of a numeric indicator as to why a potential customer failed to initiate a rental. Available values:
These are the default values set by Store, however, they can be customized by the site, so there may be additional values. |
MKT_CODE | Long |
Description | The promo code’s ID number. |
MKT_SOURCE | Long |
Description | The promo code’s value. |
OBJ_PERIOD | Long |
Description | The frequency of which the UOM is accrued on the account. For example 2 would indicate that every 2 months is 1 UOM or rental cycle. |
OBJ_PERIOD_UOM | Integer |
Description | The numeric value for the “unit of measure” (UOM) type of rental cycle. Currently the only option is “4”. |
OBJ_PERIOD_UOM_VAL | String |
Description | The textual value for the “unit of measure” (UOM) type of rental cycle. Currently the only option is “Month”. |
PRICE | Decimal |
Description | The quoted monthly rent for the rental item. |
PRORATE_AMT | Decimal |
Description | If the site is first of the month, this is the amount the customer must pay from the date of move-in to the end of the month. |
QUOTE_ID | Long |
Description | The quote’s ID number. |
QUOTE_START_DATE | DateTime |
Description | The date the reservation/quote was created. |
QUOTE_TYPE | Integer |
Description | The numeric value for the quote’s type. Available values:
|
RENT_NOW | Boolean |
Description | Indicates if the reservation’s status is set to “RentNow” (“True”) or not (“False”). |
RENTAL_ID | Long |
Description | The rental item’s ID number. |
RES_DEPOSIT | Decimal |
Description | The reservation deposit amount. |
RES_GROUP_ID | Decimal |
Description | The reservation group’s ID number that groups multiple rental item reservations together within an account. |
SITE_CLASS_ID | Long |
Description | The site’s revenue class ID number that describes the general rules for the type of rental. |
SITE_ID | Long |
Description | The site’s ID number. |
SQ_FEET | Integer |
Description | The square feet of the rental item as a result of width multiplied by depth. |
STATUS | Integer |
Description | Indicates the status of the reservation.
|
STREET_RATE | Decimal |
Description | The current street rate of the unit. |
TAX | Decimal |
Description | The required tax amount, if the rental item is not tax exempt. |
TOT_AMT | Decimal |
Description | The total amount of funds not paid to date. |
UNIT_ID | Long |
Description | The unit’s ID number. This is maintained through rentals. |
UNIT_NUMBER | String |
Description | The unit’s number as assigned by the organization. This is not the UnitID. |
WIDTH | Decimal |
Description | The width of the rental item. |
QUOTE_NOTE_ID | Long |
Description | The note’s ID. |
QUOTE_ID | Long |
Description | The ID for the quote record. |
QUOTE_NOTES | String |
Description | The notes that were entered at the time of quote creation. |
CREATED_BY | Long |
Description | The user’s ID that created the notes. |
CREATED_BY_FIRST_NAME | String |
Description | The first name of the user that created the notes. |
CREATED_BY_LAST_NAME | String |
Description | The last name of the user that created the notes. |
UPDATED_BY | Long |
Description | The user’s ID that updated the notes, if they’ve been updated. |
TRAN_QUOTE_PCD: QUOTE_PCD_ID | Long |
Description | The PCD’s ID for the quote record. |
TRAN_QUOTE_PCD: QUOTE_ID | Long |
Description | The quote record’s ID. |
TRAN_QUOTE_PCD: PCD_ID | Long |
Description | The ID specific to the PCD. |
TRAN_QUOTE_PCD: ACTIVE | Boolean |
Description | If the PCD is still active or not. |
TRAN_QUOTE_PCD: CREATED | DateTime |
Description | The date the quote record was created. |
TRAN_QUOTE_PCD: UPDATED | DateTime |
Description | The date the quote was updated, if it was updated. |
TRAN_QUOTE_PCD: CREATED_BY | Long |
Description | The user id for the user that created the quote record. |
TRAN_QUOTE_PCD: UPDATED_BY | Long |
Description | The user ID for the user that updated the quote record, if it was updated. |
TRAN_QUOTE_PCD: DISC_AMT | Decimal |
Description | The amount of the discount. See TRAN_QUOTE_PCD_DETAIL for additional information. |
TRAN_QUOTE_PCD_DETAIL | TRAN_QUOTE_PCD_DETAIL |
Description | The object containing the promotional details. |
Example
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 our objects. We’ll need the standard service object, a GetReservations request object and a GetReservations response object. As part of the request object we also need RentalContact and an array of RentalContact. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetReservations_Request request = new SWS.GetReservations_Request();
SWS.GetReservations_Response response;
Here’s my sample code of the Request object.
// GetReservations Request
request.OrgID = 123546;
request.SiteID = 123456;
request.AcctID = 123456;
Finally we can call the method and pass across the login object and the request object to get our reservations. It’s a good idea to do this in a Try Catch block.
// Call the method that will load the response object
try
{
response = service.GetReservations(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.
For a full list of methods see SWS Methods.
SWS GetScheduledFees Method
Retrieves a list of scheduled fees for the specified rental.
Parameters
Name | DataType | Is Required |
---|---|---|
RentalID | Long | Required |
Description | The rental item’s ID number. This is returned when using the MakeReservation method or can be searched for using the SearchBy method. | |
SiteID | Long | Required |
Description | The site’s ID number. This can be found using the GetSiteList method. |
Returned Parameters
Name | DataType |
---|---|
BASE_FEE_TYPE | Integer |
Description | The scheduled fee type’s numeric value. Available values:
|
FEE_ACTIVE | Boolean |
Description | Indicates if the scheduled fee is active (“True”) or not (“False”). |
FEE_AMT | String |
Description | The fee amount. |
FEE_AMT_DESC | String |
Description | The description of the fee amount. |
FEE_DESC | String |
Description | The site fee’s description. |
FEE_OBJECT_ID | Decimal |
Description | The site fee’s ID number. |
ICON | String |
Description | The URL for the site revenue class icon that displays in the Store application. |
ORG_FEE_OBJECT_ID | Long |
Description | The organization fee’s ID number. |
REF_TYPE | Decimal |
Description | A numeric value for the assessment type. |
RENTAL_ID | Long |
Description | The rental item’s ID number. |
SITE_ID | Long |
Description | The site’s ID number. |
TAXABLE | Boolean |
Description | Indicates if the fee is taxable (“True”) or not (“False”). If a tax exempt ID is used, the fee will not be taxed even if this returns “True”. |
Example
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 our objects. We’ll need the standard service object, a GetScheduledFees request object and a ScheduledFee response collection. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetScheduledFees_Request request = new SWS.GetScheduledFees_Request();
SWS.ScheduledFee[] response;
Here’s my sample code of the Request object.
// GetScheduledFees Request
request.OrgID = 123456;
request.SiteID = 123456;
request.RentalID = 123456;
Finally we can call the method and pass across the login object and the request object to get our scheduled fees. It’s a good idea to do this in a Try Catch block.
// Call the method that will load the response object
try
{
response = service.GetScheduledFees(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.
For a full list of methods see SWS Methods.
SWS GetRentalInfo Method
Retrieves the list of IDs for the specified information. This only retrieves information for active rentals.
Parameters
Name | DataType | Is Required |
---|---|---|
AcctID | Long | Optional* |
Description | The account’s ID number. This is returned when you use the CreateNewAccount method or can be retrieved with the SearchBy method. * Only one input is required and only one input option should be used. |
|
ContactID | Long | Optional* |
Description | The rental contact’s ID number. This is returned when using the CreateNewAccount or AddNewContact methods or you can search for it using the SearchBy method. * Only one input is required and only one input option should be used. |
|
RentalID | Long | Optional* |
Description | The rental item’s ID number. This is returned when using the MakeReservation method or can be searched for using the SearchBy method. * Only one input is required and only one input option should be used. |
|
UnitID | Long | Optional* |
Description | The unit’s ID number. This is returned when you use any of the GetSiteUnitData calls and is maintained through rentals. * Only one input is required and only one input option should be used. |
Returned Parameters
Name | DataType |
---|---|
ACCT_ID | Long |
Description | The account’s ID number. |
CONTACT_ID | Long |
Description | The rental contact’s ID number. |
LTD | DateTime |
Description | The lease-thru-date (LTD). |
PTD | DateTime |
Description | The paid-thru-date (PTD). |
RENTAL_ID | Long |
Description | The rental item’s ID number. |
SITE_ID | Long |
Description | The site’s ID number. |
STATUS | Integer |
Description | The rental’s current status. Available values:
|
UNIT_ID | Long |
Description | The unit’s ID number. This is maintained through rentals. |
UNIT_NUMBER | String |
Description | The unit’s number as assigned by the organization. This is not the UnitID. |
Example
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 our objects. We’ll need the standard service object, a GetRentalInfo request object and a GetRentalInfo response object. We can define and create those like this:
' Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetRentalInfo_Request request = new SWS.GetRentalInfo_Request();
SWS.GetRentalInfo_Response response;
Here’s my sample code of the Request object using the AcctID option. Only one of the four options should be used.
// GetRentalInfo Request
request.AcctID = 123456;
Finally we can call the method and pass across the login object and the request object to get our rental info. It’s a good idea to do this in a Try Catch block.
// Call the method that will load the response object
try
{
response = service.GetRentalInfo(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.
For a full list of methods see SWS Methods.