Run my Accounts API: Einbuchen einer Hauptbuchbuchung

POST https://service.runmyaccounts.com/api/{version}/clients/{mandantenname}/gl

<gl_batch> Element:

XML/JSON ElementBeschreibungDefault WertFeldtypPflicht Wert
batch_number <PK>Buchungs Referenz TEXTja
transdateBuchungsdatumjetztZEITSTEMPEL
descriptionBeschreibungstext TEXT
currencyWährungCHF TEXT(3)
exchangerateWechselkurs1 NUMBER
notesBemerkungen TEXT
gl_transactionsListe von Journaleinträge ELEMENT

<gl_transaction> Element:

XML/JSON ElementBeschreibungDefault WertFeldtypPflicht Wert
accnoKontennummer TEXTja
memoNotiz TEXT
sourceBeleg TEXT
debit_amountSoll0 NUMBERentweder debit_amount oder credit_amount
credit_amountHaben0 NUMBERoder

XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gl_batch>
  <batch_number>GL-001</batch_number>
  <currency>CHF</currency>
  <transdate>2013-07-30T00:00:00+02:00</transdate>
  <description>Bankübertrag</description>
  <notes></notes>
  <intnotes></intnotes>
  <exchangerate>1.0</exchangerate>
  <gl_transactions>
    <gl_transaction>
      <accno>1020</accno>
      <memo></memo>
      <source></source>
      <debit_amount>100</debit_amount>
      <credit_amount>0</credit_amount>
    </gl_transaction>  
    <gl_transaction>
      <accno>1021</accno>
      <memo></memo>
      <source></source>
      <accno></accno>
      <debit_amount>0</debit_amount>
      <credit_amount>100</credit_amount>
    </gl_transaction>
  </gl_transactions>
</gl_batch>

JSON:

    {  
   "batch_number":"GL-001",
   "transdate":"2016-04-06T11:48:05.555+02:00",
   "description":"Bankuebertrag",
   "currency":"CHF",
   "exchangerate":1.0,
   "gl_transactions":{  
      "gl_transaction":[  
         {  
            "debit_amount":100.0,
            "accno":"1020"
         },
         {  
            "credit_amount":100.0,
            "accno":"1021"
         }
      ]
   }
}