Pinhole cameras are not a very old invention, at least as photogaphic tools. Of course the pinhole principle is long known, we have written evidence from antique Greek and some scientists from the University of Lousville, KY have a wild theory on its use as what they call paleo camera (
http://paleo-camera.com).
But to use it as photographic tools one needs rather fast photographic material, so the first pinhole cameras in use as a real camera should date from the invention of developed out silver emulsions (not printout paper) so we can savely date this to the 1870ies.
Pinhole got common for a time around the turn of the 20. century with pictorialist movement.
I recall vaguely to having seen one on an online auction, but can't remember any details. Seemed to be the classic wooden box with pinhole from somewhere 1890-1900... but thats a rough guess based on my fading memory