It does not work on digital versions (offer doesn't work on any digital content), but it does work on physical gift cards (both video game and non-video game related).
https://smile.amazon.com/Nintendo-eShop-50-Gift-Card/dp/B00U6DTA9S should work. Couldn't find any for PS or Xbox, but there...