Hello, thank you for reaching out to Microsoft Q&A.
For Xbox digital games purchased through the Microsoft Store, you can request a refund by going to the Request a refund for digital games website.
Sign in with your Microsoft account on the link above and request a refund. Note that the refunds are typically issued for requests made within 14 days of the purchase date.