Skip to main content
Answer

Cannot get Subscription Status from API v2

  • March 29, 2024
  • 2 replies
  • 198 views

Forum|alt.badge.img+4

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. 

This post has been closed for comments

2 replies

SimonDuerr
Forum|alt.badge.img+6
  • Member
  • March 29, 2024

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


antonio
RevenueCat Staff
Forum|alt.badge.img+4
  • RevenueCat Staff
  • 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.