Forum Discussion

PeterB1's avatar
PeterB1
Cover User
7 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
    Cover User
    7 years ago

    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 Cover User
    7 years ago

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

  • PeterB1's avatar
    PeterB1
    Cover User
    7 years ago

    Hi Mike,

     

    Not sure if thats something on your side, but the url doesnt contain them on mine.

     

    Would be great if it was something like that.

  • Mike_James's avatar
    Mike_James
    Ultimate Cover User
    7 years ago

    Strange, I just copied the link address and pasted it into a text editor. But I see the same as you when I look at the page source. Must be a quirk of the forum?