I need to differentiate refunds from refunded fulfilled items and refunded unfulfilled items.
Shopify allows to refund both (and optionally to restock) but from the Order endpoint how do I know if the refunded item was fulfilled or unfulfilled?
I thought I could use the attribute restock_type - the documentation says:
cancel: The items have not yet been fulfilled. The canceled quantity will be added back to the available count. The number of fulfillable units for this line item will decrease.
But I find some refunded orders that were not fulfilled with value no_restock and some fulfilled items with value no_restock.
I have the same problem. I am fetching an order using REST API so I get a json with refunds having line items. At this point I know what was refunded and if it was restocked but I do not know whether this was for a fulfilled or non-fulfilled part. I tried to use restock_type to determine it so ‘cancel’ would mean it is for non-fulfilled part while ‘return’ this is for fulfilled. However there is a third type ‘no_restock’ that you can get refunding both fulfilled and non-fulfilled item.
So the question is how to determine whether a given refund line item is for fulfilled or non-fulfilled part.
Hello @breiko , Have you find a way to differentiate it? I’m also having hard-time identifying if refunded item is fulfilled or not on uncheck restock option during refund.