Solved

API not returning back the upgraded package in trial period

  • 21 January 2024
  • 2 replies
  • 25 views

Badge +5

 

I’m using the following API to get the user’s state: `https://api.revenuecat.com/v1/subscribers/:id`

Unfortunately, the API is not returning back the upgraded package while the user is in TRIAL period.

Here is my typical user flow:

  1. User subscribe for 3 days trial period (this package is extremely limited, that way we could push the users to upgrade their subscription)
  2. User upgrade the subscription on trial period. (At this point I can not see the upgraded package neither in the “entitlements” nor in the “subscriptions”)

When a customer upgrades products during an introductory period (including a free trial), Apple does not cancel the introductory offer but instead keeps the introductory offer active in addition to the upgraded product. So in these cases you can expect two products in the same Subscription Group to be active simultaneously.

According to this documentation: https://www.revenuecat.com/docs/managing-subscriptions I assume that the API should return this information

 

icon

Best answer by Michael Fogel 24 January 2024, 18:55

View original

2 replies

Userlevel 4
Badge +6

Hey @Jacint ,

 

Are these products in the same subscription group on Apple? If they are in the same subscription group, can you please confirm that they are in different service levels causing this to be an upgrade? If it is an upgrade, and they are in different service levels than our customerInfo should return both entitlements from this when in a trial period allowing you to give access to the more features when a customer has that new upgraded entitlement. 

 

We have more information on subscription groups which can be found here: https://www.revenuecat.com/blog/engineering/ios-subscription-groups-explained/

 

Let me know if that helps! 

Badge +5

Hey @Michael Fogel ,

Thank you for your helping! I’ve missed the “Order” in the App Store Connect page! Tbh, it’s tricky to create two separate order with drag&drop feature, but now I will be more aware of this!

Once again, thank you, it’s working🫶🏻

Reply