How to refund order to store credit?

Hi everyone, I’m trying to implement refundCreate mutation to refund order to store credit.

I passed “store-credit” to “gateway” but it alway refund to original payment method instead of store credit

Do you guy facing same problem?

Thanks

In case you’re creating a public app, Shopify doesn’t allow apps o issue store credit as refund.

Hey @jenhacool

To follow what David has mentioned, this is something on our radar, but not something currently available. If you do want to start testing with the mutations that are available, there is a developer preview for that: Developer previews

Just going to note a similar post here:

Honestly this would be a killer feature and any push in timeline to get this out in the wild would be awesome!

It is the one limitation on returns/exchanges (bar some graphQL linkage), and would make the whole returns module super usable.

From what I can tell it is not supported.

The problem is that you need to refund to the same gateway thats on the order.

Would love it though, if anyone figures a workaround then im super keen to try it out.

@KyleG-Shopify Not sure how but I saw this public app is doing it

1 Like

Hey @jenhacool , thats interesting.

On that order, I see it is showing as a test so that may be part of it. Do you know if the order was placed using a different gateway or was the purchase made using store credit? I’m just thinking if it was a store credit order, then this could be just a normal refund going back to the original gateway.

The order has been paid using Bogus Gateway.

I was placed another order on same store with same Bogus Gateway but it alway refund to original payment method instead of store credit

I also notice few things

  • payment_gateway_names field only contains “bogus” after order placed but having “store-credit” after refunded
    CleanShot 2025-04-04 at 22.42.50

  • I check storeCreditAccounts field from customer object and see that the transaction event is “ADJUSTMENT” instead of “ORDER_REFUND”

    CleanShot 2025-04-04 at 22.51.59

    This kind of transaction look similar to transaction created by storeCreditAccountCredit mutation, not order refund

Hey @KyleG-Shopify

Did you have a chance to take a look at my previous message?

Hi @jenhacool - I’ve connected with the product team in this space and I can confirm that currently, Shopify does not support native refunds to store credit for orders paid with other methods like credit cards.

Hi @Liam-Shopify

Thanks a lot for your response.

But how did that app manage to do it?

I don’t want to mention the app name here but I can dm you the name, the test order if that help.

There’s a way to do it, but will prevent the app from being approved during review process.

They probably got the app approved and then implemented this feature (which is against the TOS).

I know this because we submitted our app when store credit apps were being promoted and got reject by this reason, I just don’t want to tell how to do it to prevent people doing it.

Hi @Liam-Shopify @KyleG-Shopify,

So what do you think about that?