Skip to main content

Transaction

The fields shared by every payment transaction, whatever the gateway that recorded it. Returned by paymentTransaction and paymentTransactions; the concrete type tells the source (for example PaymentExternalTransaction for the transactions recorded through the API).

interface Transaction {
amount: Float
createdAt: ISO8601DateTime
currency: String
disputes: [Dispute!]
exchangeRate: Float
failedAt: ISO8601DateTime
fees: [PaymentTransactionFee!]
id: ID
number: String
order: Order
referenceCode: String
refundTransactions: [Transaction!]
repaymentRequest: RepaymentRequest
saleTransaction: Transaction
startedAt: ISO8601DateTime
status: PaymentTransactionStatus
transactedAt: ISO8601DateTime
updatedAt: ISO8601DateTime
}

Fields​

Transaction.amount ● Float scalar​

The transaction amount. Negative amounts are refund records.

Transaction.createdAt ● ISO8601DateTime scalar​

When the record was created.

Transaction.currency ● String scalar​

The transaction currency, as an ISO 4217 code.

Transaction.disputes ● [Dispute!] list interface​

The disputes linked to the transaction (for example chargebacks opened by the payment provider).

Transaction.exchangeRate ● Float scalar​

The exchange rate reported by the payment provider, when available.

Transaction.failedAt ● ISO8601DateTime scalar​

When the transaction failed.

Transaction.fees ● [PaymentTransactionFee!] list object​

The provider fee rows recorded for the transaction.

Transaction.id ● ID scalar​

The unique identifier of the record.

Transaction.number ● String scalar​

The transaction number/ID assigned by the payment provider.

Transaction.order ● Order object​

The order the transaction is linked to, when the transaction has been matched through its referenceCode. Null otherwise.

Transaction.referenceCode ● String scalar​

References the order or the repayment request (return) the transaction belongs to.

Transaction.refundTransactions ● [Transaction!] list interface​

The refund transactions of this transaction: child transactions linked to the original payment.

Transaction.repaymentRequest ● RepaymentRequest object​

The repayment request (return) the transaction is linked to, when the transaction has been matched through its referenceCode. Null otherwise.

Transaction.saleTransaction ● Transaction interface​

For a refund transaction, the original sale transaction being refunded.

Transaction.startedAt ● ISO8601DateTime scalar​

When the transaction was started.

Transaction.status ● PaymentTransactionStatus enum​

The transaction status.

Transaction.transactedAt ● ISO8601DateTime scalar​

When the transaction was completed.

Transaction.updatedAt ● ISO8601DateTime scalar​

When the record was last updated.

Returned By​

paymentTransaction query

Member Of​

AdyenDispute object ● AdyenTransaction object ● Dispute interface ● HeylightTransaction object ● NexiTransaction object ● Order object ● PaymentBasicTransaction object ● PaymentExternalDispute object ● PaymentExternalTransaction object ● PaypalTransaction object ● RepaymentRequest object ● ScalaPayTransaction object ● ShopifyDispute object ● ShopifyTransaction object ● StripeTransaction object ● Transaction interface ● TransactionConnection object ● TransactionEdge object

Implemented By​

AdyenTransaction object ● HeylightTransaction object ● NexiTransaction object ● PaymentBasicTransaction object ● PaymentExternalTransaction object ● PaypalTransaction object ● ScalaPayTransaction object ● ShopifyTransaction object ● StripeTransaction object