App reviews, troubleshooting, and recommendations
How can we retrieve the function ID when creating a discount app using the Shopify API? I found the discountAutomaticAppCreate mutation documentation here: https://shopify.dev/docs/api/admin-graphql/2025-01/mutations/discountAutomaticAppCreate but I need clarification on how to obtain the function ID for this process.
You will need to create a extension on your app first, then deploy it since discount function are not able to be created on the Partner app extension.
When extension is created, you can go to the Partner and see you extension functionId here.
Alternatively, on each discount extension, you will need to define the extensions.ui.paths, the :function_id can be pass to the url request when user create discount from the "Admin". When processing the creating discount, we can retrieve this information
Ref the docs: Build a product discount function
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025