How to detect the usage of an BxGy on an Order?

Topic summary

  • Main issue: Determining whether a discount on an order comes specifically from an automatic Buy X, Get Y (BxGy) promotion.
  • Context: The poster can see per line item how much each discount application reduced the price but cannot identify the discount’s type/source (automatic BxGy vs. other discount types).
  • Clarification: BxGy = “Buy X, Get Y.” The distinction sought is between automatic BxGy promotions and other discount mechanisms.
  • Reference: An older related thread was cited, but its accepted answer does not address how to detect automatic BxGy usage.
  • Status: Unresolved. The poster is asking if any method or API field exists to distinguish automatic BxGy discounts on orders.
Summarized with AI on December 16. AI used: gpt-5.

It is possible to know how much was discounted to a line item by each of the discount applications, but I can’t find a way to distinguish whether the discount comes from an automatic BxGy or from the other types of discount. Is there a way?

Long ago was this thread but the accepted solution doesn’t answer the question.