I'm looking to retrieve information about a manual discount that's applied to an order. I want to get:
the code used
the value of the discount
which products are affected and by how much
I can get some of this information: discountCode is available on the order, and I can get discountApplications on the order and discountAllocations on the line items. I can't find a way to tie it all together - e.g. to explicitly link the code used to the discount value on both the order and the line items.