• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 04, 2024, 07:56:27 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - AndreiN

1
Hello,

I am using the Admin API to retrieve Orders using the getOrders method, all this using C# and ASP.NET, and referencing the Admin WSDL as a service reference.

The problem I am encountering is that the AdminOrders objects retrieved LACK certain critical pieces of information, such as their line items (the orderProducts property is shown to hold zero elements). What I am resorting to is using the array of AdminOrder objects retrieved by getOrders to get their Id's, and then retrieving the full order information using getOrderByOrderId.

However, I have encountered issues even using this approach, as line items retrieved are missing critical pieces of information (such as prices) themselves! At this point I would have to start retrieving AdminProducts individually as well!

Can I get some help figuring this out please?
2
Hello,

I am trying to download orders through the KKAdmin API, using the getOrders method. When I set the AdminOrderSearch parameter to null, all orders are retrieved (as expected). My other search parameters are: offset set to zero to start, size at 50, and the language id is set to the store default, which I retrieve at run time.

However, I wish to filter the orders retrieved by various criteria such as Create Date, Create Date Range, OrderNumber, and OrderId. When I set, for example, the OrderId property to target a particular order, nothing is retrieved. The same happens when attempting to filter by dateAddedFrom, dateAddedTo, or any other criteria (that I have tried). It was my understanding that any properties of the AdminOrderSearch object that I do not set are simply ignored by the search (as per http://www.konakart.com/javadoc/admin/com/konakartadmin/app/AdminOrderSearch.html), however something clearly isn't working.

I have played around with it for a few hours, but to no avail. Can anyone give me an idea as to why this isn't working? Are there any compulsory AdminOrderSearch properties that must be set in order for the search to go through?

Thanks in advance!
3
Hello,

I'm writing a web service that will download Orders from Kona Kart web stores based on different filtering criteria. The standard ones to use are Create Date, Create Date Range, Order Status, Order Id, Last Modified Date, and Last Modified Date Range. It's these last two that are giving me trouble. When integrating with the KKEng API, it seems that the only way to retrieve orders by certain criteria is by using the searchForOrdersPerCustomer function, which is passed two objects for filtering purposes:



The first, DataDescriptor, seems to define how the information retrieved will be sorted/retrieved/paged, and to have nothing to do with filtering the Orders.

The second, however, clearly has properties that filter Orders by the date they were created: dateAddedFrom, dateAddedTo, as well as status.

My question is: Am I missing something? Is there a way to filter by Date Last Modified? Please let me know if it's possible, or if not, what a strategy for doing so in memory might be, without having to download every order in the store.


Thanks in advance!