Developer forum

Forum » Development » DWAPI /dwapi/ecommerce/orders/ bugs and request for OrderBy to be added

DWAPI /dwapi/ecommerce/orders/ bugs and request for OrderBy to be added

Mikkel Hammer
Mikkel Hammer
Reply

Hi DW,

(Testet on 9.15.7)
When calling "/dwapi/ecommerce/orders/", we're experiencing some bugs.

First of when looking at the "dwapi docs" site, it doesn't say PageSize is required.



But when you call without any parameters, it always returns an empty list.




Calling with pageSize makes it return a list, but now it's missing some of it properties. Both CurrentPage and PageCount is missing.




Calling with CurrentPage parameter, fixes it so it does get returned - but i think it should always be returned PageSize is there aswell




Lastly it would be great if there was a way to add a "OrderBy=DESC / OrderBy=ASC", which would look at CompletedDate - so it's possible to get the newest orders first.

Looking forward to your response :)

Best regards,
Mikkel Hammer


Replies

 
Mikkel Hammer
Mikkel Hammer
Reply

bump

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

Feature request, devops#13983

https://dev.azure.com/dynamicwebsoftware/Dynamicweb/_git/6c50e4b4-24ae-4229-9b25-fa4608074c70/pullrequest/8972

Votes for this answer: 1
 
Mikkel Hammer
Mikkel Hammer
Reply

looks great! Thanks a lot Nicolai :)

Best regards,
Mikkel Hammer

 

You must be logged in to post in the forum