Wiktionary
cocket writer
n. (context UK dated English) an official in the bond office whose duties included collecting duty on imported goods and issuing the relevant documentation.