Skip to main content
Solved

REST v2 subscriptions empty in sandbox

  • 2 September 2024
  • 2 replies
  • 69 views

Forum|alt.badge.img+2

This might be related to this thread

I used the Stripe test mode to purchase a subscription. It's shown in Sandbox mode on the RC website for that customer. The customer has the attached entitlement granted. 

But when I call the REST API like this:

https://api.revenuecat.com/v2/projects/${revenue_cat_project_id}/customers/${user_id}/subscriptions?environment=sandbox

It returns an empty list.

I don't see the documentation mentioning anything about the subscriptions endpoint still being in beta, so I assume it should work for Stripe subscriptions as well. 

 

The goal I'm trying to achieve is for my Flutter app to determine which store a user's current subscription was purchased with on the web. I need this information to provide them with the correct management URL.

I'm using the SDK for mobile platforms, and a Firebase Function to call the REST API on web, because I believe the Flutter SDK does not work on Flutter web. Correct me if I'm wrong. I'm open for any suggestions on improving this flow. 

Best answer by Haley Pace

Hi, we are currently investigating this endpoint not working in your case. Could you please open a support ticket here and provide the request you are making along with the app user id so we can check our server logs for it?

 

Edit: This has been fixed internally and should now work.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 430 replies
  • Answer
  • September 9, 2024

Hi, we are currently investigating this endpoint not working in your case. Could you please open a support ticket here and provide the request you are making along with the app user id so we can check our server logs for it?

 

Edit: This has been fixed internally and should now work.


Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • September 9, 2024

@Haley Pace will do, thank you for the response!


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