API/EndUser/Account/updateAccount

From Emersion
Jump to: navigation, search

updateAccount

Purpose Update details for the current account

Inputs

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://api-uat.emersion.com.au/AccountObjects">
     <soapenv:Header/>
     <soapenv:Body>
        <acc:UpdateComplexAccount>
           <acc:username>emesupport@telechoice.com.au</acc:username>
           <acc:password>*****</acc:password>
           <acc:AccountType>?</acc:AccountType>
           <acc:PrimaryContact>
              <acc:Detail>
                 <acc:Title>?</acc:Title>
                 <acc:FirstName>?</acc:FirstName>
                 <acc:LastName>?</acc:LastName>
                 <acc:AddressLine1>?</acc:AddressLine1>
                 <acc:AddressLine2>?</acc:AddressLine2>
                 <acc:AddressLine3>?</acc:AddressLine3>
                 <acc:Suburb>?</acc:Suburb>
                 <acc:State>?</acc:State>
                 <acc:StateOther>?</acc:StateOther>
                 <acc:Postcode>?</acc:Postcode>
                 <acc:Country>?</acc:Country>
                 <acc:EmailAddress>?</acc:EmailAddress>
                 <acc:PhoneNumber>?</acc:PhoneNumber>
                 <acc:MobileNumber>?</acc:MobileNumber>
                 <acc:FaxNumber>?</acc:FaxNumber>
                 <acc:Website>?</acc:Website>
              </acc:Detail>
              <acc:CumulusUser>
                 <acc:UserName>?</acc:UserName>
                 <acc:Password>?</acc:Password>
              </acc:CumulusUser>
           </acc:PrimaryContact>
           <acc:AccountContactType>
              <acc:Type>?</acc:Type>
           </acc:AccountContactType>
           <acc:AccountOrganisation>
              <acc:OrgName>?</acc:OrgName>
              <acc:OrgTradingName>?</acc:OrgTradingName>
              <acc:OrgType>?</acc:OrgType>
              <acc:OrgIdentifier>?</acc:OrgIdentifier>
              <acc:OrgIdentifierType>?</acc:OrgIdentifierType>
           </acc:AccountOrganisation>
           <acc:BillingContact>
              <acc:Detail>
                 <acc:Title>?</acc:Title>
                 <acc:FirstName>?</acc:FirstName>
                 <acc:LastName>?</acc:LastName>
                 <acc:AddressLine1>?</acc:AddressLine1>
                 <acc:AddressLine2>?</acc:AddressLine2>
                 <acc:AddressLine3>?</acc:AddressLine3>
                 <acc:Suburb>?</acc:Suburb>
                 <acc:State>?</acc:State>
                 <acc:StateOther>?</acc:StateOther>
                 <acc:Postcode>?</acc:Postcode>
                 <acc:Country>?</acc:Country>
                 <acc:EmailAddress>?</acc:EmailAddress>
                 <acc:PhoneNumber>?</acc:PhoneNumber>
                 <acc:MobileNumber>?</acc:MobileNumber>
                 <acc:FaxNumber>?</acc:FaxNumber>
                 <acc:Website>?</acc:Website>
              </acc:Detail>
           </acc:BillingContact>
           <acc:AccountReference>?</acc:AccountReference>
        </acc:UpdateComplexAccount>
     </soapenv:Body>
  </soapenv:Envelope>

Outputs

  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api-uat.emersion.com.au/AccountObjects">
     <SOAP-ENV:Body>
        <ns1:UpdateAccountResponse>
           <ns1:Result>true</ns1:Result>
        </ns1:UpdateAccountResponse>
    </SOAP-ENV:Body>
  </SOAP-ENV:Envelope

Error String:

  • Invalid username / password
  • Invalid or Missing Account Type
  • Could not find Account ID!
  • Invalid or Missing Title
  • Invalid or Missing First Name
  • Invalid or Missing Last Name
  • Invalid or Missing Address
  • Invalid or Missing Suburb
  • Invalid or Missing State
  • Invalid or Missing Postcode
  • Invalid or Missing Country
  • Invalid or Missing Email Address
  • Invalid or Missing Phone Number
  • Invalid Website
  • Invalid or Missing CumulusUser Username
  • Invalid or Missing Password
  • Missing AccountContactType. Type Value must be either 'Organisation' or 'Org' or 'Individual'
  • Invalid AccountContactType. Type Value must be either 'Organisation' or 'Org' or 'Individual'
  • Missing OrgName. When AccountContactType is 'Organisation' OrgName is required
  • Invalid OrgType. If given OrgType value,then it must valid integer. Otherwise leave blank to set default value 29 for org type 'Company'