Skip to main content

Create New Deal

First Create Project Folder

CreateProject (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:CreateProject>
        <server>acme</server>
        <session>6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04</session>
        <PROJECT>
          <customer>139676101</customer>
          <folder>139676101</folder>
          <invoiceJournal>133150101</invoiceJournal>
          <name>Super Sales</name>
          <projectTemplate>133297101</projectTemplate>
          <provider>132740101</provider>
        </PROJECT>
      </wsdl:CreateProject>
   </soapenv:Body>
</soapenv:Envelope>

CreateProject Response

<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://atollon.com/enterprise/wsdl">
   <ns0:Body>
      <ns1:CreateProjectResponse>
         <result>OK</result>
         <time>0.24983001</time>
         <newId>139704101</newId>
         <TYPE>
            <id>133295101</id>
            <name>Deal</name>
            <masterProject>0</masterProject>
            <guiAction/>
            <iType>2</iType>
         </TYPE>
      </ns1:CreateProjectResponse>
   </ns0:Body>
</ns0:Envelope>

 

Second Create Billing Item

CreateProjectItem (item.wsdl) Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://atollon.com/enterprise/wsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <wsdl:CreateProjectItem>
         <server>acme</server>
         <session>6A941A9BC9EBEFAF585A4B936AA958755B1C85E2BD04</session>     
         <ITEM>
           <amount>1234</amount>
           <billingDate>2020-05-14T00:00:00</billingDate>
           <billingStatus>3</billingStatus>
           <totalQuantity>5</totalQuantity>
           <catalogPrice>190</catalogPrice>
           <currency>CZK</currency>
           <item>133629101</item>
           <name>AAA Batteries</name>
           <project>139704101</project>
           <purchasePrice>130</purchasePrice>
           <quantity>5</quantity>
           <totalAmount>6170</totalAmount>
           <totalAmountWithVat>6787</totalAmountWithVat>
           <vatValue>10</vatValue>
           <ratio>100</ratio>
      </ITEM>
      </wsdl:CreateProjectItem>
   </soapenv:Body>
</soapenv:Envelope>

CreateProjectItem Response

<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://atollon.com/enterprise/wsdl">
   <ns0:Body>
      <ns1:CreateProjectItemResponse>
         <result>OK</result>
         <time>0.01379299</time>
         <count>0</count>
         <itemId>139721101</itemId>
      </ns1:CreateProjectItemResponse>
   </ns0:Body>
</ns0:Envelope>