Return Approved - order.totalOutstandingSet.amount always $0

Hi everyone,

We have a flow that automates return refunds. Previously we were using the Return approved trigger and return.order.totalOutstandingSet.presentmentMoney.amount as the value to refund. Previously to July 1st this was working just fine, but after July 1st this amount is always set to $0. Is this the expected behavior or is their a regression with this API?

Additionally, does anyone know if there is a better way to calculate the refund amount on a return?

Thank you

Hi @Justin_Sheldon

I believe there were recent changes related to this, and the new workflow for managing and processing returns is described here: Migrate to return processing

Hey @Liam-Shopify ,

Unfortunately we can’t use that because of our refund process is in Flow and the API version for Send Admin API request is set at 2024-10.

I did notice the return.order.totalOutstandingSet.presentmentMoney.amount is present on the return closed trigger, but at that point it’s too late to do a refund as the refundableQuantity gets set to 0.

I also looked into using returnCalculate - GraphQL Admin, but this kind of seems error prone and not as easy as using totalOutstandingSet was.

After some more investigation, I am starting to think our original refund flow was less than ideal and I need to do some more investigation. Back to the drawing board.

If you want to keep things within Flow, you could also try asking on the Flow board to see if there’s recommendations for managing refunds and returns that folks from there could share: Shopify Flow - Shopify Developer Community Forums