Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello -
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:
But I find some refunded orders that were not fulfilled with value no_restock and some fulfilled items with value no_restock.
Any other way I can differentiate the two?
In order to research further, the way your orders are fulfilled would be needed.
https://help.shopify.com/en/manual/orders/fulfillment/fulfilling-orders
This doesn't answer my question. Fulfilment objects don't have any reference to refunded items as far as I'm aware.
I'm aware it doesn't answer your question...., I'm looking for more info to look into it further.
The fulfillment page has multiple links to look at and I'm not going to go through them all.
Which way do you do fulfillment?
It does not matter.
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.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024