Skip to content

Getting GL Transactions Full Details ​

Endpoints ​

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

Query Payload ​

json
{
  "PeriodStart": "20200709",
  "PeriodEnd": "20200710",
  "WithLines": 1,
  "WithCostAlloc": 1
}
Click to see the query parameters
FieldTypeCommentRequired
PeriodStartDateRequired
PeriodEndDateMax length of the period 31 daysRequired
WithLinesintif 1 then with the lines
WithCostAllocintif 1 then with the cost allocations

Succesful result ​

json
[
  {
    "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,
    "Entries": [
      {
        "AccountCode": "4010",
        "AccountName": "Tullit, verot ja muut maksut tullattaessa",
        "Memo": "testMemo",
        "DepartmentCode": "testCode1",
        "DebitAmount": 0.00,
        "DebitCurrency": 0.00,
        "CreditAmount": 0.00,
        "CreditCurrency": 0.00,
        "TypeId": 4,
        "BatchId": "484c21e9-147f-4133-b665-9c74dec25096",
        "EntryId": "db9f5135-350d-4613-bcdc-706d12e779fd",
        "CostAllocLines": [
          {
            "SourceType": 2,
            "Code": "hfif",
            "Name": "ldhkfal",
            "Mult": 1,
            "Amount": 0.00,
            "BatchId": "484c21e9-147f-4133-b665-9c74dec25096",
            "EntryId": "db9f5135-350d-4613-bcdc-706d12e779fd"
          }
        ]
      }
    ]
  },
  // ...
]
Click to see the result parameters
FieldComment
GLBId
BatchCode
No
Document
BatchDate
CurrencyCode
CurrencyRate
TotalAmount
PriceInclVat
EntriesArray of Entries Objects

Entries object ​

FieldComment
AccountCode
AccontName
Memo
DepartmentCode
DebitAmount
DebitCurrency
CreditAmount
CreditCurrency
TypeId
BatchId
EntryId
CostAllocLinesArray of CostAllocLines object

Cost Allocation Lines object ​

TypeComment
SourceTypeDimension Id
CodeDimension value code
NameDimension value name
Mult
Amount
BatchId
EntryId