Versions Compared

Key

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

Description

...

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, those will be saved to database replacing they replace the existing database values. Therefore it It is advised to use the GetCompanies web method first and get the  method first to obtain details of a company, and then pass use those details along with changed values to UpdateCompanyProfile web method.

If you have updated your company details properly using this web method, your company profile will be displayed to Boligmappa Property owners as follows

Image Removedthe 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.

Image Added

Request

Parameter

Type

Mandatory/OptionalComments

Maximum character length/limit

Description

inputUpdateCompanyProfileInputMandatoryNot relevantUpdateCompanyProfile input model
applicationNamestringMandatoryThird party application identifier, identifying the client consuming the web service – (Length of the ApplicationName should Should be less than or equal to 10 )charactersThe name of the integration partner

Note:

Other company information like like the company name, address, etc. which are not available 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

UpdateCompanyProfileOutputUpdateCompanyProfile Output ModelUpdateCompanyProfileOutput model

 

UpdateCompanyProfileOutput

Parameter

Type

CommentsDescription

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 applicationName length is has exceeded the maximum allowed character limit allowed (10) 
146The application name applicationName is not set
167You are not authorized to use this web method
258Unable to find a company registered for to the given organization numberOrganizationNumber
336

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

369Maximum Email length of Email is exceeded has exceeded the maximum character limit allowed (50) 
377You are not authorized to perform this operationaction
378Maximum length of facebook addressFacebookAddress/ website address/ help link is exceeded HelpLink length has exceeded the maximum character limit allowed (250)
379One or more of given Base64 the given Base64 strings as image image inputs are not valid images
380If HelpLinkButtonText/HelpLink is given it is mandatory to give the HelpLink/HelpLinkButtonTextHelpLinkButtonText is mandatory
381Maximum HelpLinkButtonText length of HelpLinkButtonText is exceeded has exceeded the maximum character limit allowed (25)
382One or more of the given images are more than 2MB in size
383Maximum CompanyDescription length of Company Description is exceeded has exceeded the maximum character limit allowed (600)
384Either Company Email or Contact Person Email is not in the correct formatthe CompanyEmail or ContactPersonEmail is incorrect
385Either Company telephone number or Contact person telephone number is not validthe CompanyTelephoneNumber or ContactPerson TelephoneNumber is invalid
386One or more of the given URLs Urls for image inputs are not valid Image image file typetypes
387Both URL Url and Data are provided for one or more of the inputs. Use either one in each input

...