To request a refund for a purchase made in the Minecraft Marketplace, you will need to follow the refund policies set by Microsoft. Generally, refunds for digital purchases may be available under certain conditions, such as if the purchase was made recently and meets the criteria for a refund.
In your case, since the purchase was unintentional, I recommend checking the Microsoft Store's refund policy for digital content. You can typically request a refund through your Microsoft account's orders page. If the purchase meets the criteria, you may be able to receive a refund. If you encounter any issues, contacting Microsoft Customer Support directly would be the best course of action for assistance with your specific situation.
References: