Physical and online inventory sync

Im quite surprised nobody has thought to post this on the forums, because I am exhausted looking for answers.
I have a physical store where i serve customers. My wix stock is the same as my shop floor stock. There must be a way to integrate my inventory from my pos system to my online wix store. Otherwise it would be very difficult to manually chamge stock!
Is there a way i can code or create an api to allow me to sync my online inventory to my physical inventory through some kind of third party a payment module?
I really need this integration and im sure other people do too.