Skip to content

Getting GL Transaction Details

Endpoints

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

Query Payload

json
{ 
  "Id": "0e0b6b8e-0cd5-4d35-a37f-d09e24924a17",
  "AddAttachment": true
}
Click to see the query parameters
FieldTypeCommentRequired
IdGuid
AddAttachmentBooltrue/false

Successful Result

json
{
  "Header": {
    "GLBId": "484c21e9-147f-4133-b665-9c74dec25096",
    "BatchCode": "PÄ",
    "No": 2,
    "Document": "testDocNo",
    "BatchDate": "2020-07-09T00:00:00",
    "CurrencyCode": "EUR",
    "CurrencyRate": 1.0000000,
    "TotalAmount": 0.00,
    "PriceInclVat": 1,
    "FileExists": true
  },
  "Lines": [
    {
      "AccountCode": "4010",
      "Memo": "testMemo",
      "DepartmentCode": "testCode1",
      "TaxName": "Ei veronalainen",
      "DebitAmount": 0.00,
      "DebitCurrency": 0.00,
      "CreditAmount": 0.00,
      "CreditCurrency": 0.00,
      "TypeId": 0
    }
  ],
  "Attachment": {
    "FileName": "testFileName",
    "FileContent": "dGVzdEZpbGVDb250ZW50"
  }
}
Click to see the result parameters
Field NameTypeComment
HeaderGLBHeader object
LinesArray of GLEntry objects
AttachmentAttachment object

GLBHeaderObject

Field NameComment
GLBId
BatchCode
No
Document
BatchDate
CurrencyCodei.e. EUR, PLN etc
CurrencyRateDebitCurrency and CreditCurrency will get value by multiplication of this rate. If currency is local currency, the rate is 1 and the DC and CC values are the same as amounts.
TotalAmount
PriceInclVat
FileNameStr
FileContentFile in base64

GLEntryObject

Field NameComment
AccountCode
Memo
DepartmentCode
TaxName
DebitAmount
DebitCurrencyamount in currency e.g. amount*currency rate
CreditAmount
CreditCurrencyamount in currency e.g. amount*currency rate

AttachmentObject

Field NameComment
FileNameStr
FileContentPDF file in base64