Discussing APIs and development related to customers, discounts, and order management.
I have removed one line item using order edit API. Now I'm trying to refund that amount using refund API. But the calculate refund API doesn't allow to me to specify the quantity as 1
If I do it throws me the error
{ "errors": { "refund_line_items.quantity": [ "cannot refund more items than were purchased" ] } }
{ "refund": { "shipping": { "full_refund": true }, "refund_line_items": [ { "line_item_id": 1234, "restock_type": "cancel", "quantity": 1 } ] } }