Mechanism of work with the customs agent