coupon code handling via json