"Visual" ID is the same as "appearance" ID is the same as "visual appearance" ID. It's a bit confusing how they use all these variants interchangibly. The appearance ID essentially refers to the item model and texture, while a source ID refers to a specific item.
You need the source ID:
Code:
local visualID, sourceID = C_TransmogCollection.GetItemInfo(itemID)