Product Name
Sale Date
UPC and SKU #
Price (Sale/Retail)
Quantity Purchased
Total Amount
How can I do that? The API documentation does not give any kind of information on this. Please assist
getCustomer(String id)
method.getOrders()
on a Customer returns a list of Orders the customer has made. When you look at each order, you can get the time the order was created and the order total, which you can add to a running total if you want to know the total a customer has spent.com.clover.sdk.v3.order.Order v3Order = yourOrderConnector.getOrder(yourV1Order.getId());
getLineItems()
, which will help you find a lot of your data. By going through the line items, you can find the names of the items the customer purchased, the price the customer paid, and you can keep track of and increment the quantity purchased as you go.getItem()
on our LineItems, all that returns is a Reference with the item ID. We have to plug that ID into InventoryConnector’s getItem()
method to get information about an inventory item. Items have the methods getCode()
for the UPC and getSku()
for the SKU.2 People are following this question.