A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm getting a 404 error when using the "shopify.api.rest.Province.all" method from my app's API.
I want to obtain a list of provinces for a country:
const provinces = await shopify.api.rest.Province.all({ session: res.locals.shopify.session, country_id: COUNTRY_ID, });
const shopify = shopifyApp({
api: {
apiVersion: LATEST_API_VERSION,
restResources,
billing: undefined, // or replace with billingConfig above to enable example billing
},
auth: {
path: "/api/auth",
callbackPath: "/api/auth/callback",
},
webhooks: {
path: "/api/webhooks",
},
// This should be replaced with your preferred storage strategy
sessionStorage: new SQLiteSessionStorage(DB_PATH),
});
Hi @joelurraco 👋
If the app is using Shopify API Node library, please submit an issue in the public github repo `Shopify/shopify-api-js` directly.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog