Hello everyone,
We have a GraphQL query to fetch the suggested refund for an order without applying any taxes and duties. However, the SuggestedRefund endpoint doesn’t accept the argument refundImportTaxes. Our goal is to dynamically obtain the suggested refund value based on the selection of items, shipping, duties, and taxes.
Is there a workaround to achieve this?
GraphQL (API Version: 2024-07)
endpoint: query SuggestedRefund.
Parameter used:
{
"id": "gid://shopify/Order/12345678",
"refundLineItems": [
{
"lineItemId": "gid://shopify/LineItem/13579876",
"quantity": 1,
"restockType": "CANCEL",
"removal": true
}
],
"refundDuties": [],
"refundImportTaxes": false,
"refundAdditionalFees": [],
"shippingAmount": {
"amount": "0.0",
"currencyCode": "USD"
}
}