Skip to main content
Solved

[REST API] How can I get my current offering's packages data?


Forum|alt.badge.img+4

Hello guys, I’m currently building a landing page and in my backend I want to render a page that lists my current offering’s packages prices.

 

But I can’t seem to get that data or find an endpoint that returns it.

What am I missing?

 

Thanks in advance!

Best answer by sharif

I love your browser theme!

So RevenueCat doesn’t store any prices for your products. That information is fetched from Apple/Google/Stripe at the time of purchase. In the case of Apple and Google, it’s fetched from the on-device APIs of each platform and sent along with every purchase so that we know how much the user paid for their purchase.

This means that you’ll have to get the pricing data from outside of RevenueCat. Fortunately for you, as the developer you know all of you product’s prices so you can simply store a map of products to prices somewhere on your backend. Then use RevenueCat’s API to get the current offering’s packages and use the platform_product_identifier to look up the price on your backend.

View original
Did this post help you find an answer to your question?

2 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • Answer
  • August 3, 2021

I love your browser theme!

So RevenueCat doesn’t store any prices for your products. That information is fetched from Apple/Google/Stripe at the time of purchase. In the case of Apple and Google, it’s fetched from the on-device APIs of each platform and sent along with every purchase so that we know how much the user paid for their purchase.

This means that you’ll have to get the pricing data from outside of RevenueCat. Fortunately for you, as the developer you know all of you product’s prices so you can simply store a map of products to prices somewhere on your backend. Then use RevenueCat’s API to get the current offering’s packages and use the platform_product_identifier to look up the price on your backend.


Forum|alt.badge.img+4
  • Author
  • New Member
  • 2 replies
  • August 5, 2021

I see, I see.


Thank you sharif!

 


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