Green’s Dictionary of Slang

belly up! excl.

also belly (up) to the bar!
[belly up (to) v.]

[1920s–30s] (Can./US) the drinks are on the house!