Skip to main content

I'm trying to sync customers in RevenueCat with our database.

Requesting projects/{project_id}/customers does not return active_entitlements as mentioned in the documentation. Fetching customers one by one takes too long and results in hitting rate limits.

I noticed a similar question, but it was closed without a response or comment:

 

So, is this a bug, or is there missing documentation (e.g., missing expand parameters)?
Is there any workaround, such as an endpoint that allows retrieving only customers with active entitlements?

Thanks in advance, 

Sebastian

Hey ​@sebastian-3f8086,

This appears to be a documentation issue - the expandable 'active_entitlements' field is not returned by default in the customers endpoint. Apologies for the confusion here! We are definitely looking into ensuring that these are returned, but I don't have an ETA for you at this time. 
 
I'll make sure to update our documentation to reflect this. 
 
Please let me know if you have any questions at all!


Thanks Kaitlin for the response. 

 

Even if it's not returned by default, is there a workaround? I’ve tried a few options without success:  

`expand=active_entitlements`  
`expand=items.active_entitlements`  
`expand=customers.active_entitlements`  
`expand=items.customers.active_entitlements`  

Is there any other way to retrieve a list of active subscriptions or customers with active subscriptions?


Reply