Use an iTunes or Apple Music Gift Card on Mac
Ask Siri. Say something like: “Redeem an iTunes Store gift card.” Learn more about Siri.
Set up an Apple ID (required before you can redeem anything in the iTunes Store).
In the iTunes app on your Mac, choose Account > Redeem, then follow the onscreen instructions.
You don’t need to enter credit card information to redeem only the amount of a gift card.
Your balance appears in the upper-right corner of the Store window.
You can use a gift card only in the iTunes Store for the same country or region in which it was purchased.