Customize a discount type

I want to customize a discount type for specific customers. However, I found that the app type for developing a Shopify Function must be set to public. I would like to ask: does this mean I have to publish this app to the Shopify App Store, or is it sufficient to just set the app type to public for using discount api? I am so confusesd about that

@Eric-HAN ,

Shopify Functions (including custom discount logic) are:

  • Executed inside Shopify’s infrastructure
  • Installed on a store like a real app
  • Subject to stricter security & permission rules

Because of this, Shopify does not allow Functions in custom apps.

That’s why:

  • Custom app → Cannot use Shopify Functions
  • Public app (even private/unlisted) → Can use Shopify Functions

Thank you @Gideon_A and @oscprofessional Thanks a lot to both of you for being so patient and giving such thorough answers.

My app has been set as a public app, but its listing status remains “draft”(i didnot submit for review ). Is this configuration acceptable for a production store (as opposed to a development store)?

@Eric-HAN ,

YES a public app with listing status Draft is:

Fully valid for production stores
Fully supported for Shopify Functions (Discount API)
Not required to be submitted for App Store review

You can safely use this configuration in production.