Skip to main content
Question

Customer Id is different to app_user_id in frontend

  • December 27, 2022
  • 1 reply
  • 101 views

Forum|alt.badge.img+4

I use Webhooks to register purchases and unlock premium features for the account that purchased the product. 

I have made a purchase with one Account, lets call it User A. After the subscription expired, I logged in with a different Account, lets call it User B. Of course I called Purchases.logIn(UserB.id) in my app. I then purchased the subscription again and confirmed that it uses User B’s id as the app_user_id in my app. 

However in my Dashboard and my Webhook it still shows that User A made the purchase.

This happend in a Sandbox environment and I used the same Apple Id for both purchases. My RC Project uses the Restore behavior “Block restores”.

Can someone explain this behavior to me? I had expected that the Customer Id in my Dashboard is always the app_user_id that makes the purchase in the frontend. Is that not the case? I’m really confused and couldn’t find anything about this behavior in the docs.

 

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • December 29, 2022

Hello,

User A still owns the subscription. Since you didn’t change Apple IDs, the subscription that user B purchased is a continuation of the subscription that user A has, so RevenueCat gives the subscription to user A. This is expected. Try logging into a different Apple ID and make a purchase - that will register as a new subscription that can then be associated with user B.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings