Hi there,
We have developed an extension with Cart Transform API. This extension checks whether the products in the cart are in the Discounted Products collection. If it is included in the Discounted Products collection, we update the product price with the compare-at price value. But what we want to do here is if a discount is automatically applied on the line item or if the customer has entered a discount code.
In the documents, we could not find a field where we can get discount information from cart transform. In addition, even if a discount is applied in the cart, it gives us the price without discount in cart transform. We cannot catch whether a discount is applied or not.
So is there any way to get discount information in cart transform API?
Thanks.