how we for specfic products for discountAutomaticBxgyCreate api

Topic summary

A developer is seeking guidance on implementing Shopify’s discountAutomaticBxgyCreate GraphQL API mutation with specific constraints:

Primary Questions:

  • How to configure the API to apply Buy X Get Y (BXGY) discounts to specific individual products instead of entire collections
  • Which fields are mandatory when creating a DiscountAutomaticNode through this mutation

Context:
The inquiry references Shopify’s Admin GraphQL API (version 2025-01) documentation for automatic BXGY discount creation.

Status:
The question remains unanswered with no responses or solutions provided yet.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

How does the discountAutomaticBxgyCreate Shopify API work for specific products only, rather than collections?

Also, which fields are required for the DiscountAutomaticNode in the mutation?

For reference, you can check the documentation here: