-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Billing API access in proxy requests #469
Comments
Hey @rkbhochalya 👋 Thanks for opening an issue, and sorry we are missing this functionality. Please could you explain your use case? 2 questions to help me understand:
I think we could add something here, but I need to look into it. E.g:
Would this work? In the meantime, so you are unblocked, you can you the admin GraphQL API to perform the same check yourself. This is the query that the Remix template uses under the hood:
Just to set expectations, since there is a workaround and we haven't got many requests for this, it might be a while until we get to this. |
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
We are closing this issue because it has been inactive for a few months. If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the CONTRIBUTING.md file for guidelines Thank you! |
I also need this function. In my case, it is required for validating app subscription for Theme App Extension.
As @byrichardpowell said, I think it is able to implement it by using |
I'm working on an app that handles proxy requests from the shop frontend. The
authenticate.public.appProxy
function is very handy in validating these requests.However, I need access to the billing API in order to set a limit on the number of such requests based on the active plan. Ideally,
UnauthenticatedAdminContext
could provide this access. This would be beneficial, particularly for cases where I'm not handling an admin request from Shopify, such as in listing shops with their current plan in an internal dashboard.Alternatively, having the ability to access the
shopifyApi
interface from the remix app would also be acceptable.Any workarounds for this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: