Jump to content

API issue, GET /api/orders not showing xlink list?


CvR

Recommended Posts

Dear Prestashop/community

I wanted to get a list of all orders using GET /api/orders 
but I get the following error (500 Internal server error)

Same issue when trying to retrieve the order_details  GET /api/order_details

I do however get a list of all customers when using GET /api/customers

Getting a single record from order / customer / order_details is working just fine (GET /api/orders/1  /api/customers/1 /api/order_details/1 )

The customer is using version 1.7.6.7 

Any workarounds available to get a list of all order_ids ?

I could use the order_histories ,this gives me all order histories ids with references to order_ids
But I don't know if an order always has an orders_histories record

Kind regards, 

Chester van Ree

Link to comment
Share on other sites

Found a workaround. 
when using ?limit=1000&sort=id_DESC it is working. 

The customer had almost 100000 order records so I'm guessing that the webservice couldn't handle the amount of records

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...