Skip to main content

Create New Customer (Person)

First create new contact

CreateContact (main.wsdl) Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://atollon.com/enterprise/wsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <wsdl:CreateContact>
         <server>acme</server>
         <session>6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04</session>
     <PERSON>
        <name1>Jack</name1>
        <name3>Buyer</name3>
        <ADDRESSES>
          <ADDRESS>
            <cityName>London</cityName>
            <countryName>United Kingdom</countryName>
            <isPrimary>1</isPrimary>
            <regionName>London</regionName>
            <street>Our Street 10</street>
            <type>132027101</type>
            <zipName>1100</zipName>
          </ADDRESS>
        </ADDRESSES>
        <CONTACTS>
          <CONTACT>
            <content>jackbuyer@gmail.com</content>
            <isMain>1</isMain>
            <isPrimary>1</isPrimary>
            <type>132031101</type>
          </CONTACT>
          <CONTACT>
            <content>33999888</content>
            <isMain>0</isMain>
            <isPrimary>1</isPrimary>
            <type>132035101</type>
          </CONTACT>
          <CONTACT>
            <content>990888333</content>
            <isMain>0</isMain>
            <isPrimary>1</isPrimary>
            <type>132033101</type>
            <typeType>3</typeType>
          </CONTACT>
        </CONTACTS>
        <PERSONINFO>
          <salutation>Dear Adam</salutation>
          <preferedLang>131428101</preferedLang>
        </PERSONINFO>
      </PERSON>
      </wsdl:CreateContact>
   </soapenv:Body>
</soapenv:Envelope>

CreateContact Response

<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://atollon.com/enterprise/wsdl">
   <ns0:Body>
      <ns1:CreateContactResponse>
         <result>OK</result>
         <time>0.08316803</time>
         <newId>139663101</newId>
      </ns1:CreateContactResponse>
   </ns0:Body>
</ns0:Envelope>

Create New Customer Folder

CreateSimpleFolder (project.wsdl) Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://atollon.com/enterprise/wsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <wsdl:CreateSimpleFolder>
         <server>acme</server>
         <session>6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04</session>
      <FOLDER>
        <name>Buyer, Jack</name>
        <organization>130944101</organization>
        <template>139633101</template>
        <contact>139663101</contact>
        <parent>130944101</parent>
      </FOLDER>
      </wsdl:CreateSimpleFolder>
   </soapenv:Body>
</soapenv:Envelope>

CreateSimpleFolder Response

<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://atollon.com/enterprise/wsdl">
   <ns0:Body>
      <ns1:CreateSimpleFolderResponse>
         <result>OK</result>
         <time>0.28198600</time>
         <newId>139676101</newId>
         <TYPE>
            <name>Client</name>
            <guiAction/>
            <id>132716101</id>
            <iType>1</iType>
            <masterProject>0</masterProject>
         </TYPE>
      </ns1:CreateSimpleFolderResponse>
   </ns0:Body>
</ns0:Envelope>