Shopify returnProcess over refunding to Store Credit

I have recently been using the returnProcess mutation to provide store credit refunds and I am struggling to over refund the customer for more than they paid for on the order. I presume we would need to use the allowOverRefunding parameter in ReturnProcessRefundInput, but it does not seem to support store credit.

Hey @lance_frate - thanks for flagging this.

You’re right: allowOverRefunding is accepted on ReturnProcessRefundInput, but it doesn’t currently allow the over-refunded amount to be issued through storeCreditRefund.

If you run returnProcess with allowOverRefunding: true and a store credit refund amount above the order’s refundable total, the mutation will return:

Total cannot exceed maximum refundable amount when refunding store credit

So for this workflow, the best path would be:

  1. Use returnProcess to refund the return up to the normal refundable amount as store credit.
  2. If you need to issue additional goodwill/store credit beyond what was paid on the order, issue that separately with storeCreditAccountCredit.

I tested this flow on my end just to make sure it would work separately as well, and using the separate store credit addition mutation does work for adding extra store credit directly to the customer’s store credit account.

I definitely get that splitting this into two steps is not super ideal, but at the moment, over-refunding directly through returnProcess to store credit isn’t supported. Let me know if I can clarify anything on our end here or if you’d like me to pass this along as a feature request - hope this helps a bit.

Thank you. I was thinking something along the same lines as well.

No worries! Happy to help - I’ll pass along the feature request for you here and mark this thread as solved for now, but let me know if I can help out with anything else :slight_smile: