Forum Discussion

ondrej2iq's avatar
5 years ago

Accountright Report/ProfitAndLossSummary API endpoint return "AccountTotal": 0.0 for all the accounts

Hello,

 

I'm trying the Report/ProfitAndLossSummary API endpoint  with an open access account and default AccountRight file provided. However, the response I'm getting includes AccountTotal equal to 0 for all the accounts returned.

This is how the part of the respnse look like:

{
  "StartDate": "2019-04-15T00:00:00",
  "EndDate": "2019-04-15T23:59:59",
  "ReportingBasis": "Cash",
  "YearEndAdjust": false,
  "AccountsBreakdown": [
    {
      "AccountTotal": 0.0,
      "Account": {
        ...
      }
    }
  ],
  ...
}

 

I tried changing StartDate, EndDate, ReportingBasis and YearEndAdjust many times with different values, but it doesn't make any difference.

 

When I tried MYOB AccountRight 2020.1 desktop app using the same default AccountRight file, the report includes some non-0 values depending on the selecting date range. This is the result for 2019-04-15:

 

 

Is there anything I'm missing? Any help on this would be much appreciated.

 

Kind regards,

Ondrej Sobisek, 2IQ Ltd