-If you redeem a Microsoft or Xbox gift card in a country that doesn't match the country associated with your billing account, you won't be able to use those funds. 
-The funds in your Microsoft account can't be transferred after you redeem a Microsoft or Xbox gift card.
-Gift cards are region locked and so is not possible to redeem them in a different region. 
-Your friend will need to send you a gift card in your currency.
-if you're having trouble redeeming a code, it may be due to a service outage on XBOX side. 
If there are any service outages, wait until those are fixed and then try redeeming the code again. 
-Make sure you are redeeming on an account without an active Xbox Live Gold or Xbox Game Pass subscription