You can pass appAccountToken in the purchase options (1). That should be included when the server receives the transaction (2).
https://developer.apple.com/documentation/storekit/product/3791971-purchase
https://developer.apple.com/documentation/appstoreservernotifications/appaccounttoken
Topic:
App & System Services
SubTopic:
StoreKit
Tags: