Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

...


Info
titleImportant

Professionals are required to have purchased a valid license consisting of the 'Tenant' feature in order to use this web method. Please contact per.christian@boligmappa.no or yohanw@99x.lk to get a license set up for your company.

...

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
inputConnectTenantToBuildingInputMandatoryNot relevantConnect tenant to building input

Request Input Sample

<ConnectTenantToBuilding>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <BuildingId>7587</BuildingId>
      <OrganizationNumber>913588886</OrganizationNumber>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</ConnectTenantToBuilding>


Response

TypeDescription
ConnectTenantToBuildingOutputConnect Tenant To Building plant output model


Response- Output Sample

<ConnectTenantToBuilding>
  <MethodParameters>
    <ConnectTenantToBuildingOutput>
      <Tenant>
        <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>1/1/0001 12:00:00 AM</ConnectedDate>
        <UpdatedDate>1/1/0001 12:00:00 AM</UpdatedDate>
        <IsValidated isNull="true" />
        <Status>False</Status>
      </Tenant>
    </ConnectTenantToBuildingOutput>
  </MethodParameters>
</ConnectTenantToBuilding>

Exceptions

Error CodeDescription

110

Input parameters contain null or invalid data

123

An exception occurred while processing your request

138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
398Either the building does not exist or a building plant has not been created for it
399Tenant already exists for your company
400An error occured while creating or connecting the tenant
411You need to have the Tenants Addon to perform this action

...