Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
We are building a new connector between NetSuite and Shopify and have come up against an issue where refunds can be refunded back to gift cards but NetSuite does not allow this.
Is there a way to create a Flow that disables Gift Cards that have been refunded? These will then have to be manually re-made.
Thanks in advance!
Hi Montadventure,
While Shopify doesn't offer a native feature that automatically disables gift cards after a refund, you can use the Gift Card API, to disable a gift card by making a POST request to disable.json. You would need to build an app that listens for refund events when an order updates. Whenever a refund is made to a gift card, your custom app could then make a POST request to the Gift Card API disable endpoint to disable that gift card.
Hope this helps!
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