Yes, you can use original_transaction_id . This property is retained for all updates.
If the user cancels his subscription and buys a new subscription, then original_transaction_id will change.
However, if a user renews or downgrades their subscription, original_transaction_id will not change.
This is supported on modern versions of iOS, including iOS 10.
Another way to do this is to save an array of transaction_id values โโand associate them with user accounts. Depending on your needs, this may work best for you.
Vladimir Prigarin
source share