{"errors":{"refund_shipping_lines":["is invalid"]},"error_reference":"If you report this error, please include this id: 674bf623-9044-4efc-b7eb-6074d122acd7-1721085465."}
We’ve been doing shipping refunds like these without issue. This appears to be a new error. Based on the API documentation, there is no refund_shipping_lines field in this API endpoint. It is unclear what the issue is.
From checking the ID on our side, I’m not seeing a lot of info other than the call to /refunds/calculate.json failed - the reference to refund_shipping_lines implies that you tried to use refund_shipping_lines in the request, but it doesn’t seem like you did. If you try the same request with the 2023-10 version instead, do you see the same error?
Alternatively could you try testing if you can query an orders SuggestedRefund object to return a suggested refund amount based on the items being reimbursed. It could look something like:
I was able to get the original request to work by first unarchiving/opening the order.
This seems like a new bug/requirement as we’ve done thousands of successful refund calculation requests like these before and I’m sure at least some of those involved orders that were archived.