Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Unable to get refund information for orders via restful api

Unable to get refund information for orders via restful api

xsjiang
Shopify Partner
7 0 3

This order has been refunded, but the refund information is not available from the API.

xsjiang_0-1680680467543.png

 

```

https://${host}/admin/api/2021-10/orders/{orderId}.json

```

xsjiang_1-1680680715348.png

 

Replies 5 (5)

garyrgilbert
Shopify Partner
433 41 191

did you try /orders/{order_id}/refunds.json

 

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
xsjiang
Shopify Partner
7 0 3

Yes, it return empty.

xsjiang_1-1680749353995.png

 

garyrgilbert
Shopify Partner
433 41 191

 

Huh, that shouldn't be if the order has been refunded you should have something there, even if you voided the order and refunded the money it should be there... Whats the financial_status of the order? 

 

Oh and on a side note you really should upgrade your API version from 2021-10 to the latest 🙂

 

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
xsjiang
Shopify Partner
7 0 3

`financial_status` is paid.

garyrgilbert
Shopify Partner
433 41 191

if the refund was accepted and processed by shopify then the financial status would not be paid, but either refunded or partially refunded. According to the data a refund was not processed that is why there is not refunds in the refunds property.

 

Also check the transactions for the order_id

 

orders/{order_id}/transactions.json

 

That should tell you if the chargeback or refund was processed.

 

I would contact your partner support now with the information to find out why the refund was not processed.

 

Cheers,

 

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution