OrderTransaction

Required access

read_orders access scope

A transaction represents an exchange of money as part of an order.

Show definition
# A transaction represents an exchange of money as part of an order.
type OrderTransaction implements Node {
  # Globally unique identifier.
  id: ID!

  # The masked account number associated with the payment method.
  accountNumber: String

  # The amount of money.
  amount: Money!

  # The human-readable payment gateway name used to process the transaction.
  formattedGateway: String

  # The payment gateway used to process the transaction.
  gateway: String

  # The kind of transaction.
  kind: OrderTransactionKind!

  # Whether the transaction can be manually captured.
  manuallyCapturable: Boolean

  # Specifies the available amount to refund on the gateway. Only available within SuggestedRefund.
  maximumRefundable: Money

  # The associated order.
  order: Order

  # The associated parent transaction, for example the authorization of a capture.
  parentTransaction: OrderTransaction

  # Specifies the payment icon to display for this transaction.
  paymentIcon(
    # Image width in pixels between 1 and 2048. This argument is deprecated: Use `maxWidth` on `Image.transformedSrc` instead.
    maxWidth: Int

    # Image height in pixels between 1 and 2048. This argument is deprecated: Use
    # `maxHeight` on `Image.transformedSrc` instead.
    maxHeight: Int

    # Crops the image according to the specified region. This argument is
    # deprecated: Use `crop` on `Image.transformedSrc` instead.
    crop: CropRegion

    # Image size multiplier for high-resolution retina displays. Must be between 1
    # and 3. This argument is deprecated: Use `scale` on `Image.transformedSrc` instead.
    scale: Int = 1
  ): Image

  # Specifies the credit card company used to pay for this transaction.
  paymentMethod: PaymentMethods

  # Specifies the available amount to capture on the gateway. Only available when
  # an amount is capturable or manually mark as paid.
  totalUnsettled: Money
}

Implements

Fields

accountNumber   (String)

The masked account number associated with the payment method.

amount   (Money!)

The amount of money.

formattedGateway   (String)

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

gateway   (String)

The payment gateway used to process the transaction.

id   (ID!)

Globally unique identifier.

kind   (OrderTransactionKind!)

The kind of transaction.

manuallyCapturable   (Boolean)

Whether the transaction can be manually captured.

maximumRefundable   (Money)

Specifies the available amount to refund on the gateway. Only available within SuggestedRefund.

order   (Order)

The associated order.

parentTransaction   (OrderTransaction)

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

paymentIcon   (Image)

Specifies the payment icon to display for this transaction.

Argument Type Default Description
crop CropRegion

Crops the image according to the specified region. This argument is deprecated: Use crop on Image.transformedSrc instead.

maxHeight Int

Image height in pixels between 1 and 2048. This argument is deprecated: Use maxHeight on Image.transformedSrc instead.

maxWidth Int

Image width in pixels between 1 and 2048. This argument is deprecated: Use maxWidth on Image.transformedSrc instead.

scale Int 1

Image size multiplier for high-resolution retina displays. Must be between 1 and 3. This argument is deprecated: Use scale on Image.transformedSrc instead.

totalUnsettled   (Money)

Specifies the available amount to capture on the gateway. Only available when an amount is capturable or manually mark as paid.

Deprecated fields

Show/Hide

paymentMethod   (PaymentMethods) deprecated

Specifies the credit card company used to pay for this transaction.

Deprecation warning

Use paymentIcon instead