code refine and coupon detail api