Archive
SWS GetPrimaryRentalInfoV2 Method
Retrieves rental data and tax exempt information for a specified rental or a collection of rental data for a specified contact or account. The return includes the same information as the first version in addition to tax exemption information.
Parameters
Name | DataType | Is Required |
---|---|---|
AccountID | Long | Optional |
Description | The account’s ID number. This is returned when you use the CreateNewAccount method or can be retrieved with the SearchBymethod. | |
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. | |
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 SearchBymethod. | |
SiteID | Long | Required |
Description | The site’s ID number. This can be found using the GetSiteList method. |
Returned Parameters
Name | DataType |
---|---|
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. |
ACCT_TYPE | String |
Description | The system-defined account type. |
ADDR1 | String |
Description | The first address line of the account address. |
ADDR2 | String |
Description | The second address line of the account address. |
ADDR3 | String |
Description | The third address line of the account address. |
ADDRESS_TYPE | String |
Description | The address type of the account address. |
ATTRIBUTE01_VAL | String |
Description | The textual value for the “Attribute01” custom lookup as defined by the site. See eUnitAttr01 for the available values. |
CITY | String |
Description | The city of the account address. |
CONTACT_ID | Long |
Description | The rental contact’s ID number. |
CONTACT_TYPE | String |
Description | The contact’s type. Available values:
|
COUNTRY | String |
Description | The country of the account address if one is included. |
CURRENTLY_RENTED | String |
Description | Indicates if the unit is currently rented (“Y”) or not (“N”). |
DEL_EXEMPT | String |
Description | Indicates if the rental is exempt from the delinquency schedule (“Y”) or not (“N”). |
DEL_STEP | Integer |
Description | The current delinquency step for the rental item. If the unit is not rented this will return “0”. |
DEPTH | Decimal |
Description | The depth measurement of the rental item. |
String | |
Description | The rental contact’s email address. This is also used as the username if the site supports eStore/eCommerce. |
FIRST_NAME | String |
Description | The given name for the account/rental contact. |
KNOWN_AS | String |
Description | The alternate or nick name, if there is one, for the rental contact. |
LAST_NAME | String |
Description | The family name for the rental contact. |
LTD | DateTime |
Description | The lease-thru-date (LTD). |
MO_DATE | DateTime |
Description | The scheduled date of the move-out, if it has been provided and documented in the rental details. |
OBJ_PERIOD | Long |
Description | The number of periods which apply to the UOM (unit of measure). |
OBJ_PERIOD_UOM | String |
Description | The description of the UOM (unit of measure). This will always be “Month”. |
OVERLOCK_STATUS | String |
Description | The current overlock status of the rental. Available values:
|
PHONE | String |
Description | The primary contact’s phone number. |
PHONE_TYPE | String |
Description | The type of phone number. Available values:
|
POSTAL_CODE | String |
Description | The postal/ZIP code for the contacts address. |
PTD | DateTime |
Description | The paid-thru-date (PTD). |
RENTAL_ID | Long |
Description | The rental item’s ID number. |
RENTAL_STATUS | String |
Description | The textual value for the “Status” custom lookup as defined by the site. See eUnitStatus for the available values. |
SITE_ID | Long |
Description | The site’s ID number. |
START_DATE | DateTime |
Description | The date the rental was first rented. |
STATE | String |
Description | The state/province for the address. |
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 measurement of the rental item. |
TAX_EXEMPT | String |
Description | Indicates if the rental is exempt from taxes (“1”) or not (“0”). |
TAX_EXEMPT_EXP | DateTime |
Description | The date the tax exempt status expires. |
TAX_EXEMPT_INFO | String |
Description | The tax exempt ID number. |
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 GetPrimaryRentalInfo request object and a GetPrimaryRentalInfo response object. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetPrimaryRentalInfo_Request request = new SWS.GetPrimaryRentalInfo_Request();
SWS.GetPrimaryRentalInfoV2_Response response;
Here’s my sample code of the Request object using the RentalID.
// GetPrimaryRentalInfoV2 Request
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 primary 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.GetPrimaryRentalInfoV2(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 UpdateRentalSettingsV2 Method
Provides all of the same functionality as the UpdateRentalSettings method and additionally provides the ability to set the tax exempt expiration date of a rental.
Parameters
Name | DataType | Is Required |
---|---|---|
DelExempt | Boolean | Optional |
Description | Indicates if the rental should be included in the delinquency processing (“False”) or if it should be exempt from the delinquency processing (“True”). The default is “False”. | |
DelScheduleID | Long | Optional |
Description | Changes the delinquency schedule that is assigned to the unit. You can get the ID, name and description using the GetDelinqSchedule method. | |
DelStep | Integer | Optional |
Description | Set the delinquency step number of the unit. This is the level of delinquency that applies to the unit’s delinquency status. This cannot be a negative number. | |
OverlockStatus | OverlockStatus | Optional |
Description | Sets the overlock status of the rental. Available values:
|
|
PrimaryContact | Long | Optional |
Description | Assigns an existing contact as the primary rental contact to the rental via the contact ID. | |
PrimaryContactAddressID | Long | Optional |
Description | The address’s ID number for the address that should be assigned to the new primary contact. This is required if the PrimaryContact parameter is used. | |
PrimaryContactPhoneID | Long | Optional |
Description | The ID of the phone number you wish to add to the primary contact. This is required if the PrimaryContact parameter is used. | |
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. | |
SecondaryContact | Long | Optional |
Description | Assigns an existing contact as the secondary rental contact to the rental via the contact ID. | |
SecondaryContactAddressID | Long | Optional |
Description | The address’s ID number for the address that should be assigned to the secondary contact. This is required if the SecondaryContact parameter is used. | |
SecondaryContactPhoneID | Long | Optional |
Description | The ID of the phone number you wish to add to the secondary contact. This is required if the SecondaryContact parameter is used. | |
TaxExempt | Boolean | Optional |
Description | Indicates if the rental assessments should be taxed (“False”) or if it should be exempt from taxation (“True”). The default is “False”. | |
TaxInfo | String | Optional |
Description | The tax id if the rental should be tax exempt. This is required if you use the TaxExempt parameter. | |
TaxExemptExpiration | DateTime | Optional |
Description | The date that the tax exempt status expires. |
Returned Parameters
Name | DataType |
---|---|
AccountID | Long |
Description | The account’s ID number. |
DelExempt | Boolean |
Description | Indicates if the rental will be included in the delinquency processing (“False”) or if it will be exempt from the delinquency processing (“True”). The default is “False”. |
DelSchedule | Long |
Description | The delinquency schedule’s ID number. |
DelStep | Integer |
Description | The current step number within the delinquency schedule that applies to the unit’s delinquency status. This cannot be a negative number. |
EndDate | DateTime |
Description | The date the rental was terminated and the customer moved out. |
LTD | DateTime |
Description | The date that the customer has leased |
MoveOutDate | DateTime |
Description | The date the customer vacated the rental. |
OverlockStatus | OverlockStatus |
Description | The current overlock status of the rental. Available values:
|
PrimaryContactUpdated | Boolean |
Description | Indicates if the primary contact was updated successfully (“True”) or if the update was unsuccessful (“False”). |
PTD | DateTime |
Description | The date through which the customer has paid on their rental. |
RentalID | Long |
Description | The rental item’s ID number. |
SecondaryContactUpdated | Boolean |
Description | Indicates if the secondary contact was updated successfully (“True”) or if the update was unsuccessful (“False”). |
StartDate | DateTime |
Description | The date the customer first moved into the unit. |
TaxExempt | Boolean |
Description | Indicates if the rental assessments will be taxed (“False”) or if it will be exempt from taxation (“True”). The default is “False”. |
TaxExemptInfo | String |
Description | The tax ID number if the rental is tax exempt. |
Example
As with every method we need to pass in credentials. We do this with the LookupUser request object.
We will assume you have a web reference, let us name it SWS, in your Visual Studio project. At this point we need to define our objects. We will need the standard service object, an UpdateRentalSettingsV2 request object, and an UpdateRentalSettings response object. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.UpdateRentalSettingsV2_Request request = new SWS.UpdateRentalSettingsV2_Request();
SWS.UpdateRentalSettings_Response response;
Here is a sample code of the request object:
// UpdateRentalSettingsV2_Request
request.RentalId = 123546;
request.TaxExempt = true;
request.TaxInfo = "123456789";
request.TaxExemptExpiration = new DateTime(2020, 9 ,1);
Finally we can call the method and pass across the login object and the request object to retrieve our requested information. 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.UpdateRentalSettingsV2(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You will want to capture the message in the exception so it can be debugged.
For a full list of methods see SWS Methods.
SWS GetCertifiedLetterInfo Method
Retrieves certified letter tracking information for a specified letter. This includes the letter ID, date, name, binary .pdf data and USPS tracking number (BARCODE).
Parameters
Name | DataType | Is Required |
---|---|---|
AcctID | Long | Required |
Description | The account’s ID number. This is returned when you use the CreateNewAccount method or can be retrieved with the SearchBy method. | |
LetterID | Long | Required |
Description | The certified letter’s ID number. This can be found using the GetLetterInfo method. |
Returned Parameters
Name | DataType |
---|---|
BARCODE | String |
Description | The barcode number affixed to the certified letter by the USPS for tracking purposes. |
EFILE_PDF | Base64Binary |
Description | The eFile .pdf in encrypted Base64Binary code. This is the .PDF information sent to our centralized mailing company. |
EVENT_NAME | String |
Description | The template name of the certified letter to be mailed. |
EVENTDATE | String |
Description | The schedule date by which the certified letter should be mailed. |
LETTER_ID | Long |
Description | The certified letter’s ID number. |
SIGNPDF | Boolean |
Description | Indicates if the certified mail will require a signature (“True”) or not (“False”). |
ERROR_CODE | Integer |
Description | The numerical value of the status of the letter. |
ERROR_REASON | String |
Description | The textual value of the status of the letter. |
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. We’ll need the standard service object, GetCertifiedLetterInfo request object, and a GetCertifiedLetterInfo response object. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetCertifiedLetterInfo_Request request = new SWS.GetCertifiedLetterInfo_Request();
SWS.GetCertifiedLetterInfo_Response response;
Here’s my sample code of the Request object.
// GetCertifiedLetterInfo Request
request.AccountID = 123456;
request.LetterID = 123456;
Finally we can call the method and pass across the login object and the request object to perform our method. 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.GetCertifiedLetterInfo(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 UpdateOverlockStatus Method
Lets you change the overlock status for a rental item. Multiple rental items can be individually processed with a new status. If a rental item’s ID is passed in but a status does not get passed in, the status will default to NOT_OVERLOCKED.
Parameters
Name | DataType | Is Required |
---|---|---|
OrgID | Long | Required |
Description | The organization’s ID number. | |
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. | |
Status | Status | Required |
Description | The overlock status to which you are updating the rental item. Available values:
|
Returned Parameters
Name | Data Type |
---|---|
RentalID | Long |
Description | The rental’s ID number. |
Succeeded | Boolean |
Description | Indicates if the update succeeded (“True”) or not (“False”). |
ErrorMessage | String |
Description | If the update wasn’t successful, you will get an error message with why the update was unsuccessful. |
Example
As with every method we need to pass in credentials. We do this with the LookupUser request object.
We will assume you have a web reference, let us name it SWS, in your Visual Studio project. At this point we need to define our objects. We will need the standard service object, an UpdateOverlockStatus request object, and an UpdateOverlockStatus response object. We will also need an array of RentalOverLock objects. One for each rental to adjust. We can define and create those like this:
// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.UpdateOverlockStatus_Request request = new SWS.UpdateOverlockStatus_Request();
SWS.UpdateOverlockStatus_Response response;
SWS.RentalOverlockData[] overLock = new SWS.RentalOverlockData[1];
Here is a sample code of the request object:
// UpdateOverlockStatus Request
overLock[0].RentalID = 123456;
overLock[0].Status = SWS.OverlockStatus.OVERLOCKED;
request.OrgID = 123456;
request.OverlockData = overLock
Finally we can call the method and pass across the login object and the request object to retrieve our requested information. 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.UpdateOverlockStatus(user_request, request);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Note that if something goes wrong the service will respond with an exception. You will want to capture the message in the exception so it can be debugged.
For a full list of methods see SWS Methods.