---
title: StoreCreditAccountTransactionOrigin - GraphQL Admin
description: The origin of a store credit account transaction.
api_version: unstable
api_name: admin
source_url:
html: >-
https://shopify.dev/docs/api/admin-graphql/unstable/unions/StoreCreditAccountTransactionOrigin
md: >-
https://shopify.dev/docs/api/admin-graphql/unstable/unions/StoreCreditAccountTransactionOrigin.md
---
# StoreCreditAccountTransactionOrigin
union
The origin of a store credit account transaction.
## Possible types
* [OrderTransaction](https://shopify.dev/docs/api/admin-graphql/unstable/objects/OrderTransaction)
OBJECT
The `OrderTransaction` object represents a payment transaction that's associated with an order. An order transaction is a specific action or event that happens within the context of an order, such as a customer paying for a purchase or receiving a refund, or other payment-related activity.
Use the `OrderTransaction` object to capture the complete lifecycle of a payment, from initial authorization to final settlement, including refunds and currency exchanges. Common use cases for using the `OrderTransaction` object include:
* Processing new payments for orders
* Managing payment authorizations and captures
* Processing refunds for returned items
* Tracking payment status and errors
* Managing multi-currency transactions
* Handling payment gateway integrations
Each `OrderTransaction` object has a [`kind`](https://shopify.dev/docs/api/admin-graphql/latest/enums/OrderTransactionKind) that defines the type of transaction and a [`status`](https://shopify.dev/docs/api/admin-graphql/latest/enums/OrderTransactionStatus) that indicates the current state of the transaction. The object stores detailed information about payment methods, gateway processing, and settlement details.
Learn more about [payment processing](https://help.shopify.com/manual/payments) and [payment gateway integrations](https://www.shopify.com/ca/payment-gateways).
* accountNumber
[String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The masked account number associated with the payment method.
* amountRoundingSet
[MoneyBag](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyBag)
The rounding adjustment applied on the cash amount in shop and presentment currencies.
* amountSet
[MoneyBag!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyBag)
non-null
The amount and currency of the transaction in shop and presentment currencies.
* authorizationExpiresAt
[DateTime](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/DateTime)
The time when the authorization expires. This field is available only to stores on a Shopify Plus plan.
* createdAt
[DateTime!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/DateTime)
non-null
Date and time when the transaction was created.
* currencyExchangeAdjustment
[CurrencyExchangeAdjustment](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CurrencyExchangeAdjustment)
An adjustment on the transaction showing the amount lost or gained due to fluctuations in the currency exchange rate.
* device
[PointOfSaleDevice](https://shopify.dev/docs/api/admin-graphql/unstable/objects/PointOfSaleDevice)
The Shopify Point of Sale device used to process the transaction.
* errorCode
[OrderTransactionErrorCode](https://shopify.dev/docs/api/admin-graphql/unstable/enums/OrderTransactionErrorCode)
A standardized error code, independent of the payment provider.
* fees
[\[TransactionFee!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/TransactionFee)
non-null
The transaction fees charged on the order transaction. Only present for Shopify Payments transactions.
* formattedGateway
[String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The human-readable payment gateway name used to process the transaction.
* gateway
[String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The payment gateway used to process the transaction.
* id
[ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)
non-null
A globally-unique ID.
* kind
[OrderTransactionKind!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/OrderTransactionKind)
non-null
The kind of transaction.
* location
[Location](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Location)
The physical location where the transaction was processed.
* manuallyCapturable
[Boolean!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean)
non-null
Whether the transaction can be manually captured.
* manualPaymentGateway
[Boolean!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean)
non-null
Whether the transaction is processed by manual payment gateway.
* maximumRefundableV2
[MoneyV2](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyV2)
Specifies the available amount with currency to refund on the gateway. This value is only available for transactions of type `SuggestedRefund`.
* multiCapturable
[Boolean!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean)
non-null
Whether the transaction can be captured multiple times.
* order
[Order](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Order)
The associated order.
* parentTransaction
[OrderTransaction](https://shopify.dev/docs/api/admin-graphql/unstable/objects/OrderTransaction)
The associated parent transaction, for example the authorization of a capture.
* paymentDetails
[PaymentDetails](https://shopify.dev/docs/api/admin-graphql/unstable/unions/PaymentDetails)
The payment details for the transaction.
* paymentIcon
[Image](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Image)
The payment icon to display for the transaction.
* maxWidth
[Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int)
Deprecated
### Arguments
* maxHeight
[Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int)
Deprecated
* crop
[CropRegion](https://shopify.dev/docs/api/admin-graphql/unstable/enums/CropRegion)
Deprecated
* scale
[Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int)
DeprecatedDefault:1
***
* paymentId
[String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The payment ID associated with the transaction.
* processedAt
[DateTime](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/DateTime)
Date and time when the transaction was processed.
* receiptJson
[JSON](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/JSON)
The transaction receipt that the payment gateway attaches to the transaction.
***
**Note:** \\ This field is \gateway-specific\ and \not a stable contract\. Its structure and contents can vary by payment gateway and may change without notice. Apps \shouldn\'t parse or rely on this field for business logic\; prefer typed fields on \\Order\Transaction\\ and related objects.
***
* settlementCurrency
[CurrencyCode](https://shopify.dev/docs/api/admin-graphql/unstable/enums/CurrencyCode)
The settlement currency.
* settlementCurrencyRate
[Decimal](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Decimal)
The rate used when converting the transaction amount to settlement currency.
* shopifyPaymentsSet
[ShopifyPaymentsTransactionSet](https://shopify.dev/docs/api/admin-graphql/unstable/objects/ShopifyPaymentsTransactionSet)
Contains all Shopify Payments information related to an order transaction. This field is available only to stores on a Shopify Plus plan.
* status
[OrderTransactionStatus!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/OrderTransactionStatus)
non-null
The status of this transaction.
* test
[Boolean!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean)
non-null
Whether the transaction is a test transaction.
* totalUnsettledSet
[MoneyBag](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyBag)
Specifies the available amount with currency to capture on the gateway in shop and presentment currencies. Only available when an amount is capturable or manually mark as paid.
* user
[StaffMember](https://shopify.dev/docs/api/admin-graphql/unstable/objects/StaffMember)
Staff member who was logged into the Shopify POS device when the transaction was processed.
* amount
[Money!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Money)
non-nullDeprecated
* amountV2
[MoneyV2!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyV2)
non-nullDeprecated
* authorizationCode
[String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
Deprecated
* maximumRefundable
[Money](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Money)
Deprecated
* paymentMethod
[PaymentMethods](https://shopify.dev/docs/api/admin-graphql/unstable/enums/PaymentMethods)
Deprecated
* totalUnsettled
[Money](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Money)
Deprecated
* totalUnsettledV2
[MoneyV2](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyV2)
Deprecated
***
## Fields with this union
* [StoreCreditAccountCreditTransaction.origin](https://shopify.dev/docs/api/admin-graphql/unstable/objects/StoreCreditAccountCreditTransaction#field-StoreCreditAccountCreditTransaction.fields.origin)
OBJECT
A credit transaction which increases the store credit account balance.
* [StoreCreditAccountDebitRevertTransaction.origin](https://shopify.dev/docs/api/admin-graphql/unstable/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.
* [StoreCreditAccountDebitTransaction.origin](https://shopify.dev/docs/api/admin-graphql/unstable/objects/StoreCreditAccountDebitTransaction#field-StoreCreditAccountDebitTransaction.fields.origin)
OBJECT
A debit transaction which decreases the store credit account balance.
* [StoreCreditAccountExpirationTransaction.origin](https://shopify.dev/docs/api/admin-graphql/unstable/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.
* [StoreCreditAccountTransaction.origin](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/StoreCreditAccountTransaction#fields-origin)
INTERFACE
Interface for a store credit account transaction.
***
```graphql
union StoreCreditAccountTransactionOrigin = OrderTransaction
```