If your app calls Return.suggestedRefund on the GraphQL Admin API, this post is the migration guide.
What’s happening
Return.suggestedRefund has been deprecated and its replacement, Return.suggestedFinancialOutcome, has been generally available since 2025-07 and handles both refunds and exchanges in a single call.
Why migrate
suggestedFinancialOutcome models the full financial result of a return, including exchange line items, which suggestedRefund cannot represent. If you support exchanges — or plan to — it is the only field that will give you a correct total.
Before
query ReturnSuggestedRefund($returnId: ID!, $lineItems: [ReturnRefundLineItemInput!]!) {
return(id: $returnId) {
suggestedRefund(returnRefundLineItems: $lineItems, refundShipping: { fullRefund: true }) {
amount { presentmentMoney { amount currencyCode } }
subtotal { presentmentMoney { amount currencyCode } }
totalTax { presentmentMoney { amount currencyCode } }
suggestedTransactions { amountSet { presentmentMoney { amount currencyCode } } }
}
}
}
After
query ReturnSuggestedOutcome(
$returnId: ID!
$returnLineItems: [SuggestedOutcomeReturnLineItemInput!]!
$exchangeLineItems: [SuggestedOutcomeExchangeLineItemInput!]!
) {
return(id: $returnId) {
suggestedFinancialOutcome(
returnLineItems: $returnLineItems
exchangeLineItems: $exchangeLineItems
refundShipping: { fullRefund: true }
) {
discountedSubtotal { presentmentMoney { amount currencyCode } }
totalTax { presentmentMoney { amount currencyCode } }
financialTransfer {
__typename
... on RefundReturnOutcome {
amount { presentmentMoney { amount currencyCode } }
suggestedTransactions {
amountSet { presentmentMoney { amount currencyCode } }
}
}
... on InvoiceReturnOutcome {
amount { presentmentMoney { amount currencyCode } }
}
}
}
}
}
What changes in practice
exchangeLineItemsis required — pass an empty array if you don’t support exchanges. Each entry takes anExchangeLineItemGID.refundShippingandrefundDutiescarry over unchanged.amountandsuggestedTransactionsmove underfinancialTransfer, a union ofRefundReturnOutcomeandInvoiceReturnOutcome— the return’s net result can now be money owed to the customer or by them.financialTransferis nullable. A return whose exchange value fully offsets the refund produces no transfer in either direction.
Questions
Reply here and we’ll answer in the thread. If you maintain a public app and want to confirm whether your integration is affected, mention your app name and we’ll check.