We are Webgility and have mutual customers. We are consuming the Shopify order download API in our Webgility application.
Our mutual customers are experiencing an issue while downloading the Orders and their refunds.As we checked in api response and we are getting two records for refunds but in store it is showing only once.
Endpoints we are using are as below:-
Content-Type:- application json
Please let us know if it requires any information from our side.
Hello @Webgility1 ,
This would be an expected outcome in some situations where a refund is initially pending, and later successful. The transactions json log will contain 2 entries for the refund, one marked as "pending" and one marked as "successful", as these are handled as individual transactions/API calls rather than a singular event.
In the example links you provided, you or your client could navigate to: "https://rickshaw-boots.myshopify.com/admin/orders/2580820983967/transactions.json" to see the transactions log in detail, and confirm the above stipulation.
You would need to modify your API call to filter for "status: successful" or another parameter of that nature in order to prevent the unnecessary pending entry from being downloaded.