Skip to content

Conversation

Manas-Kenge
Copy link
Contributor

Fixes #6167

Copy link

vercel bot commented Sep 14, 2025

@Manas-Kenge is attempting to deploy a commit to the polar-sh Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@frankie567 frankie567 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Manas-Kenge, that's interesting 🙏

Of course, we're limited here with the API we have — that's why we need to loop over the benefits to get that info.

I think it's time we introduce a proper /v1/benefit-grants/ set of endpoint in the Admin API, where can we basically query all the grants, and filter them by customer, organization, benefit, etc. Similar to what we do in /v1/customer-portal/benefit-grants.

I know it's quite of a task so feel free to pass if you don't have time to do it :)

@Manas-Kenge
Copy link
Contributor Author

No worries, I will do it when I get some time.

@Manas-Kenge
Copy link
Contributor Author

@frankie567 can you elaborate more on what you mean when you say “admin API”? Also, where should this API be placed in terms of folder structure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List benefits (granted and revoked) on the customer details
2 participants