Cancellation on shopify

omuni
Shopify Partner
2 0 0

is it possible to cancel a particular item of a multi quantity/item order on shopify platform using rest api's or graphQl  queries?
if not, what are the alternatives to achieve similar outcome. 
use case :  end user(customer) want to cancel a particular item for an orders but not the whole order.

Reply 1 (1)

Liam
Shopify Staff
2731 292 743

The refundCreate mutation has an input argument where you can specify `refundLineItems` to select the ID of the line item you want to refund - would this work for your use case?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog