We are posting a refund to this Endpoint
And we are using this Payload
Solved! Go to the solution
Here are the current docs for this API endpoint --> https://shopify.dev/docs/admin-api/rest/reference/orders/refund?api[version]=2020-04#create-2020-04. Depending on which API version you are using, I'd recommend checking the JSON request body you are sending. For example, the refund_line_items can contain restock_type and location_id properties. And if the shipping's full_refund is false you might have to specify an amount...
I have tried with this Endpoint /admin/api/2020-04/orders/2186660184112/refunds.json