OBJECT

PaymentTransaction

There are legacy and new data sources that contain similar payment transaction data. This type aims to merge several data sources into one to expose a consistent payment history for each Twitch user.

link GraphQL Schema definition

1type PaymentTransaction {
2
3# Currency for the price.
4currency: String
5
6# Price in smallest subunit for the currency, such as 499.
7grossAmount: Int
8
9# The divisor used to derive the gross amount.
10grossAmountDivisor: Int
11
12# Payment ID such as PPT321281 or POPT3278183712.
13id: ID!
14
15# Whether this payment transaction was made to purchase a gift for someone else or
16# not.
17isGift: Boolean!
18
19# The payment method that was used to generate this payment transaction.
20paymentMethod: PaymentMethod!
21
22# Payment transaction purchased product details.
23product: PaymentTransactionProduct!
24
25# PurchaseOrderID for the payment.
26purchaseOrderID: ID
27
28# Time the purchase payment was recognized at.
29purchasedAt: Time!
30
31# Quantity of the purchase.
32quantity: Int!
33
34# The recipient Twitch user of the product purchased by the payment transaction,
35# if applicable.
36recipient: User
37
38}