Querying licenses by resellerId

Previously we were using the “resellerId” field on each license to tracker the reseller user for those licenses. Since the recent Reseller User migration, I’ve modified our license creation logic so that it puts the reseller user id in the “additionalUserIds” field of the license.

However we are also using a query to fetch all the licenses associated to a particular reseller. For this, we use this query:

https://api.cryptlex.com/v3/licenses?page=1&resellerId=RESELLER_USER_ID

After the migration, this no longer works.

What should I update this query to?

Hi Francis,

Since the reseller is now just a user in your approach, you can simply do the following:

https://api.cryptlex.com/v3/licenses?page=1&userId=RESELLER_USER_ID
1 Like