Skip to main content
Solved

Cannot get Subscription Status from API v2


Forum|alt.badge.img+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!

Best answer by antonio

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.  

 

UPDATE: API V2 Subscriptions and Purchases endpoints are no longer in a private beta (since September 2024), and it supports all stores. 

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+5
  • Member
  • 7 replies
  • March 29, 2024

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


antonio
RevenueCat Staff
Forum|alt.badge.img+4
  • RevenueCat Staff
  • 30 replies
  • Answer
  • March 29, 2024

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.  

 

UPDATE: API V2 Subscriptions and Purchases endpoints are no longer in a private beta (since September 2024), and it supports all stores. 


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