Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, can anyone give some insight into the issue I'm currently facing with refunds. I have Shopify Payments setup in my store. While refunding the order through Shopify payment, the status field in Transaction property of the Refund resource from the web hook payload of refunds/create topic shows up as 'pending' as the refund amount usually takes some time to process (usually within 10 days according to documentation). How do I know when the refund transaction is changed to 'success' ? and also get this information along with the Refund object. we currently do not have a topic called refund/update. Is there any topic or event we can subscribe so we get the Refund Object when the status is updated to success. Thanks.
Hello @Zenoti
When you refund an order through Shopify Payments, the status of the refund will initially be set to "Pending". This is because Shopify Payments needs to process the refund before it can be marked as "Success". The processing time for refunds can vary depending on a number of factors, such as the payment method used and the amount of the refund."
To be notified when the refund status changes to "Success", you can subscribe to the refunds/update
webhook topic. This topic will fire whenever the status of a refund is updated. The payload of the webhook will include the Refund object, which will contain the new status of the refund.
Hi @magecomp Thanks, really appreciate your time. As mentioned above refunds/update is not a valid topic. Please find the list of valid topics we can subscribe to https://shopify.dev/docs/api/admin-rest/2023-04/resources/webhook#event-topics
Have tried registering this topic through postman. got the following error
Any updates regarding this? Was just looking into this specific scenario. The current documentation for the order_transactions/create webhook states that it fires "[...] when it's status is updated."
https://shopify.dev/docs/api/admin-rest/2024-04/resources/webhook#event-topics-order-transactions-cr...
Does anyone know if it is possible to only subscribe to refund transactions instead of all transactions? In that case maybe this solves the problem 🤔
Hi @olivia-returbo ,I guess the only one way to achieve my use case is to subscribe to orders/update itself (which I already am). The response from orders/update seems to contain the refund details. Will have to process the data from the response of orders/update as it would be triggered on updating the refund, thanks
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024