Description
This method is not in production yet. It will be available soon.
This web method is used to get Tenants for the logged in user’s company from the database. If BuildingId is provided, it will output all the tenants created by logged in user's company in the provided building. Otherwise it will output all the tenants created by logged in user’s company.
Request
Parameter | Type | Mandatory/Optional | Maximum character length/limit | Description |
---|---|---|---|---|
input | GetTenantsInput | Mandatory | Not relevant | Get Tenants Input |
Request - input sample
<GetTenants>
<MethodParameters>
<UserAuthentication>
<UserName>username</UserName>
<Password>password</Password>
<AnyAttr attr0="XmlAttributeArray" isNull="false">
<XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
</AnyAttr>
</UserAuthentication>
<input>
<BuildingId>7032</BuildingId>
</input>
<applicationName>test</applicationName>
</MethodParameters>
</GetTenants>
Response
Type | Description |
---|---|
GetTenantsOutput | Tenants output |
Response - output sample
<GetTenants>
<MethodParameters>
<GetTenantsOutput>
<Tenants attr0="TenantDetailsArray" isNull="false">
<TenantDetailsArray0>
<OrganizationNumber>915469418</OrganizationNumber>
<CompanyName>MESTERALLIANSEN AS</CompanyName>
<TenantAddress attr0="StringArray" isNull="false">
<StringArray0>Hvamsvingen 11, 2013 Skjetten</StringArray0>
</TenantAddress>
<ConnectedBuildingId>7594</ConnectedBuildingId>
<TenantCompanyId>215</TenantCompanyId>
<CompanyOwners isNull="true" />
<ContactPersonName>Merete Nordli</ContactPersonName>
<ContactPersonPhone isNull="true" />
<ContactPersonEmail isNull="true" />
<ConnectedDate>3/2/2018 11:18:42 AM</ConnectedDate>
<UpdatedDate>3/2/2018 11:18:42 AM</UpdatedDate>
<Status>True</Status>
<IsValidated>True</IsValidated>
<Documentcount>0</Documentcount>
</TenantDetailsArray0>
</Tenants>
</GetTenantsOutput>
</MethodParameters>
</GetTenants>
Exceptions
Error Code | Description |
---|---|
123 | An exception occurred while processing your request |
138 | applicationName length has exceeded the maximum character limit allowed (10) |
146 | The applicationName is not set |
398 | Either the building does not exist or a building plant has not been created for it |
Add Comment