Contents

JWSTransactionDecodedPayload

A decoded payload that contains transaction information.

Declaration

object JWSTransactionDecodedPayload

Properties

NameTypeDescription
appAccountTokenappAccountToken

A UUID you create at the time of purchase that associates the transaction with a customer on your own service. If your app doesn’t provide an appAccountToken, this field is omitted. For more information, see appAccountToken(_:).

appTransactionIdappTransactionId

The unique identifier of the app download transaction.

bundleIdbundleId

The bundle identifier of the app.

billingPlanTypebillingPlanType

currencycurrency

The three-letter ISO 4217 currency code associated with the price parameter. This value is present only if price is present.

commitmentInfoTransactionCommitmentInfo

environmentenvironment

The server environment, either sandbox or production.

expiresDateexpiresDate

The UNIX time, in milliseconds, that the subscription expires or renews.

inAppOwnershipTypeinAppOwnershipType

A string that describes whether the transaction was purchased by the customer, or is available to them through Family Sharing.

isUpgradedisUpgraded

A Boolean value that indicates whether the customer upgraded to another subscription.

offerDiscountTypeofferDiscountType

The payment mode a subscription offer uses such as Free Trial, or the payment mode that indicates a discount on a one-time purchase.

offerIdentifierofferIdentifier

The identifier that contains the offer code or the promotional offer identifier.

offerPeriodofferPeriod

The duration of the offer applied to the transaction.

offerTypeofferType

A value that represents the type of offer on an In-App Purchase.

originalPurchaseDateoriginalPurchaseDate

The UNIX time, in milliseconds, that represents the purchase date of the original transaction identifier.

originalTransactionIdoriginalTransactionId

The transaction identifier of the original purchase.

previousOriginalTransactionIdpreviousOriginalTransactionId

The subscription’s original transaction identifier, before you migrated the subscription.

priceprice

An integer value that represents the price multiplied by 1000 of the in-app purchase or subscription offer you configured in App Store Connect and that the system records at the time of the purchase. For more information, see price. The currency parameter indicates the currency of this price.

productIdproductId

The product identifier of the in-app purchase.

purchaseDatepurchaseDate

The UNIX time, in milliseconds, that the App Store charged the user’s account for a purchase, restored product, subscription, or subscription renewal after a lapse.

quantityquantity

The number of consumable products the user purchased.

revocationDaterevocationDate

The UNIX time, in milliseconds, that the App Store refunded the transaction or revoked it from Family Sharing.

revocationPercentagerevocationPercentage

The percentage, in milliunits, of the transaction that the App Store has refunded or revoked.

revocationReasonrevocationReason

The reason that the App Store refunded the transaction or revoked it from Family Sharing.

revocationTyperevocationType

The type of the refund or revocation that applies to the transaction.

signedDatesignedDate

The UNIX time, in milliseconds, that the App Store signed the JSON Web Signature (JWS) data.

storefrontstorefront

The three-letter code that represents the country or region associated with the App Store storefront for the purchase.

storefrontIdstorefrontId

An Apple-defined value that uniquely identifies the App Store storefront associated with the purchase.

subscriptionGroupIdentifiersubscriptionGroupIdentifier

The identifier of the subscription group to which the subscription belongs.

transactionIdtransactionId

The unique identifier of the transaction.

transactionReasontransactionReason

The reason for the purchase transaction, which indicates whether it’s a customer’s purchase or a renewal for an auto-renewable subscription that the system initiates.

typetype

The type of the in-app purchase.

webOrderLineItemIdwebOrderLineItemId

The unique identifier of subscription purchase events across devices, including subscription renewals.

advancedCommerceInfoadvancedCommerceTransactionInfo

Transaction information that is present only for Advanced Commerce API SKUs.

Mentioned in

Discussion

Topics

Data types

See Also

JWS header and payload data types