We have noticed that when we issue a refund from our development store, the request is being sent twice to our payments app (Please see attached screenshot). We are sending back a 201 response to confirm the first request but for the second request we are sending a 400 response since its a duplicate. This is then followed by a confirmation that we have processed the first request for the refund.
We would like to know if this is the expected behaviour? i.e the refund request being sent to us twice
I'm not sure why that behaviour would be occurring for your app. We're going to need a little more specific information around this in order to investigate further, including information about the store and app. Could you please fill out the API Support found in the partner dashboard Support section: https://partners.shopify.com/current/support/form
If you could include as much information as possible regarding the shop URL, app, requests and responses involved in this refund, the order involved, timeframes, etc. that would be helpful. Please note that our logs only extend back about a week, so if you have multiple examples of this behaviour, the most recent would be best.
Sorry about that! It's here: https://help.shopify.com/en/questions/partners#/contact and you can also navigate to it by clicking on Support in the partners dashboard.