Solved

Cannot get Subscription Status from API v2

  • 29 March 2024
  • 2 replies
  • 32 views

Badge +3

Hello! 
Here’s the api url: https://api.revenuecat.com/v2/projects/${PROJECT_ID}/customers/${CUSTOMER_ID}/subscriptions

Correctly Added header:
 

headers: {

'Authorization': `Bearer ${AUTHORIZATION_TOKEN}`,

'Content-Type': 'application/json'

}
Here’s the response:
{
    "items": [],
    "next_page": null,
    "object": "list",
    "url": "https://api.revenuecat.com/v2/projects/XXXXX/customers/$RCAnonymousID:0ee378058790XXXXXXXXXXXX/subscriptions"
}

Customer has Yearly ACTIVE Subscription in Production. Could you please help how to retrieve Subscription items?

Thanks!

icon

Best answer by antonio 29 March 2024, 11:12

View original

This post has been closed for comments

2 replies

Badge +3

Same here. In my case it’s a sandbox subscription.

Badge +1

This endpoint is publicly available only for RC Billing subscriptions, as stated in the docs. We also offer support for Apple, Google, and Stripe, but it’s currently in Beta. If you’d like to join the beta, you can request access here.