1854, François Rabelais, Jacob Le Duchat, John Ozell, The Works of Francis Rabelais - Volume 1, page 134:
To cast up one's accounts upon excessive drinking ; either, says Cotgrave, because in spewing one makes a noise like a fox that barks, or (from the subject to the effect) because the flaying of so unsavoury a beast will make any one spew.
As he handed the tray over, he heard the knocker echo through the house. Thinking it might be Jimmy, he turned back to his father to warn him only to see him reach for the chamber pot and cast up his accounts.
2015, Sabrina Jeffries, If the Viscount Falls, ISBN1476786135, page 20:
She was about to be sick right here in front of them all. That would be the worst humiliation imaginable. Mustn't cast up my accounts, mustn't cast up my accounts.