Refunds are being download double by Shopify API

Webgility1
Excursionist
34 1 6

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

    1. It is giving two refunds.

b) https://rickshaw-boots.myshopify.com/admin/api/2020-01/orders/2827294441631.json

    1. 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.

0 Likes
Webgility1
Excursionist
34 1 6

Hi,

Please let me know  if there is any update .

0 Likes
Webgility1
Excursionist
34 1 6

Hi,

Please let me know  if there is any update.

0 Likes
Webgility1
Excursionist
34 1 6

@Shopify Team, 

Can we get a Quick Update here.

0 Likes
Webgility1
Excursionist
34 1 6

Hi Shopify ,

Our mutual customers are getting this issue continues.
Please look on it as priority.

Thanks

0 Likes
Webgility1
Excursionist
34 1 6

Hi Shopify ,

Our mutual customers are getting this issue continues.
Please look on it as priority.

Thanks

0 Likes
Webgility1
Excursionist
34 1 6

Hi Shopify, Our mutual customers are getting this issue continues.

Please look at it as priority.

Thanks

0 Likes
GrahamS
Shopify Staff
Shopify Staff
83 16 16

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,

Graham S | API Support @ 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

0 Likes