Unable to get Purchase Bills / Sales Invoices using AccountRight API

This thread is now archived and closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please post a new topic.
5 REPLIES
Contributing Partner JerryHsi
7 Posts
Contributing Partner
JerryHsi
Contributing Partner

7Posts

2Kudos

1Solutions

Re: Unable to get Purchase Bills / Sales Invoices using AccountRight API

Thank you very much John! It worked!

Experienced Partner JohnCro
17 Posts
Experienced Partner
Australia
JohnCro
Experienced Partner

17Posts

1Kudos

1Solutions

Accepted Solution Solved Solution

Re: Unable to get Purchase Bills / Sales Invoices using AccountRight API

Hi Jerry,

I noticed your url has "Purchases" rather than "Purchase"

Try the following:
http://localhost:8080/AccountRight/217be933-24bb-4edb-b9e0-71f645154263/Purchase/Order?api-version=v2
Contributing Partner JerryHsi
7 Posts
Contributing Partner
JerryHsi
Contributing Partner

7Posts

2Kudos

1Solutions

Re: Unable to get Purchase Bills / Sales Invoices using AccountRight API

I can't see any calls for purchase and invoice as you can see from the screenshot...

 

I have put the version in my http header as well:

"x-myobapi-version" = "v2"

 

Contributing Partner JerryHsi
7 Posts
Contributing Partner
JerryHsi
Contributing Partner

7Posts

2Kudos

1Solutions

Re: Unable to get Purchase Bills / Sales Invoices using AccountRight API

Hi John,

 

I can get the suppliers and contact ok from the API. I just tried this and still get 404 error:

 

http://localhost:8080/AccountRight/217be933-24bb-4edb-b9e0-71f645154263/Purchases/Order?api-version=v2

 

I think the API only supports calls (screenshots) which is strange as its 2015.4 version?

 

 

Best Regards

Jerry

API.jpg
Experienced Partner JohnCro
17 Posts
Experienced Partner
Australia
JohnCro
Experienced Partner

17Posts

1Kudos

1Solutions

Re: Unable to get Purchase Bills / Sales Invoices using AccountRight API

Hi Jerry,

 

You need to add this to the end of your url.

?api-version=v2

EDIT: Assuming you have the API installed of course? 

Highlighted
Contributing Partner JerryHsi
7 Posts
Contributing Partner
JerryHsi
Contributing Partner

7Posts

2Kudos

1Solutions

Solved: Go to Solution

Unable to get Purchase Bills / Sales Invoices using AccountRight API

Hi guys,

 

I have a myox company file that was upgraded from an older version of myob file by someone else. I am trying to use the AccountRight API to get a list of Bills and Invoices from the company file. I am running the company file locally using AccountRight 2015.4. However, when I make the REST calls, I always get 404 Resource not found for both Invoice and Purchase Bills. The call I am invoking is:

 

http://localhost:8080/AccountRight/217be933-24bb-4​edb-b9e0-71f645154263/Purchase/Order

 

I wonder if there is something wrong with the myox file??

 

Best Regards,

Jerry

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post