Skip to content

Statement of Profit or Loss

Endpoints

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

Query Payload

json
{
  "EndDate": "YYYYmmDD",
  "PerCount": 2,
  "DepFilter": ""
}
Click to see the query parameters
FieldTypeCommentRequired
EndDateStrPeriod end dateRequired
PerCountIntNumber of periods (months)Required
DepFilterStrDepartment if used

Successful Result

json
{
  "ErrorMsg": "",
  "Data": [
    {
      "RDid": "6b96bdb1-d4c1-4113-88ac-389bbaf8253e",
      "No": "9810",
      "Description": "RESULT BEFORE ACCOUNTING TRANSFER AND TAXES",
      "RowType": 4,
      "Balance": [
        0.0,
        0.0,
        0.0
      ],
      "Details": []
    },
    // ...
  ]
}
Click to see the result parameters
FieldComment
DataData Object

Data Object

FieldComment
RDid
NoReport line number
Description
RowType1 - row description,
3 - account turnover,
4 - formula
BalanceReport line totals starting from the period enddate descending.

If RowType is 1, Balance is null
DetailsDetails Object. Report line detail info

Details Object

FieldComment
AccountCode
AccountName
TypeId3 - revenue,
4 - expenses
BalanceReport line totals starting from the period enddate descending