How do Spotify Codes work?

How do Spotify Codes work?