Spotify Codes are scannable QR codes that are used to quickly share or access Spotify content. They can be created for artist profiles, company profiles, playlists, albums and songs. If there is an URI, you can generate the Spotify Code.
The URI code is used to embed and search within the application. To get it, right-click on some Spotify content and select Share> URI.
Here are some good practices with Spotify Code:
Right now, Spotify Codes have to be generated from this page: Spotify Codes.
You can find more information about it in Spotify Codes FAQ.