Am I doing anything wrong?
Cheers
Try waiting for 24 hours and then coming back. Sometimes you have to give them a day for their inventory to 'reset'.
I had the same issue with 0 caps and 0 items on the vendor. I just load my save back a few minutes before assigned the vendor with problems and then problem solved.