If you missed it at Unite this year, we've exposed line-level discount information on the Order API through a new discount_applications property. You can use this property to account more accurately for when discounts are added to orders.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/the-order-resource-now-includes-a-discount-applications-property