You will have to pay what you owe first and then request a refund.
Read the links below about various ways to pay for items in the iTunes and App Stores.
- Add a payment method to your account. See this article about payment methods that you can use with your Apple Account --> Payment methods that you can use with your Apple Account - Apple Support then see this article about how to add a payment method to your Apple Account --> Add a payment method to your Apple Account - Apple Support
- Add money to your Apple Account balance - "Use a payment method, such as a credit or debit card, to add funds to your Apple Account balance." This takes the previous payment method one step farther by optionally using it to irreversibly add funds to an Apple ID account balance instead of having the card charged each time.
Click here --> Add money to your Apple Account balance - Apple Support
If no option is shown to "Add Money to Account" using this method (you only see using gift cards) then it may not be available in your country. Use a gift card instead.
- This article outlines how to redeem an Apple Gift Card or App Store & iTunes gift card --> Redeem your Apple Gift Card, App Store Card, or App Store & iTunes Gift Card - Apple Support
- You could also look into joining a Family Sharing group where the family Organizer's payment method is used. To learn how to join a Family Sharing group, read the section "Join a family group" in this support article --> How to set up Family Sharing on your iPhone, iPad, or Mac - Apple Support
This thread (particularly posts by Mac Jim ID) outlines complex scenarios regarding subscriptions and trials. ➔ Refund request for unintended Snapchat Pl… - Apple Community
If you wish to pursue a refund, follow the directions in this support article about how to request a refund for apps or content that you bought from Apple ➔ Request a refund for apps or content that you bought from Apple - Apple Support The likelihood of you getting a refund may vary greatly from region to region as provided in section B of Legal - Apple Media Services - Apple . Typically refunds are entirely discretionary and not guaranteed. Special terms may apply for some countries: About canceling subscriptions in Germany, Israel, South Africa, or Türkiye - Apple Support
Click on this link to learn "How to cancel a subscription from Apple." --> Cancel a subscription from Apple - Apple Support - "If you signed up for a free or discounted trial subscription and you don't want to renew it, cancel it at least 24 hours before the trial ends." At this stage the renewal is considered a purchase. For a new subscription the sale is probably effective from when you first agree to subscribe.