I am using admin web service to retrieve promotions which matches my specified criteria. Here under is my unit test;
String sessionId = long(DEFAULT_USERNAME,DEFAULT_PASSWORD);
AdminPromotionSearch adminPromoSearch = new AdminPromotionSearch();
adminPromoSearch.setActive(Boolean.TRUE);
adminPromoSearch.setCumulative(Boolean.FALSE);
adminPromoSearch.setRequiresCoupon(Boolean.TRUE);
Calendar startDate = new GregorianCalendar(2010, 06, 01);
adminPromoSearch.setStartDate(startDate);
Calendar endDate = new GregorianCalendar(2011, 06, 27);
adminPromoSearch.setEndDate(endDate);
adminPromoSearch.setOrderTotalCode("ot_product_discount");
AdminPromotionSearchResult adminPromoSearchResult = kkClient.getPromotions(sessionId, adminPromoSearch, 0, 10);
Assert.assertNotNull(adminPromoSearchResult);
I have promotions matching the above mentioned criteria in my app, yet adminPromoSearchResult is returned with empty promotions array and zero totalSetSize.
What am i missing?