The information in this article can help when you are unable to redeem a download code, and you receive the error code 2813-0040.
Note: This error code indicates that the download code you entered has already been redeemed.
What to do
If you have already attempted to redeem the download code, check the HOME Menu to ensure the title is not already downloading.
If the title is not downloading, attempt to redownload the title from the Nintendo eShop.
If you have confirmed the title is not already installed on the system, and not available for redownload, attempt to redeem the download code again.