Skip to main content
Solved

Empty "items" Array in Response from RevenueCat Subscriptions Endpoint


Forum|alt.badge.img+7

Certainly, I can help you formulate your question in English. Based on your concerns, here's a way you could phrase your question for a forum or support request:

Subject: Empty "items" Array in Response from RevenueCat Subscriptions Endpoint

Hello,

I've been working with the RevenueCat API to retrieve a list of subscriptions associated with a specific customer using the /projects/{project_id}/customers/{customer_id}/subscriptions endpoint. According to the documentation, this endpoint should return all subscriptions associated with the customer, currently including only those made via RevenueCat Billing on the web.

However, when I make a request to https://api.revenuecat.com/v2/projects/myProjectId/customers/myCustomerId/subscriptions, the response successfully returns a 200 status code, but the "items" array in the response body is empty. This occurs despite the fact that I expect this particular customer to have active subscriptions.

Here is an example of the response I'm receiving:

 

jsonCopy code

{ "object": "list", "items": [], "next_page": null, "url": "https://api.revenuecat.com/v2/projects/myProjectId/customers/myCustomerId/subscriptions" }

I've verified the following:

  • The customer_id and project_id are correct and match those in the RevenueCat dashboard.
  • I'm using the correct API key with permissions for customer_information:subscriptions:read.
  • The customer has active subscriptions made through the web using RevenueCat Billing.

Could there be a reason why the items array is returning empty? Is it possible that subscriptions created through platforms other than the web are not included, or could there be a delay in syncing data to the API?

 

for your information, I did test with ‘revenutcat payment’ 

Any insights or suggestions on what might be causing this issue and how to resolve it would be greatly appreciated.

Thank you.

Best answer by antonio

Hi @Jonghwan

Could there be a reason why the items array is returning empty? Is it possible that subscriptions created through platforms other than the web are not included, or could there be a delay in syncing data to the API?

 

That’s correct, this endpoint would only return RC Billing subscriptions, but no any other subscriptions from that store. If you’re interested in seeing subscriptions from other stores, we have beta support for Apple, Google and Stripe, you can sign up for the Beta 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

3 replies

Forum|alt.badge.img+7
  • Author
  • Active Member
  • 14 replies
  • April 8, 2024

When i did v1, it works. :) but I guess v2 should work also.


antonio
RevenueCat Staff
Forum|alt.badge.img+4
  • RevenueCat Staff
  • 37 replies
  • Answer
  • April 8, 2024

Hi @Jonghwan

Could there be a reason why the items array is returning empty? Is it possible that subscriptions created through platforms other than the web are not included, or could there be a delay in syncing data to the API?

 

That’s correct, this endpoint would only return RC Billing subscriptions, but no any other subscriptions from that store. If you’re interested in seeing subscriptions from other stores, we have beta support for Apple, Google and Stripe, you can sign up for the Beta here

 

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


Forum|alt.badge.img+7
  • Author
  • Active Member
  • 14 replies
  • April 9, 2024

@antonio 

thank you so much for replying! could you please. answer my another question too?

 

 

thank you!


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