Hi, is there any way to refund an unfulfilled item without restocking it, currently it can only be refunded with restocking like this with refundCreate - GraphQL Admin.
"input": {
"orderId": "gid://shopify/Order/6661365137722",
"allowOverRefunding": false,
"refundLineItems": [
{
"lineItemId": "gid://shopify/LineItem/16239735832890",
"locationId": "gid://shopify/Location/100670144826",
"quantity": 1,
"restockType": "CANCEL",
}
],
"notify": false,
"transactions": []
}
When it is done through shopify admin instead of API, it uses a different graphql api with the extra field "removal": true
together with "restockType": "NO_RESTOCK"
to accomplish this:
{
"input": {
"currency": "USD",
"allowOverRefunding": false,
"orderId": "gid://shopify/Order/6661357994298",
"refundDuties": [],
"refundAdditionalFees": [],
"refundLineItems": [
{
"lineItemId": "gid://shopify/LineItem/16239721349434",
"quantity": 1,
"restockType": "NO_RESTOCK",
"removal": true
}
],
"refundImportTaxes": null,
"refundMethods": [],
"shipping": {
"amount": "0.0"
},
"notify": false,
"note": "",
"transactions": [],
"idempotencyKey": "ebb622cf-2ae2-4dee-8c3b-c67cb4e7e501",
"adjustOrderBalanceForPartialRefund": false
}
}
however, the “removal”: true field is not available on the public shopify refundCreate API under any version, it’ll be very helpful if that field is made available because for our fulfillment workflow, those items should not be restocked because the inventory is no longer there.