Shopify has introduced two new fields to store credit transactions in the Customer Account GraphQL API, effective as of April 2025. The event field uses the StoreCreditSystemEvent enum to track what triggered a transaction, including order payments, refunds, cancellations, payment failures, returns, tax adjustments, and manual modifications. The origin field identifies the source of each transaction and can reference back to the originating OrderTransaction when applicable.
These additions give developers significantly better visibility into store credit transaction history and the underlying causes of each transaction. With clearer tracking through the `event` and `origin` fields, you can build more sophisticated customer account features, generate accurate financial reports, and provide customers with transparent transaction histories that explain exactly why their store credit changed.
This enhancement is particularly valuable for merchants managing complex refund workflows, handling multiple payment scenarios, and maintaining audit trails for compliance purposes. Developers can now query more granular transaction data without relying on external systems to piece together the context of each store credit adjustment.
event and origin fields when fetching store credit transactions from the Customer Account APIGetShopifyToken streamlines secure access to Shopify's APIs by simplifying authentication and token management, so you can focus on implementing these new store credit features without worrying about OAuth complexity.