Skip to main content
Anchor to StoreCreditAccountTransactionOrigin

StoreCreditAccountTransactionOrigin

union

The origin of a store credit account transaction.

•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 that defines the type of transaction and a status 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 and payment gateway integrations.

•String

The masked account number associated with the payment method.

•MoneyBag

The rounding adjustment applied on the cash amount in shop and presentment currencies.

•MoneyBag!
non-null

The amount and currency of the transaction in shop and presentment currencies.

•String

Authorization code associated with the transaction.

Anchor to authorizationExpiresAtauthorizationExpiresAt
•DateTime

The time when the authorization expires. This field is available only to stores on a Shopify Plus plan.

•DateTime!
non-null

Date and time when the transaction was created.

Anchor to currencyExchangeAdjustmentcurrencyExchangeAdjustment
•CurrencyExchangeAdjustment

An adjustment on the transaction showing the amount lost or gained due to fluctuations in the currency exchange rate.

•PointOfSaleDevice

The Shopify Point of Sale device used to process the transaction.

•OrderTransactionErrorCode

A standardized error code, independent of the payment provider.

•[TransactionFee!]!
non-null

The transaction fees charged on the order transaction. Only present for Shopify Payments transactions.

•String

The human-readable payment gateway name used to process the transaction.

•String

The payment gateway used to process the transaction.

•ID!
non-null

A globally-unique ID.

•OrderTransactionKind!
non-null

The kind of transaction.

•Location

The physical location where the transaction was processed.

•Boolean!
non-null

Whether the transaction can be manually captured.

Anchor to manualPaymentGatewaymanualPaymentGateway
•Boolean!
non-null

Whether the transaction is processed by manual payment gateway.

•MoneyV2

Specifies the available amount with currency to refund on the gateway. This value is only available for transactions of type SuggestedRefund.

•Boolean!
non-null

Whether the transaction can be captured multiple times.

•Order

The associated order.

•OrderTransaction

The associated parent transaction, for example the authorization of a capture.

•PaymentDetails

The payment details for the transaction.

•Image

The payment icon to display for the transaction.

•String

The payment ID associated with the transaction.

•DateTime

Date and time when the transaction was processed.

•JSON

The transaction receipt that the payment gateway attaches to the transaction. The value of this field depends on which payment gateway processed the transaction.

•CurrencyCode

The settlement currency.

Anchor to settlementCurrencyRatesettlementCurrencyRate
•Decimal

The rate used when converting the transaction amount to settlement currency.

•ShopifyPaymentsTransactionSet

Contains all Shopify Payments information related to an order transaction. This field is available only to stores on a Shopify Plus plan.

•OrderTransactionStatus!
non-null

The status of this transaction.

•Boolean!
non-null

Whether the transaction is a test transaction.

•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.

•StaffMember

Staff member who was logged into the Shopify POS device when the transaction was processed.

•Money!
non-nullDeprecated
•MoneyV2!
non-nullDeprecated
•Money
Deprecated
•PaymentMethods
Deprecated
•Money
Deprecated
•MoneyV2
Deprecated

Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

A credit transaction which increases the store credit account balance.

•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 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.

•OBJECT

A debit transaction which decreases the store credit account balance.

•OBJECT

An expiration transaction which decreases the store credit account balance. Expiration transactions are created automatically when a store credit account credit transaction expires.

The amount subtracted from the balance is equal to the remaining amount of the credit transaction.

•INTERFACE

Interface for a store credit account transaction.


Was this section helpful?