Sorry I don't know the bolt size, but I have to confess to making the same mistake. ::010::
Don't know how long, how many miles it was missing - less than 3 weeks, less than 800 miles. At least my axle didn't fall out.
I happened to have a spare bolt that fit, probably an original bolt replaced by a longer one for luggage racks.