Hi all, looking to use the Revenue Cat API to dynamically set the price of a subscription within my app - looking at the API docs I’m struggling to find a way to make a GET request with either a UserId or SubscriptionId to get the price of a subscription. Is there a way to do this currently, and if so - how?
Hi
Unfortunately, price information is not currently available from our REST API, either to set it or to get it. This is something that our team is working on for the v2 API, but unfortunately I don’t have an ETA for it to be covered.
In the meantime, I’d recommend using webhooks to get the price a user paid for their subscription.
hey
LMK thanks!
I’m looking for this too. My use case is that I want to show the user the price that they paid so they can can compare with the current price. The goal is to reduce churn.
Any update on this? I need this too, and is there any option to get the promo code used by the user while subscribing?
I’m also curious about this. I couldn’t locate any API endpoint in V2 that provides the price of a subscription. It would be nice if we would easily fetch the price.
Hi
If you have the purchase id, you can get the price through this endpoint.
Let me know if this works!
thank you for your response
Hi
with a customer ID who just started a subscription. I’m testing in the sandbox environment, but this endpoint returned an empty array for items.
Does the purchases endpoints return the price of subscriptions, too?
Hi
That endpoint should return an array that contains `revenue_in_usd` - which is an object that contains currency, gross revenue, proceeds, commission and tax. See here the documentation.
You should be able to get the price of the subscription. Have you tried with a production user? I’m going to check if there’s a limitation in sandbox but I know that testing environment can have issues with pricing and currencies.
Best,
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.