Can I retrieve credit transaction source through admin API?

Hi folks,

if I view a customer’s credit transaction history through the admin UI then I can see a Source value for each transaction.

Is there a way to obtain this information using an admin API request? I can’t find anything in the API specification that seems to match up with this field.

Thanks,

Paul

Hi @P_Mac

This source value appears to be the staff name. I checked the API documentation and also asked Shopify Assistant, and the response I got was that this value is not currently available.

1 Like

Hey @P_Mac, good question. Unfortunately that “Source” value you see in the admin UI isn’t currently exposed through the Admin API.

The closest fields on the StoreCreditAccountTransaction interface are event and origin. The event field is a StoreCreditSystemEvent enum that maps to the “Event” column (values like ADJUSTMENT, ORDER_REFUND, etc.), not “Source”. The origin field is a union that only resolves to OrderTransaction for order-related transactions, so for manual adjustments made by staff it’ll just be null. Neither gives you the actor/source info.

I’ve gone ahead and submitted this as a feature request internally. The more a specific feature is requested by our merchants and partners, the more likely it is to be considered for future development by our product teams so hopefully this can be implemented in the future - thanks for flagging it!

1 Like

Thanks for the feedback @kyle_liu and @Donal-Shopify. Much appreciated.

It’s a pity this value isn’t accessible through the admin API. Hopefully this is a feature that can be added in the near future.

For additional context, we’re currently trying to synchronize store credit balances between Shopify and an external system. To help with this, we’d like a way to differentiate between credit transactions that were initiated within Shopify and those that originated from the external system by analyzing the data obtained through the admin API. Can you think of an alternative way to do this using the data that’s currently available?