For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
- go to app and create a distribution
- copy link and install on store ( I am installing on a plus store )
Did you register your function with GraphiQL?
Get your functions:
query {
shopifyFunctions(first: 25) {
nodes {
app {
title
}
apiType
title
id
}
}
}
Register the function:
mutation {
discountAutomaticAppCreate(automaticAppDiscount: {
title: "Volume discount",
functionId: "YOUR_FUNCTION_ID_HERE",
startsAt: "2022-06-22T00:00:00"
}) {
automaticAppDiscount {
discountId
}
userErrors {
field
message
}
}
}
Make sure GraphiQL has all the permissions it needs, including write_discounts.