Working on a custom logic for client’s problem, to provide automatic discount based on a line item property. I am trying to deploy the function and create it via graphql explorer app.
It works fine on the dev store, but on client’s production store, the query doesn’t run.
I know it is not restricted to Shopify plus.
But still i don’t get it why it is not creating an instance of the function
We’re observing the same issue. Discount creation works in the dev store, but fails in the prod store with the internal server error. This happens even when only sending title, startsAt and functionId.
Hey Liam,
It would be very helpful if Shopify can provide a solution to this quickly. We have been stuck on it for days, and there is no other way to do the solution for our client.
and our client has been waiting for us to delivery it.
Please if you could give us an update good enough.
Thank you
Can you confirm what plan the store is on, where this is failing? It looks like this could be failing because the store is not on Plus, from our docs Shopify Functions are available on all plans when the app is a public app. If the app is not public, then only stores on Plus can use Functions from a custom app: About Shopify Function APIs
Gotcha Liam,
That clears it up,
We are really limited now, as we can’t use public app without approval of shopify for listing and we can’t use custom app unless its Shopify plus.
On the page you linked the Order Discount API is listed under Available APIs, but there’s no mention of it in the Availability of Shopify Functions section.
Why does the app work on a dev store, if one needs Plus in a non-dev store?
It will work on a test dev store because if you’re building a public app you’ll need a non-Plus environment to test it out in, since it will work on non-Plus stores as a public app.