Difference between fulfilled and unfulfilled refunds

Difference between fulfilled and unfulfilled refunds

breiko
Shopify Partner
5 0 2

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:

  • 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.

 

Any other way I can differentiate the two?

Replies 5 (5)

wbenjamin
New Member
10 0 0

In order to research further, the way your orders are fulfilled would be needed.

https://help.shopify.com/en/manual/orders/fulfillment/fulfilling-orders

breiko
Shopify Partner
5 0 2

This doesn't answer my question. Fulfilment objects don't have any reference to refunded items as far as I'm aware.

wbenjamin
New Member
10 0 0

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?

DSokolowski
Shopify Partner
9 0 3

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.

 

tyuzu
Shopify Partner
20 0 0

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.