I built an extension-only app (Shopify CLI 4.9.0) with:
- A Discount function (api_version 2026-07, target cart.lines.discounts.generate.run)
- A Discount Function Settings UI extension (admin.discount-details.function-settings.render), linked with [extensions.ui] handle
- The metafield definition declared in shopify.app.toml: [discount.metafields.app.function-configuration]
What works: I can create a discount with discountAutomaticAppCreate, the settings form loads and saves its values, the function reads the metafield, and cart prices change correctly.
What doesn’t work: Discounts > Create discount only shows Shopify’s four built-in types. My app’s discount type never appears.
What I tried: released a version with shopify app deploy, tested on two different dev stores, hard refreshed. A shopifyFunctions query shows my function with apiType “discount” and useCreationUi: true.
What do I need to do for an extension-only discount app to appear in the type picker? Is there another toml field or setting required, or is this a known issue?
Hi @BENNIE_ALIBANGA, I had a look into this for you.
No, there’s no extra toml field. When a discount function is linked to a settings UI extension through the [extensions.ui] handle like yours, Shopify shows the extension in the discount type picker and registers the app intent for you. Your description matches that documented flow, and since discountAutomaticAppCreate, the settings form, and the function all work, nothing in what you’ve shared points at a configuration gap.
That leaves the picker itself. Similar reports of app discount types intermittently missing from the Create discount menu are being investigated. A hard refresh may not be enough in that kind of case, so open the same store with the same admin account in a fresh private/incognito window and see whether your type shows up. A session that starts without your usual admin data makes it a useful comparison either way.
If it’s still missing that way, this’d be worth opening a ticket with our Support team. You can do so via the Partner Help Center → “Chat with a human”