Developer forum

Forum » Dynamicweb 10 » Get Orders list with dwapi issue

Get Orders list with dwapi issue

Andrejs Zavorotnijs
Reply

Hello

Have an issue to get whole list of orders

all of this orders are completed

The last order in solution is 485, but when I execute get request I don't receive all orders 

/dwapi/ecommerce/orders?PageSize=500

When I execute single order request, then everything is fine

/dwapi/ecommerce/orders/{secret}


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Andrejs 

Do you use a JWT to get the orders? Do all the orders belong to the same user?

In the above screenshots I see 2 orders with different userid - the list will only give you orders that belongs to the user in the current JWT.

Please see this doc article: https://doc.dynamicweb.dev/documentation/implementing/headless/delivery-api/commerce.html

We currently do not have an endpoint for getting orders accross different users. Is that what you are looking for (we have it on the feature request list.)

BR Nicolai

Votes for this answer: 1
 
Andrejs Zavorotnijs
Reply

Hi Nicolai

Yep, my fault, I should better read description

So as I understand there are no any out of the box API to get all completed orders.

Then + from me for feature request

 

You must be logged in to post in the forum