--- title: StoreCreditAccountTransactionOrigin - Customer API description: The origin of a store credit account transaction. api_version: 2025-10 api_name: customer type: union api_type: graphql source_url: html: >- https://shopify.dev/docs/api/customer/latest/unions/StoreCreditAccountTransactionOrigin md: >- https://shopify.dev/docs/api/customer/latest/unions/StoreCreditAccountTransactionOrigin.md --- # Store​Credit​Account​Transaction​Origin union The origin of a store credit account transaction. ## Possible types * [Order​Transaction](https://shopify.dev/docs/api/customer/latest/objects/OrderTransaction) OBJECT A payment transaction within an order context. * created​At [Date​Time!](https://shopify.dev/docs/api/customer/latest/scalars/DateTime) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The date and time when the transaction was created. * gift​Card​Details [Gift​Card​Details](https://shopify.dev/docs/api/customer/latest/objects/GiftCardDetails) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The gift card details for the transaction. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * kind [Order​Transaction​Kind](https://shopify.dev/docs/api/customer/latest/enums/OrderTransactionKind) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The kind of the transaction. * order [Order](https://shopify.dev/docs/api/customer/latest/objects/Order) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The associated order for the transaction. * payment​Details [Payment​Details](https://shopify.dev/docs/api/customer/latest/unions/PaymentDetails) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The payment details for the transaction. * payment​Icon [Payment​Icon​Image](https://shopify.dev/docs/api/customer/latest/objects/PaymentIconImage) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The payment icon to display for the transaction. * processed​At [Date​Time](https://shopify.dev/docs/api/customer/latest/scalars/DateTime) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The date and time when the transaction was processed. * status [Order​Transaction​Status](https://shopify.dev/docs/api/customer/latest/enums/OrderTransactionStatus) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The status of the transaction. * transaction​Amount [Money​Bag!](https://shopify.dev/docs/api/customer/latest/objects/MoneyBag) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The amount and currency of the transaction in shop and presentment currencies. * transaction​Parent​Id [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The ID of the parent transaction. * type [Order​Transaction​Type!](https://shopify.dev/docs/api/customer/latest/enums/OrderTransactionType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The type of the transaction. * type​Details [Transaction​Type​Details](https://shopify.dev/docs/api/customer/latest/objects/TransactionTypeDetails) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The details of the transaction type. *** ## Fields with this union * [Store​Credit​Account​Credit​Transaction.origin](https://shopify.dev/docs/api/customer/latest/objects/StoreCreditAccountCreditTransaction#field-StoreCreditAccountCreditTransaction.fields.origin) OBJECT A credit transaction which increases the store credit account balance. * [Store​Credit​Account​Debit​Revert​Transaction.origin](https://shopify.dev/docs/api/customer/latest/objects/StoreCreditAccountDebitRevertTransaction#field-StoreCreditAccountDebitRevertTransaction.fields.origin) OBJECT A debit revert transaction which increases the store credit account balance. Debit revert transactions are created automatically when a [store credit account debit transaction](https://shopify.dev/api/admin-graphql/latest/objects/StoreCreditAccountDebitTransaction) is reverted. Store credit account debit transactions are reverted when an order is cancelled, refunded or in the event of a payment failure at checkout. The amount added to the balance is equal to the amount reverted on the original credit. * [Store​Credit​Account​Debit​Transaction.origin](https://shopify.dev/docs/api/customer/latest/objects/StoreCreditAccountDebitTransaction#field-StoreCreditAccountDebitTransaction.fields.origin) OBJECT A debit transaction which decreases the store credit account balance. * [Store​Credit​Account​Expiration​Transaction.origin](https://shopify.dev/docs/api/customer/latest/objects/StoreCreditAccountExpirationTransaction#field-StoreCreditAccountExpirationTransaction.fields.origin) OBJECT An expiration transaction which decreases the store credit account balance. Expiration transactions are created automatically when a [store credit account credit transaction](https://shopify.dev/api/admin-graphql/latest/objects/StoreCreditAccountCreditTransaction) expires. The amount subtracted from the balance is equal to the remaining amount of the credit transaction. * [Store​Credit​Account​Transaction.origin](https://shopify.dev/docs/api/customer/latest/interfaces/StoreCreditAccountTransaction#fields-origin) INTERFACE Interface for a store credit account transaction. *** ```graphql union StoreCreditAccountTransactionOrigin = OrderTransaction ```