Discount API: Get cart value after discounts are applied

Hi, Im working on Shopify extensions and try to create a discount with Shopify functions.
I’m creating a discount function which applies a certain discount to a product, when the cart value exceeds a certain amount. I noticed that in the input query I have access to the cart totalAmount and subTotalAmount object. However for me there doesn’t seems to be a difference and they always return the value before other discount are applied. Does anybody know if it is possible to get the value of the cart after (other) discounts are applied.

1 Like