Skip to main content
Skip table of contents

Create document sample

Create Document Sample


Miscellaneous

API Request

XML
PUT https://www.aqilla.net/InstanceName/wsapi/2.5/Documents/Miscellaneous/Miscellaneous - Details
Content-Type: application/xml

Body

XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <company name="REST Demo"/>
  <entity>
    <returnattribute name="Document Reference"/>
    <attribute name="Document Date">1 Jul 2016</attribute>
  </entity>
  <subordinates>
    <entity>
      <attribute name="Account">C00331</attribute>
      <attribute name="Description">Whatever</attribute>
      <attribute name="Base">120</attribute>
      <attribute name="Cr/Db">Credit</attribute>
      <attribute name="Due Date">1 Jul 2016</attribute>
    </entity>
    <entity>
      <attribute name="Account">P3215</attribute>
      <attribute name="Description">Heston Supplies</attribute>
      <attribute name="Base">120</attribute>
      <attribute name="Cr/Db">Debit</attribute>
      <attribute name="Due Date">1 Jul 2016</attribute>
      <attribute name="Project">P002</attribute>
    </entity>
  </subordinates>
</dataentry>

Response

XML
200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
    <entity sguid="87rRkqRBylT3JNjPNlFXqLp4B1">
        <returnattribute ubk="1" name="Document Reference">MISC000004</returnattribute>
        <attachments/>
    </entity>
    <subordinates>
        <entity sguid="V2nK2XBkcGaMD5MQFMalaN8ODJ" id="1" sequence="1">
            <attachments/>
        </entity>
        <entity sguid="g1qo6zls0ZBeyBzf86pQY3PK9j" id="2" sequence="2">
            <attachments/>
        </entity>
    </subordinates>
</dataentry>

Sales Invoice (Services)

API Request

XML
PUT https://www.aqilla.net/InstanceName/wsapi/2.5/Documents/Sales Invoices (Services)/Sales Invoice (Services) - Details
Content-Type: application/xml

Body

XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <company name="REST Demo"/>
  <entity>
    <returnattribute name="Document Reference"/>
    <attribute name="Customer Code">MIC001</attribute>
    <attribute name="Document Date">01 Jul 2016</attribute>
    <attribute name="Due Date">15 Jul 2016</attribute>
  </entity>
  <subordinates>
    <returnattribute name="VAT Amount"/>
    <entity>
      <returnattribute name="Gross"/>
      <attribute name="Description">Inspect Googling Hatch</attribute>
      <attribute name="Units">Each</attribute>
      <attribute name="Qty">4</attribute>
      <attribute name="Unit Price">200</attribute>
      <attribute name="VAT Rate">Standard</attribute>
      <attribute name="Account">P2110</attribute>
    </entity>
    <entity>
      <returnattribute name="Gross"/>
      <attribute name="Description">Moisten Globule</attribute>
      <attribute name="Units">Each</attribute>
      <attribute name="Qty">12</attribute>
      <attribute name="Unit Price">55</attribute>
      <attribute name="VAT Rate">Standard</attribute>
      <attribute name="Account">P2110</attribute>
    </entity>
  </subordinates>
</dataentry>

Response

XML
200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
    <entity sguid="8aBYZqDV5lSMXP6vjJCbAR25ME">
        <returnattribute ubk="1" name="Document Reference">INV_S000027</returnattribute>
        <attachments/>
    </entity>
    <subordinates>
        <entity sguid="MkPAkkzlI39oxwzniZD0D81AjY" id="1" sequence="1">
            <returnattribute name="VAT Amount">160.00</returnattribute>
            <returnattribute name="Gross">960.00</returnattribute>
            <attachments/>
        </entity>
        <entity sguid="E5OBY3BF7ErvBRlHpvJl6zDqr8" id="2" sequence="2">
            <returnattribute name="VAT Amount">132.00</returnattribute>
            <returnattribute name="Gross">792.00</returnattribute>
            <attachments/>
        </entity>
    </subordinates>
</dataentry>

Purchase Invoice

API Request

