Breadcrumbs

Ledgers

Ledgers

An Aqilla instance can include as many ledgers as you want (e.g. Main, Budget, Forecast, Commitment). You can also use separate ledgers within a single instance for different companies in a group. The Aqilla REST API can be used to access different ledgers.

The ledger dimension is specified thus:

XML Code

XML
<dataentry>
  <ledger name="actual ledger name"/>
  <entity>

Ledger-specific  example

This is an example of entering a Miscellaneous document in the Budget ledger.

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>
  <ledger name="Budget"/>
  <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="gyVlvqLPLlt1yPEva55uQq5jaN">
    <returnattribute ubk="1" name="Document Reference">MISC000002</returnattribute>
    <attachments/>
  </entity>
  <subordinates>
    <entity sguid="jLq1BEruxv6jJEMMSzoyoE3OWB" id="1" sequence="1">
      <attachments/>
    </entity>
    <entity sguid="d0qMyGBH2kod68RRtpWMzdVPqN" id="2" sequence="2">
      <attachments/>
    </entity>
  </subordinates>
</dataentry