UpdateCompanyProfile

Description

This method is used by company administrators to edit company profiles and special users with the 'Franchiser' role to update details of any company. If null or empty values are provided for optional fields, they replace the existing database values. It is advised to use the GetCompanies method first to obtain details of a company, and use those details along with the values that changed in the UpdateCompanyProfile method. This method returns a Boolean value that indicates the status of the update.  If the company details are updated using this method, the company profile is displayed to Boligmappa property owners as in the given image.

Request

Parameter

Type

Mandatory/Optional

Maximum character length/limit

Description

inputUpdateCompanyProfileInputMandatoryNot relevantUpdateCompanyProfile input model
applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner

Note

Other company information like the company name, address, etc. which are not available in UpdateCompanyProfileInput, are taken directly from Proff API.


UpdateCompanyProfileInput

Property

Type

Mandatory/OptionalMaximum character length/limit

Description

OrganizationNumberIntMandatoryNot Relevant

Contains 9 digits E.g. 910747711

CompanyTelephoneNumberstringMandatoryNot RelevantE.g. 88998978, +4712345678 (5 or 8 characters)
CompanyEmailstringMandatory50E.g. per.christian@boligmappa.no
FacebookAddressstringOptional250Facebook address of the company
CompanyWebSitestringOptional250Company website
CompanyLogoImageInputOptional2 MBCompany logo image input
CompanyImageImageInputOptional2 MBCompany image input
HelpLinkButtonTextstringOptional25If HelpLink is given this field is mandatory
HelpLinkstringOptional250Eg: www.boligmappa.no. If HelpLinkButtonText is given this field is mandatory.
CompanyDescriptionstringOptional600Company description
ContactPersonContactPersonOptionalNot RelevantContact person details

Request - sample input

<UpdateCompanyProfile>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <OrganizationNumber>914350840</OrganizationNumber>
      <CompanyTelephoneNumber>34567</CompanyTelephoneNumber>
      <CompanyEmail>harshaniw@99x.lk</CompanyEmail>
      <FacebookAddress isNull="false" />
      <CompanyWebSite isNull="false" />
      <CompanyLogo>
        <Url>http://assets.airbnb.com/press/logos/NBC%20Logo.gif</Url>
        <Data isNull="false" />
      </CompanyLogo>
      <CompanyImage>
        <Url>https://thumbs.dreamstime.com/z/business-company-logo-27438277.jpg</Url>
        <Data isNull="false" />
      </CompanyImage>
      <HelpLinkButtonText isNull="false" />
      <HelpLink isNull="false" />
      <CompanyDescription isNull="false" />
      <ContactPerson>
        <ContactPersonImage>
          <Url>https://engineering.unl.edu/images/staff/Kayla_Person-small.jpg</Url>
          <Data isNull="false" />
        </ContactPersonImage>
        <Name>melanie</Name>
        <TelephoneNumber isNull="false" />
        <Email isNull="false" />
        <Role isNull="false" />
      </ContactPerson>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</UpdateCompanyProfile>


Response

Type

Description

UpdateCompanyProfileOutputUpdateCompanyProfileOutput model

 

UpdateCompanyProfileOutput

Parameter

Type

Description

IsUpdatedSuccessfullyboolIs updated successfully


Response - sample output 

<UpdateCompanyProfile>
  <MethodParameters>
    <UpdateCompanyProfileOutput>
      <IsUpdatedSuccessfully>True</IsUpdatedSuccessfully>
    </UpdateCompanyProfileOutput>
  </MethodParameters>
</UpdateCompanyProfile>

Exceptions

Error Code

Description

113

Input parameters contain null or invalid data

123An exception occurred while processing your request
138 applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
167You are not authorized to use this method
258Unable to find a company registered to the given OrganizationNumber
336

Contact person Name/Role length has exceeded the maximum character limit allowed (50)

369Email length has exceeded the maximum character limit allowed (50) 
377You are not authorized to perform this action
378FacebookAddress/ website address/HelpLink length has exceeded the maximum character limit allowed (250)
379One or more of the given Base64 strings as image inputs are not valid images
380If HelpLinkButtonText/HelpLink is given the HelpLink/HelpLinkButtonText is mandatory
381HelpLinkButtonText length has exceeded the maximum character limit allowed (25)
382One or more of the given images are more than 2MB in size
383CompanyDescription length has exceeded the maximum character limit allowed (600)
384Either the CompanyEmail or ContactPersonEmail is incorrect
385Either the CompanyTelephoneNumber or ContactPerson TelephoneNumber is invalid
386One or more of the given Urls for image inputs are not valid image file types
387Both Url and Data are provided for one or more of the inputs. Use either one in each input