“You have already shared the most recent reports with AppName” when creating discount via API

Hi everyone,

  • I’m seeing this warning on the Shopify Admin > Discounts page:
    • “You have already shared the most recent reports with AppName.”
  • The discount is created via Discount Functions using the API discountAutomaticAppCreate.
    The warning appears in the admin UI even though the discount seems to work fine.

Does anyone know why this message is shown in the Discounts admin page?
Is it related to report sharing, app scopes, or just a UI notification?

Thanks in advance for any insights!

Hey @ongtung2212002,

That message is just a UI notification you’ll see when using Discount Functions, especially with discountAutomaticAppCreate. It basically means that Shopify’s admin UI is acknowledging that your app is the source of the discount’s logic and reporting.

When you create a discount via a Discount Function, your app essentially “owns” the logic for how that discount applies. Shopify’s system interprets this ownership as your app being responsible for the discount’s behavior and, by extension, its reporting. It’s not an error or a problem with scopes; it’s just Shopify’s way of telling you that the discount’s performance and application are tied to your app’s function. The discount working fine confirms this, it’s just an informative message, albeit a slightly confusing one.

If there’s a yellow exclamation mark, then you need to look at the Functions logs in the Dev Dashboard. The discount is hitting some type of error. It could be an actual issue in the Function itself. Another super common case is when you InstructionCountLimitExceededError on very large carts, typically created by bots.