Skip to main content
Solved

Cannot get Subscription Status from API v2

  • 29 March 2024
  • 2 replies
  • 58 views

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!

This post has been closed for comments

2 replies

Userlevel 1
Badge +4

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

Badge +2

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.