MarketPress inventory

Hi, I use Square for my POS in retail and MarketPress on my website. Basically, using Squares API I would like to manipulate my MarketPress inventory every time a sale is made via Square. I was wondering what the best way to access the MarketPress inventory? Cheers Cam