I am testing the Shopify API in Postman and running this request:
https://shopify.dev/docs/admin-api/rest/reference/orders/refund#calculate-2021-01
https://{{api_key}}:{{api_password}}@{{store_name}}.myshopify.com/admin/api/{{api_version}}/orders/{{order_id}}/refunds/calculate.json
with this body:
"refund": {
"shipping": {
"full_refund": false
},
"refund_line_items": [
{
"line_item_id": 5843458293926,
"quantity": 1,
"restock_type": "no_restock"
}
]
}
}
I am getting this error:
{
"errors": {
"refund_line_items.line_item": [
"can't be blank"
]
}
}
I checked that all the variables I am using in the request are correct and that the "line_item_id" matches an item in the order.