transactionReason
The cause of a purchase transaction, which indicates whether it’s a customer’s purchase or a renewal for an auto-renewable subscription that the system initiates.
Declaration
string transactionReasonPossible Values
PURCHASEThe customer initiated the purchase, which may be for any in-app purchase type: consumable, non-consumable, non-renewing subscription, or auto-renewable subscription.
RENEWALThe App Store server initiated the purchase transaction to renew an auto-renewable subscription.
Mentioned in
Discussion
If a customer upgrades an auto-renewable subscription, the upgrade is effective immediately and the transactionReason is PURCHASE.
If a customer downgrades an auto-renewable subscription, the product change occurs on the subscription renewal date. The resulting transactionReason is RENEWAL.