Question

Use RestAPI to access the data in Sandbox

  • 25 February 2022
  • 1 reply
  • 126 views

Badge +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?


1 reply

Userlevel 5
Badge +9

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.

Reply