Skip to content

Creating General Ledger Transactions

Endpoints

https://app.passelimerit.fi/api/v1/sendglbatch

Query Payload

json
{
  "DocNo": "testDocNo",
  "BatchDate": "20200709",
  "EntryRow": [
    {
      "AccountCode": "4010",
      "DepartmentCode": "testCode1",
      "Debit": 0,
      "Credit": 0,
      "ProjectCode": "hfif",
      "Memo": "testMemo"
    }
  ],
  "Attachment": {
    "FileName": "dGVzdEZpbGVOYW1l",
    "FileContent": "dGVzdEZpbGVDb250ZW50"
  },
  "CurrencyCode": "EUR",
  "CurrencyRate": 0
}
Click to see the query parameters
FieldTypeCommentRequired
DocNoStr 35
BatchDateDateRequired
EntryRowArray of EntryRow objectsRequired
AttachmentAttachmentObject
CurrencyCodeStr 4
CurrencyRateDecIf the exchange rate is not included, we will take it from the EU central bank's request for the respective date

EntryRowObject

FieldTypeCommentRequired
AccountCodeStr 8Must be found in the company databaseRequired
DepartmentCodeStr 16Must be found in the company database
DebitDecimal 18.2
CreditDecimal 18.2
ProjectCodeStr 20If used then must be found in the company database
CostCenterCodeStr 20If used then must be found in the company database
MemoStr 150

AttachmentObject

FieldTypeCommentRequired
FileNameStrName in Base64 format
FileContentStrPDF In Base64 format

Successful Result

json
{
  "BatchId": "0e0b6b8e-0cd5-4d35-a37f-d09e24924a17",
  "BatchInfo": "PÄ-1"
}