Skip to main content
object

Requires read_orders access scope or read_marketplace_orders access scope.

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.

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

•Boolean!non-null

Whether the transaction can be manually captured.

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

Deprecated fields

•Money!non-nullDeprecated
•MoneyV2!non-nullDeprecated
•MoneyDeprecated
•PaymentMethodsDeprecated
•MoneyDeprecated
•MoneyV2Deprecated

Was this section helpful?

•mutation

Captures payment for an authorized transaction on an order. Use this mutation to claim the money that was previously reserved by an authorization transaction.

The orderCapture mutation can be used in the following scenarios:

  • To capture the full amount of an authorized transaction
  • To capture a partial payment by specifying an amount less than the total order amount
  • To perform multiple captures on the same order, as long as the order transaction is multi-capturable

Note

Multi-capture functionality is only available to stores on a Shopify Plus plan. For multi-currency orders, the currency field is required and should match the presentment currency from the order.


After capturing a payment, you can:

  • View the transaction details including status, amount, and processing information.
  • Track the captured amount in both shop and presentment currencies.
  • Monitor the transaction's settlement status.

Learn more about order transactions.

Arguments

•OrderCaptureInput!required

The input for the mutation.


Fields

•OrderTransaction

The created capture transaction.

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Trigger the voiding of an uncaptured authorization transaction.

Arguments

•ID!required

An uncaptured authorization transaction.


Fields

•OrderTransaction

The created void transaction.

•[TransactionVoidUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

•interface

Was this section helpful?
OSZAR »