Hello, good day and thanks for your question. Sorry to know on what happened and I understand that you are checking for the refund with regards to the accidental purchase.
Please take note of the below.
Each store that sells Minecraft has its own return policy. Please visit the store where you purchased your Minecraft game for return and refund information.
- Minecraft.net, Microsoft Store, or Xbox – Microsoft Refund Policy
- Nintendo – Nintendo Return & Exchange Policy
- Apple App Store - Request a Refund for Apps
- Google Play - Google Play Refund Policy
- PlayStation – PlayStation Refund Policy
- Steam – Steam Refund Policy
Generally, Minecraft games purchased from Minecraft.net or the Microsoft/Xbox store are eligible for a refund within 14 days of the purchase date.
https://help.minecraft.net/hc/en-us/articles/360030463592-Mojang-Studios-Refund-Policy
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information.