All things Shopify and commerce
Hi All,
I have an order where an item was returned by a customer and refund was provided in form of a gift card.
This gift card is added to line items object in Order API.
I would like to know if there is any data returned in the Order API which can help make me determine that the gift card was indeed issued as a refund
So here is how you can do it @simmsy . you have to use combination of sales agreement data thru graphql (Documentation) and order api
Here is logic if gift card line was added after order was placed and if customer paid 0 for it was most likely tied to a refund. What customer paid for it can be determined through the Sales Agreement object.
This is the best I could come up with. Hope this helps.
Woof, you'd like to see something more concrete. Thanks for the quick response!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025