I’m using the Shopify Admin REST API (as documented at https://help.shopify.com/en/api/reference/orders/refund) to refund items from an order.
The API calls (POST /admin/orders/<order_id>/refunds/calculate.json, followed by POST /admin/orders/1985144127624/refunds.json) succeed (only unexpected thing being an empty refund_line_items in the return to /calculate).
But the problem is the order’s status does not change to “refunded” - even if we refund the only product. What happens is that:
- the product gets removed from the order (as seen in Shopify Admin)
- a Refund IS created in Shopify (as seen by the /admin/orders/<order_id>/refunds.json API).
Has anyone else encountered this issue or something similar before? Does anyone know of a workaround?