Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1491

Comprehensive order view via API? (Order, Refunds, Returns, quantities left, etc)

$
0
0

I’m going a little crazy trying to use the API to come back and determine what the actual end result of an order was.

If an purchase was made, and an order created, but there were returns and/or refunds, how do you later find out what the end result of actual quantities of items were still sold to the customer?

I’m pulling up an order using the RetrieveOrder, and in there, under line_item, I see return information, but using the PHP SDK API for an order if I do getReturns() on the order it returns nothing. Looking at the raw JSON from the Retrieve Order, I see it in there, but even then it doesn’t have quantities. If I look up the return order as a separate order and then go through the return line items I could see them, but it isn’t a comprehensive view. And further, how would I even know this existed as the main order via the PHP SDK data doesn’t reflect that anything was returned.

Order zls8ETfFzvdngiJ9HJO1EtUVaaPZY is the one I am looking at as a starting point.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1491

Latest Images

Trending Articles



Latest Images