We are calling the calculate refund API
before calling the create refund API
It is working fine but today, the calculate API did return the transactions object empty in the response.
Therefore we can not refund the order.
Do you have any idea what can be the reason?
Thanks in advance
Solved! Go to the solution
Hey @birben ,
A couple of reason why you may be getting an empty transaction object could be if the order you are trying to refund was worth $0.00 (i.e. the customer purchased a free item). In that case no transaction would exist and therefore the transaction object would be empty. Another possibility would be if the order was already refunded or cancelled in the first place.
If neither of these cases apply to you, feel free to send me the value of the X-Request-ID in the header of the API response from Shopify that returns the calculated refund with an empty transaction object
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
|2 hours ago|
|3 hours ago|
|4 hours ago|
|5 hours ago|