Skip to main content

Hi team,

Is there a way for us to get access to the underlying `appAccountToken` of a transaction?

It looks like the SDK always adds it when a StoreKit2 product is purchased, but so far it seems the id is only available in the Purchase method callback, specifically as part of the StoreKit2 transaction itself.

it would save us a significant amount of work if `appAccountToken` was available in `CustomerInfo` (in our specific case, for `NonSubscriptionTransactions` if it makes any difference).

Thanks in advance!

Hi ​@joey_! While this isn’t exposed at the moment, you can get this by setting up RevenueCat to forward Apple notifications to your server. We set the appAccountToken to the identified app user ID when purchasing, but importantly, Apple only accepts this value if the app user ID is a valid UUID (RFC 4122 version 4). Upon catching the server notification, you can forward it to customer.io on your end.

All this said, if you want to share more about your use case, I’d be happy to see if there’s a simpler way for your to achieve your goals. Thanks!