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:-
a) https://rickshaw-boots.myshopify.com/admin/api/2020-01/orders/2580820983967.json
- It is giving two refunds.
b) https://rickshaw-boots.myshopify.com/admin/api/2020-01/orders/2827294441631.json
- It is giving two refunds.
Content-Type:- application json
X-Shopify-Access-Token:- 01177b1668a49515b59bdfc6f9bae218
Please let us know if it requires any information from our side.
Hi,
Please let me know if there is any update .
Hi,
Please let me know if there is any update.
@Shopify_77 Team,
Can we get a Quick Update here.
Hi Shopify ,
Our mutual customers are getting this issue continues.
Please look on it as priority.
Thanks
Hi Shopify ,
Our mutual customers are getting this issue continues.
Please look on it as priority.
Thanks
Hi Shopify, Our mutual customers are getting this issue continues.
Please look at it as priority.
Thanks
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.
Best,