Discuss all the new features introduced with the new product model in GraphQL.
We are trying to access the product data as well as product count. However, we are getting Invalid API Key error with the GraphQl request. We are using the token that gets created upon a new shop installation and it had been working fine for a long time but we recently encountered the issue when we upgraded the REST APIs with GraphQl APIs. Upon further investigation, we realised even some of the rest endpoint throw the same error. Please provide assistance.
Here are some of the endpoints:
curl -X POST https://abcd.myshopify.com/admin/api/2021-07/graphql.json \ > -H 'Content-Type: application/json' \ > -H 'X-Shopify-Access-Token: {token}' \ > -d '{"query": "{ products(first: 3) { edges { node { id title } } } }"}'
curl -X GET "https://abcd.myshopify.com/admin/api/2024-04/shop.json" \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {token}'
Hi @himanshu0128,
I hope you are doing well.
About the error, it occurs because the token is revoked after the shop uninstalled. We got this error before when a shop uninstalled but there still are some running processes that call api with revoked token.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now