Get discount data from adjustment object Is it possible to get, from one of the cart.adjustments of type discount, whether the discount was added with a coupon code, and if so, what that coupon code is?
An adjustment will take a snapshot of the source object that contained the rule for its application.

So the following is an array of a discounts attribute if you have a discount adjustment

{{ adjustment.sourceSnapshot }}


You could get the coupon code with

{{ adjustment.sourceSnapshot.code }}