Let’s get you some solutions. Access our on-demand resources, participate in the Chargebee customer forum, or raise a ticket to talk to our team.
I'm wondering if it's possible to retrieve a list of the options associated with a custom user field?
I can't find any way to do this in the API documentation.
Thanks for your help
Are you looking for an option to filter the customers/subscriptions by custom fields via API?
You could use the filter parameters under Subscriptions/Customers in the Chargebee web interface to filter out customers based on a particular custom field value. However, it is not possible at the moment to filter customers/subscriptions based on custom field values when using API, sorry about that.
We have this feature in the product pipeline as a few customers have already asked for it in the past, though we do not have a firm ETA on the feature. I've tagged your ticket internally to keep a track of the feature request and I'll inform you as soon as this is implemented.
Any updates to this?
it is not possible at the moment to filter customers/subscriptions based on custom field values when using API, sorry about that.
We now have a functionality to filter customers/subscriptions, plans and addons using custom fields. You can filter your customer records using custom fields as a filter parameter in the “List customers API call”. For example, if your custom field name is “book” the filter parameter should be cf_book.
To filter customers based on Custom Field, the below is the format to use in List customers API call.
Example →if the custom field name is book cf_book[is] = “sample”
The field is optional and is a string filter.
Supported operators : is, is_not, is_not_present, is_present
Custom fields has to be enabled from the backend, you can write to us at email@example.com to enable it.
For you to be able to fetch a list of subscriptions or customers via API using custom fields as filters, we'll have to enable it from the backend for your site for which you would have to send an email to firstname.lastname@example.org
However, we'd like to let you know that we have a restriction in place where you could only use 5 custom fields for the filtering purpose. We are sorry but we have this in place as it was recently released and we're trying to make further improvements on this.