Accidentally added funds to Apple ID rather than Apple Pay
So I accidentally added funds to my Apple ID and I saw that there is no other way to refund or transfer back onto the card, and I do not wish on spending it on any Apple apps or products, how can I get it back?
iPhone 14 Plus, iOS 16