It references correctly - after all, if you OPEN a shift through OneBox - the token is cached until you CLOSE the shift through OneBox.
If for some reason you do not want to close the shift through OneBox - I can offer the following revision - at the time of the request, if the above error occurs - we can re-authorize to receive a new token and repeat the request.
To do this only for the action of fixing the ceca - it will take 2 hours.
Do this for all actions (fiscalization / receiving a check / printing an HTML check) - 6 hours.
Let me know if any of the solutions suits you and we will issue an invoice.
To do this, the site has a description of paid technical support
https://crm-onebox.com/ru/prices/#support