How to Get Discount Codes already applied in Shopify Function input?

Hi @lizk ,

I am facing similar problem. Here’s my case:

Currently, our site has free shipping for purchases over $500

We’ll give discount code to some customers - $300 off

Customer A purchases $700 worth of products. Checkout total price = $200

i.e. shipping fees applies.

Customer B purchases $1000 worth of products. Checkout total price = $700

i.e. shipping fees does not apply.

We would like to let both customer A & B enjoy free shipping because both Customer A & B purchases over $500 worth of products before applying the discount code.