Hi all,
I wonder if there is a GraphQL mutation for returning an fulfilled item. The only mutation i found is the refundCreate and it has a RETURN option in the RefundLineItemRestockType.
I could successfully perform a Refund the fufilled item is doesn’t mark as returned.
And if i click the refund btn in the order detail page, it said there is no more item available for return. so i guess there should be no more fulfilled items.
Here is the mutation input i used for refundCreate
// Refund/Return item
const refund = {
orderId: `gid://shopify/Order/XXXXX`,
refundLineItems: [
{
lineItemId: `gid://shopify/LineItem/XXX`,
quantity: 1,
restockType: 'RETURN',
locationId: `gid://shopify/Location/XXXXX`
}
],
transactions: [
{
amount: 100,
gateway: 'bogus',
kind: 'REFUND',
orderId: `gid://shopify/Order/XXXXX`,
parentId: `gid://shopify/OrderTransaction/XXXXX`
}
]
};
So is there anyway i could mark the fulfilled item as RETURNED in the order detail page as show below thru API?
Thanks~
Regards,
Kit