XML
PUT https://www.aqilla.net/InstanceName/wsapi/2.5/Documents/Purchase Invoice/Purchase Invoice - Details
Content-Type: application/xml

Body

XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <company name="REST Demo"/>
  <entity>
    <returnattribute name="Document Reference"/>
    <attribute name="Supplier Code">APM001</attribute>
    <attribute name="Document Date">24 Aug 2016</attribute>
    <attribute name="Due Date">24 Sep 2016</attribute>
    <attribute name="Originator Reference">123487</attribute>
    <attribute name="Invoice Total"></attribute>
    <attribute name="Memorised">Not Memorised</attribute>
  </entity>
  <subordinates>
    <returnattribute name="Tax Amount"/>
    <entity>
      <returnattribute name="Gross Value"/>
      <attribute name="Item Description">Big Shiny Pump</attribute>
      <attribute name="Units">Each</attribute>
      <attribute name="Qty">4</attribute>
      <attribute name="Unit Price">200</attribute>
      <attribute name="VAT Rate">Standard</attribute>
      <attribute name="Cost Account">B5135</attribute>
      <attribute name="Project"></attribute>
    </entity>
    <entity>
      <returnattribute name="Gross Value"/>
      <attribute name="Item Description">Pump Shaft</attribute>
      <attribute name="Units">Each</attribute>
      <attribute name="Qty">2</attribute>
      <attribute name="Unit Price">1100</attribute>
      <attribute name="VAT Rate">Standard</attribute>
      <attribute name="Cost Account">B5135</attribute>
      <attribute name="Project"></attribute>
    </entity>
  </subordinates>
</dataentry>

Response

XML
200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <entity sguid="eb03oqppz2tNv78WjGFzqJlzgP">
    <returnattribute ubk="1" name="Document Reference">PI_C000016</returnattribute>
    <attachments/>
  </entity>
  <subordinates>
    <entity sguid="Gd0qMyGBHLyZJGlgu5gJgl8qNW" id="1" sequence="1">
      <returnattribute name="Tax Amount">160.00</returnattribute>
      <returnattribute name="Gross Value">960.00</returnattribute>
      <attachments/>
    </entity>
    <entity sguid="zrAggalf1B8jVLwcZJEa05bAP4" id="2" sequence="2">
      <returnattribute name="Tax Amount">440.00</returnattribute>
      <returnattribute name="Gross Value">2,640.00</returnattribute>
      <attachments/>
    </entity>
  </subordinates>
</dataentry>

Purchase Order

API Request

XML
PUT https://www.aqilla.net/InstanceName/wsapi/2.5/Documents/Purchase Order/Purchase Order - Details
Content-Type: application/xml

Body

XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <company name="REST Demo"/>
  <entity>
    <returnattribute name="Document Reference"/>
    <attribute name="Supplier Code">APM001</attribute>
    <attribute name="Document Date">30 Aug 2016</attribute>
    <attribute name="Currency Code"></attribute>
    <attribute name="Memorised"></attribute>
    <attribute name="Comments">Just a comment...</attribute>
  </entity>
  <subordinates>
    <entity>
      <returnattribute name="Gross Value"/>
      <attribute name="Item">TMate 612TXi PIII900 W2K</attribute>
      <attribute name="Units">Each</attribute>
      <attribute name="Qty">2</attribute>
      <attribute name="Unit Price">2128</attribute>
      <attribute name="Date Required">15 Sep 2016</attribute>
      <attribute name="VAT Rate">Standard</attribute>
      <attribute name="Cost Account">P2180(Business Development)</attribute>
    </entity>
  </subordinates>
</dataentry>

Response

XML
200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dataentry>
  <entity sguid="87rRkqRBylT1xogj8dCXqLp4B1">
    <returnattribute ubk="1" name="Document Reference">PO000002</returnattribute>
    <attachments/>
  </entity>
  <subordinates>
    <entity sguid="V2nK2XBkcVyp2D84iMalaN8ODJ" id="1" sequence="1">
      <returnattribute name="Gross Value">5,107.20</returnattribute>
      <attachments/>
    </entity>
  </subordinates>
</dataentry>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.