How would I get the character's accessories and its id?

I would like to get all the accessories the character has and their ids so I can use them on Market:GetProductInfo()