Feature request: GraphQL get order transaction REST source_name

Hi Shopify dev community (and Shopify devs!)

I have come to the sad realization that there is no GraphQL equivalent to the “source_name” field that exists on the REST “transaction” resource. This is something that we have been using both in our app when calculating prior refunds and how they should affect specific items. But the field has also been useful to our support side when issues with refunds has occurred in the past. The source_name field is important since it displays an id of what source made the refund. Through this we have been able to prove that we were / weren’t behind a specific refund. It has also been useful information to provide to Shopify support in the rare cases were that has been needed.

The guides and the suggestion that has come up is to manually enter something whenever we issue refunds (in the note field, or as a metafield and so on). The problem with this is that it can be replicated and isn’t something reliable we can point to if issues would arise. And it is not backwards compatible since we cannot go through all prior refunds and make sure they follow a specific pattern.

This is my formal request to implement support for “source_name” in GraphQL that exists on the REST transaction reference. Thanks for reading :sunflower:

Hi @olivia_returbo

Can you confirm that this field on the Order GraphQL object is not returning the same data as the REST resource?

09-16-yhacu-wo90p

Hi @Liam-Shopify ! Thank you for your response.
The sourceName I would like is on the transaction resource, since an order can have transactions from different sources than the sourceName of the order.

To give an example of a use case:
When a merchant has contacted us in the past about a specific refund on an order and had questions about it - we were able to see that it wasn’t our app that had issued it based on the sourceName field