I’m trying to use the refund/calculate api via POST to :
{{BaseUrl}}/admin/api/2022-04/orders/4876950962428/refunds/calculate.json
My body is :
{"refund":
{
"shipping": {"full_refund": true},
"refund_line_items": [
{"line_item_id": 12397092864252, "quantity": 1, "restock_type": "return"}
]
}
}
The error I get is
{
"errors": {
"refund": "Required parameter missing or invalid"
}
}
I have confirmed the order_id and refund_line_id by retrieving the order previously, and cutting and pasting the values across.
I have tried using location_id, different restock_types, currencies, all with the same result.
The structure of my data is the same to previous solutions of this problem.
I’m making my call via PostMan
I’m totally stumped - grateful for any help.