How are gift cards and credits applied after a coupon is redeemed?

After coupon discounts are applied in a purchase, gift card(s) will be applied in order of oldest gift card on the account first (e.g we will apply a gift card purchased earlier than another gift card first). Once gift cards have been applied, any uninvoiced credits on the account will apply to the purchase in order of oldest first.