API/EndUser/Account/getContactByAccountAndType

From Emersion
Jump to: navigation, search

getContactByAccountAndType

Purpose Get information about staff contacts

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:getContactByAccountAndType>
           <acc:username>emesupport@telechoice.com.au</acc:username>
           <acc:password>********</acc:password>
           <acc:contactTypeName></acc:contactTypeName>
           <acc:ContactId></acc:ContactId>
        </acc:getContactByAccountAndType>
     </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:getContactByAccountAndTypeResponse>
           <ns1:contactList><![CDATA[<?xml version="1.0"?>
  <contacts><contactType typeName="Primary"><contact firstName="Chris" middleName="" lastName="Petersen" jobTitle="Chief Operating Officer" dateOfBirth="" driverLicense="" secretAnswer1="" secretAnswer2="" phonePassword="1234" doNotCall="" doNotEmail="" parentType="59" parentId="461060" accountUploadSource="" accountUploadSourceRef="" accessPassword="" dependent="" crmExportRef="" contactIndex="" id="322408" emailAddress="cpetersen@emersion.com.au" contactLanguage="English (Australia)" gender="Not stated / Inadequately described" websiteAddress="www.telechoice.com.au" timeZone="(GMT+10:00) Canberra, Melbourne, Sydney" contactSalutation="MR" jobTitleCode="Chief Operating Officer"><phoneNumbers><phoneNumber number="0414932390" extension="" parentType="4" parentId="322408" crmExportRef="" phoneType="Preferred"/><phoneNumber number="0412007555" extension="" parentType="4" parentId="322408" crmExportRef="" phoneType="Mobile"/></phoneNumbers><usernameDetails username="emesupport@telechoice.com.au" loginAttempts="" isLocked="" passwordHash="45b35a6a!7bb860c05dce4ff4051e1653dc8eb45f6d72327edff279e60d0cbf444a3511f3"/><physicalAddresses><physicalAddress addressTypeNumber="" streetName="Eastern" streetNumberStart="74" streetNumberEnd="" streetLotNumber="" suburb="Ferntree Gully" postcode="3156" addressComplexUnitNumber="" addressComplexLevelNumber="" addressSiteName="" addressBuildingName="" addressSiteLocation="" addressLine1="36 Warrabel Road" addressLine2="" addressPostalDeliveryNumber="" parentType="4" parentId="322408" addressPhysicalStateOther="" dateFrom="" dateTo="" crmExportRef="" id="321000" simpleFullAddressLine="74 Eastern Road, Ferntree Gully VIC 3156 Australia" simpleAddressLine1="74 Eastern Road" addressPhysicalState="Victoria" addressDisplayType="Unstructured Address" addressStreetType="Road" addressType="Business" country="Australia"/></physicalAddresses><object_properties/></contact></contactType><contactType typeName="Billing"><contact firstName="Dahlia" middleName="" lastName="Hamid" jobTitle="" dateOfBirth="" driverLicense="" secretAnswer1="" secretAnswer2="" phonePassword="1234" doNotCall="" doNotEmail="" parentType="59" parentId="461060" accountUploadSource="" accountUploadSourceRef="" accessPassword="" dependent="" crmExportRef="" contactIndex="" id="322409" emailAddress="dahlia.hamid@telechoice.com.au" contactLanguage="English (Australia)" gender="Not stated / Inadequately described" websiteAddress="www.telechoice.com.au" timeZone="(GMT+10:00) Canberra, Melbourne, Sydney" jobTitleCode="Not Stated"><phoneNumbers><phoneNumber number="0386992570" extension="" parentType="4" parentId="322409" crmExportRef="" phoneType="Preferred"/></phoneNumbers><physicalAddresses><physicalAddress addressTypeNumber="" streetName="Eastern" streetNumberStart="74" streetNumberEnd="" streetLotNumber="" suburb="South Melbourne" postcode="3205" addressComplexUnitNumber="" addressComplexLevelNumber="" addressSiteName="" addressBuildingName="" addressSiteLocation="" addressLine1="" addressLine2="" addressPostalDeliveryNumber="" parentType="" parentId="" addressPhysicalStateOther="" dateFrom="" dateTo="" crmExportRef="" id="321001" simpleFullAddressLine="74 Eastern Road, South Melbourne VIC 3205 Australia" simpleAddressLine1="74 Eastern Road" addressPhysicalState="Victoria" addressDisplayType="Standard Address (inc LOT)" addressStreetType="Road" addressType="Business" country="Australia"/></physicalAddresses><object_properties/></contact></contactType></contacts>]]></ns1:contactList>
        </ns1:getContactByAccountAndTypeResponse>
     </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

Error String:

  • Invalid username / password
  • Contact Id****do not have account linked to it. Can not validate access permission.
  • Invalid Contact Type requested.Supported types are Billing and Primary.Please use Any to get both contact details
  • Contact Id **** do not linked to accountId ****. Can not validate access permission.