Webservices - Profit/loss and Balance

The webservice is used to retrieve a combined profit/loss and balance report. For each GL account the amount for the period (FromDate - ToDate) and the total balance for each account can be retrieved.

03 August,2022

 

 
REQUEST

{

   "Proxy": {   

      "Function":"HeliosWs",

      "HostName":"xxxxx",

      "UserName":"yyyyy",

      "Password":"zzzzz",

      "ReportName":"webservice"

   },

 

   "AuthenticationType":"SYSTEM",

   "UserName":"16984205",

   "Password":"8G56A2NrB",  

   "Function":"GetFinanceBalance",

   "FromAccountNo":"",

   "ToAccount":"",

   "FromDate": "",

   "ToDate": "",

   "Department":""

}

 
 
RESPONSE

{

   "AccountList":    [

            {

         "AccountNo": "1000",

         "AccountName": "Varesalg, reservedele",

         "AmountPeriod": -1285.55,

         "AmountTotal": -1285.55

      },

            {

         "AccountNo": "1395",

         "AccountName": "RESULTAT VÆRKSTED",

         "AmountPeriod": -1285.55,

         "AmountTotal": -1285.55

      }

   ],

    "WebserviceInfo": {

      "Name": "HELIOSWEBSERVICE",

      "Version": 1,

      "Build": 2001

   },

   "AuthenticationType": "SYSTEM",

   "ErrorCode": 0,

   "ErrorText": "",

   "Success": true,

   "Proxy": {

   "AgentName": "WSPROXY",

   "AgentVersion": "1.00.1015",

   "AgentCopyright": "Copyright (C) 2017-2018 Torben Ring. All rights reserved.",

   "ErrorCode": 0,

   "Success": true

   }

}

 

 
 
COMMENTS

  • If FromAccountNo and ToAccountNo are blank all accounts are included.
  • If FromAccountNo is blank and ToAccountNo is not blank all accounts up till ToAccountNo are included.
  • If ToAccountNo is blank and FromAccountNo is not blank then only FromAccountNo is included.
  • If Department is included in the request the reply will contain a profit/loss and balance report for only this department.