Applied discount coupon code not showing in cart.json

Hello,

If we apply coupon code through URL for e.g. “/discount/abcd” it gets applied in checkout page but we don’t see any discount code related information in “/cart.json”
“cart_level_discount_applications” & “line_level_discount_allocations” both shows empty when checkout page shows discount applied.

Our other stores and even development store shows discount code information in “cart_level_discount_applications” & “line_level_discount_allocations”

Do you know what would be the reason?

Hello @Tom_Nabielec , discounts can be applied at the line item level, or the cart, checkout, or order level. In this case I think you are using checkout-level discount.
What you can do is fetch “/discount/abcd” using js then save the discount in local storage. On cart page auto apply the discount code using js.

Read more about discounts and how it can be applied here:
https://shopify.dev/docs/storefronts/themes/pricing-payments/discounts