Forum Discussion

PeterB1's avatar
PeterB1
Partner
6 years ago

AccountRight 2018 API /Report/ProfitAndLossSummary

Hi, Im trying to get the report api to work.

 

I have the correct uri and company file guid but each time I execute I get back an error like the following:

yearEndAdjust must be either true or false

 

My url ends up looking like this:

https://ar2.api.myob.com/accountright/xxxxxxxxxxxx/Report/ProfitAndLossSummary?StartDate=2018-01-01&EndDate=2018-05-31&ReportingBasis=cash&yearEndAdjust=true

 

I cant see how yearEndAdjust can be any more true or false.

 

Thanks for the help.

6 Replies

Replies have been turned off for this discussion
    • PeterB1's avatar
      PeterB1
      Partner

      Hi,

       

      I've just tried changing the case and it doesnt resolve the issue.

       

      If i change the order of the params, it also changes the message, it then complains of new last value appears incorrect.

       

      Any help would be apreciated.

      • Mike_James's avatar
        Mike_James
        Ultimate Partner

        Hi PeterB1, the URL you posted has another parameter of sorts at the end, "& ga" plus several numbers. Is that deliberate? Picture attached.