@Sudhir can you elaborate on this for the rest of us with the same problem?
Topic summary
Goal: obtain a dynamic suggested refund via Shopify’s GraphQL SuggestedRefund (2024-07) that excludes duties/import taxes based on selected items and shipping. A noted constraint is that SuggestedRefund does not accept a refundImportTaxes argument (despite it being shown in the initial example payload).
Proposed approach: compute the refund inputs yourself by:
- Fetching order details (prices, taxes, duties).
- Calculating the refund amount for selected items and shipping while excluding duties and import taxes.
- Using that computed context to call Shopify’s refund APIs.
Outcome: the original poster later confirmed they achieved this using the SuggestedRefund API, following essentially the same process outlined above (derive amounts client-side and feed appropriate inputs into SuggestedRefund). No parameter-level workaround for refundImportTaxes was provided.
Unresolved details: no step-by-step or code-level example was shared showing how to configure SuggestedRefund to omit import taxes beyond preparing inputs (e.g., leaving duties empty, setting shipping values). Another participant asked for elaboration, but the response only referenced the previously described process.
Status: resolved for the original reporter; details for others remain sparse/undocumented.