In an Edo merchant house, a boy started as a decchi, an apprentice who lived in and ran errands, from around the age of ten. The next stage was tedai, a clerk. After many years, he could become bantō, the head clerk, who took charge of sales, accounts and everything in the shop.
From there, he could be allowed to set up his own shop.