Skip to main content
Question

Use RestAPI to access the data in Sandbox

  • February 25, 2022
  • 1 reply
  • 299 views

Forum|alt.badge.img+1

When we use RevenueCat REST API, it seems to be only accessing non-sandbox mode data . But we want to use sandbox mode for testing. Any tips here?

This post has been closed for comments

1 reply

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

The subscription object has an is_sandbox property that you can check to see if the purchase is sandbox or production. Are you checking this property? RevenueCat will return both production and sandbox purchases in the API response so you should loop through all of the subscriptions in the response and check that property.


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